From owner-freebsd-questions@FreeBSD.ORG Fri Sep 16 18:01:06 2005 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 0F9A016A427 for ; Fri, 16 Sep 2005 18:01:04 +0000 (GMT) (envelope-from kiffin@gish.demon.nl) Received: from post-23.mail.nl.demon.net (post-23.mail.nl.demon.net [194.159.73.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id A097043D45 for ; Fri, 16 Sep 2005 18:01:03 +0000 (GMT) (envelope-from kiffin@gish.demon.nl) Received: from gish.demon.nl ([83.160.27.223]:12040 helo=ZGISH) by post-23.mail.nl.demon.net with esmtp (Exim 4.51) id 1EGKWD-0009P1-Q5 for freebsd-questions@freebsd.org; Fri, 16 Sep 2005 18:01:02 +0000 From: "Kiffin Gish" To: Date: Fri, 16 Sep 2005 20:01:01 +0200 Message-ID: <002801c5bae8$996f14a0$2201a8c0@ZGISH> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal Subject: Undefined references : make buildkernel KERNCONF=MYKERNEL .. 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: Fri, 16 Sep 2005 18:01:07 -0000 I get the following errors when trying to build a customized kernel: -----start----- [...] touch hack.c cc -shared -nostdlib hack.c -o hack.So rm -f hack.c MAKE=3Dmake sh /usr/src/sys/conf/newvers.sh MYKERNEL cc -c -O -pipe -march=3Dathlon-xp -Wall -Wredundant-decls = -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=3Dc99 -nostdinc -I- -I. = -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=3D8000 --param inline-unit-growth=3D100 --param large-function-growth=3D1000 -mno-align-long-strings -mpreferred-stack-boundary=3D2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror vers.c linking kernel umass.o(.text+0x1ba3): In function `umass_cam_attach_sim': : undefined reference to `cam_simq_alloc' umass.o(.text+0x1bf4): In function `umass_cam_attach_sim': : undefined reference to `cam_sim_alloc' umass.o(.text+0x1c03): In function `umass_cam_attach_sim': : undefined reference to `cam_simq_free' umass.o(.text+0x1c25): In function `umass_cam_attach_sim': : undefined reference to `xpt_bus_register' umass.o(.text+0x1c51): In function `umass_cam_rescan_callback': : undefined reference to `xpt_free_path' umass.o(.text+0x1cb7): In function `umass_cam_rescan': : undefined reference to `xpt_periph' umass.o(.text+0x1cc6): In function `umass_cam_rescan': : undefined reference to `xpt_create_path' umass.o(.text+0x1ce2): In function `umass_cam_rescan': : undefined reference to `xpt_setup_ccb' umass.o(.text+0x1cff): In function `umass_cam_rescan': : undefined reference to `xpt_action' umass.o(.text+0x1dea): In function `umass_cam_detach_sim': : undefined reference to `xpt_bus_deregister' umass.o(.text+0x1e06): In function `umass_cam_detach_sim': : undefined reference to `cam_sim_free' umass.o(.text+0x1e4d): In function `umass_cam_action': : undefined reference to `xpt_done' umass.o(.text+0x1ec6): In function `umass_cam_action': : undefined reference to `xpt_done' umass.o(.text+0x1ee5): In function `umass_cam_action': : undefined reference to `xpt_done' umass.o(.text+0x1f8d): In function `umass_cam_action': : undefined reference to `xpt_done' umass.o(.text+0x2061): In function `umass_cam_action': : undefined reference to `xpt_done' umass.o(.text+0x20af): more undefined references to `xpt_done' follow umass.o(.text+0x2291): In function `umass_cam_action': : undefined reference to `cam_calc_geometry' umass.o(.text+0x2299): In function `umass_cam_action': : undefined reference to `xpt_done' umass.o(.text+0x22aa): In function `umass_cam_action': : undefined reference to `xpt_done' umass.o(.text+0x22bd): In function `umass_cam_action': : undefined reference to `xpt_done' umass.o(.text+0x230b): In function `umass_cam_cb': : undefined reference to `xpt_done' umass.o(.text+0x2351): In function `umass_cam_cb': : undefined reference to `xpt_done' umass.o(.text+0x244b): 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. root@kiffingish# -----end----- Anyone know what's going wrong? --=20 Kiffin Rex Gish Gouda, The Netherlands =20