From owner-freebsd-questions@FreeBSD.ORG Sat Jun 3 04:35:18 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89A8516A420 for ; Sat, 3 Jun 2006 04:35:18 +0000 (UTC) (envelope-from herriojr@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE6F343D45 for ; Sat, 3 Jun 2006 04:35:17 +0000 (GMT) (envelope-from herriojr@gmail.com) Received: by nf-out-0910.google.com with SMTP id l37so1238172nfc for ; Fri, 02 Jun 2006 21:35:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=aILjqtRFZcPOHc0em9UlcIj8vIYHVUzIDCYFYW6DXND/LwXX18tZ+jJuHG6C+5PftZPqTuwBM+JouSfCF3Rww8dICYHrUIRwDnqxRJyne+iZ/Fha9wZueSs9CVj7nmacC3JTjkwBTLNYyt5DPjDVE7R5Rz3cuZyirmrhJ0L/tzs= Received: by 10.49.58.9 with SMTP id l9mr1339387nfk; Fri, 02 Jun 2006 21:35:16 -0700 (PDT) Received: by 10.49.37.10 with HTTP; Fri, 2 Jun 2006 21:35:16 -0700 (PDT) Message-ID: <6a56d69c0606022135k1784b8eck65bc1d54517bb5ad@mail.gmail.com> Date: Sat, 3 Jun 2006 04:35:16 +0000 From: "Jonathan Herriott" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Building Kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jun 2006 04:35:18 -0000 Hi, I'm having trouble rebuilding my kernel (first time). It's actually happening in a linking stage. I tried deleting all of my /usr/src directory and using cvsup to get a fresh stable copy, but it's still wigging out. The method I am using is "make buildkernel KERNCONF=MYKERNEL." Here's the portion that has the problem: ... MAKE=make sh /usr/src/sys/conf/newvers.sh FAST cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror vers.c linking kernel sbp.o(.text+0x2b8): In function `sbp_post_busreset': : undefined reference to `xpt_freeze_simq' sbp.o(.text+0x440): In function `sbp_free_ocb': : undefined reference to `xpt_release_devq' sbp.o(.text+0x4b4): In function `sbp_cam_scan_lun': : undefined reference to `xpt_setup_ccb' sbp.o(.text+0x4bd): In function `sbp_cam_scan_lun': : undefined reference to `xpt_action' sbp.o(.text+0x4cc): In function `sbp_cam_scan_lun': : undefined reference to `xpt_release_devq' sbp.o(.text+0x573): In function `sbp_cam_scan_target': : undefined reference to `xpt_setup_ccb' sbp.o(.text+0x598): In function `sbp_cam_scan_target': : undefined reference to `xpt_action' sbp.o(.text+0x5a7): In function `sbp_cam_scan_target': : undefined reference to `xpt_release_devq' sbp.o(.text+0x668): In function `sbp_do_attach': : undefined reference to `xpt_periph' sbp.o(.text+0x671): In function `sbp_do_attach': : undefined reference to `xpt_create_path' sbp.o(.text+0x76f): In function `sbp_agent_reset_callback': : undefined reference to `xpt_release_devq' sbp.o(.text+0xa0a): In function `sbp_orb_pointer': : undefined reference to `xpt_done' sbp.o(.text+0x166a): In function `sbp_action': : undefined reference to `xpt_done' sbp.o(.text+0x16c2): In function `sbp_action': : undefined reference to `cam_calc_geometry' sbp.o(.text+0x1acd): In function `sbp_action': : undefined reference to `xpt_freeze_devq' sbp.o(.text+0x1bd9): In function `sbp_abort_all_ocbs': : undefined reference to `xpt_done' sbp.o(.text+0x1c6e): In function `sbp_cam_detach_sdev': : undefined reference to `xpt_release_devq' sbp.o(.text+0x1c83): In function `sbp_cam_detach_sdev': : undefined reference to `xpt_async' sbp.o(.text+0x1c8b): In function `sbp_cam_detach_sdev': : undefined reference to `xpt_free_path' sbp.o(.text+0x1d4a): In function `sbp_detach': : undefined reference to `xpt_async' sbp.o(.text+0x1d52): In function `sbp_detach': : undefined reference to `xpt_free_path' sbp.o(.text+0x1d60): In function `sbp_detach': : undefined reference to `xpt_bus_deregister' sbp.o(.text+0x1d6a): In function `sbp_detach': : undefined reference to `cam_sim_free' sbp.o(.text+0x2245): In function `sbp_recv': : undefined reference to `xpt_done' sbp.o(.text+0x23fa): In function `sbp_recv': : undefined reference to `xpt_freeze_devq' sbp.o(.text+0x2ace): In function `sbp_timeout': : undefined reference to `xpt_freeze_devq' sbp.o(.text+0x2b08): In function `sbp_timeout': : undefined reference to `xpt_freeze_devq' sbp.o(.text+0x3141): In function `sbp_post_explore': : undefined reference to `xpt_release_simq' sbp.o(.text+0x32a2): In function `sbp_post_explore': : undefined reference to `xpt_freeze_devq' sbp.o(.text+0x35d6): In function `sbp_post_explore': : undefined reference to `xpt_freeze_devq' sbp.o(.text+0x37a4): In function `sbp_attach': : undefined reference to `cam_simq_alloc' sbp.o(.text+0x37f5): In function `sbp_attach': : undefined reference to `cam_sim_alloc' sbp.o(.text+0x380d): In function `sbp_attach': : undefined reference to `xpt_bus_register' sbp.o(.text+0x3827): In function `sbp_attach': : undefined reference to `xpt_periph' sbp.o(.text+0x3830): In function `sbp_attach': : undefined reference to `xpt_create_path' sbp.o(.text+0x38fb): In function `sbp_attach': : undefined reference to `xpt_async' sbp.o(.text+0x3910): In function `sbp_attach': : undefined reference to `xpt_bus_deregister' sbp.o(.text+0x391b): In function `sbp_attach': : undefined reference to `cam_sim_free' sbp.o(.text+0x394d): In function `sbp_attach': : undefined reference to `cam_simq_free' umass.o(.text+0xef3): In function `umass_cam_rescan_callback': : undefined reference to `xpt_free_path' umass.o(.text+0xf3d): In function `umass_cam_rescan': : undefined reference to `xpt_periph' umass.o(.text+0xf46): In function `umass_cam_rescan': : undefined reference to `xpt_create_path' umass.o(.text+0xf67): In function `umass_cam_rescan': : undefined reference to `xpt_setup_ccb' umass.o(.text+0xf82): In function `umass_cam_rescan': : undefined reference to `xpt_action' umass.o(.text+0xfa8): In function `umass_cam_detach_sim': : undefined reference to `xpt_bus_deregister' umass.o(.text+0xfbc): In function `umass_cam_detach_sim': : undefined reference to `cam_sim_free' umass.o(.text+0x12ff): In function `umass_attach': : undefined reference to `cam_simq_alloc' umass.o(.text+0x132f): In function `umass_attach': : undefined reference to `cam_sim_alloc' umass.o(.text+0x1343): In function `umass_attach': : undefined reference to `cam_simq_free' umass.o(.text+0x1496): In function `umass_attach': : undefined reference to `xpt_bus_register' umass.o(.text+0x16a5): In function `umass_cam_action': : undefined reference to `xpt_done' umass.o(.text+0x16d9): In function `umass_cam_action': : undefined reference to `xpt_done' umass.o(.text+0x1726): In function `umass_cam_action': : undefined reference to `cam_calc_geometry' umass.o(.text+0x172c): In function `umass_cam_action': : undefined reference to `xpt_done' umass.o(.text+0x1a18): In function `umass_cam_cb': : undefined reference to `xpt_done' umass.o(.text+0x1a49): In function `umass_cam_cb': : undefined reference to `xpt_done' umass.o(.text+0x1b3e): In function `umass_cam_sense_cb': : undefined reference to `xpt_done' umass.o(.text+0x1b55): In function `umass_cam_sense_cb': : undefined reference to `xpt_done' umass.o(.text+0x1c17): more undefined references to `xpt_done' follow *** Error code 1 Stop in /usr/obj/usr/src/sys/MYKERNEL. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Any ideas on what I might be doing wrong? Thanks!