Date: Fri, 16 Sep 2005 20:01:01 +0200 From: "Kiffin Gish" <kiffin@gish.demon.nl> To: <freebsd-questions@freebsd.org> Subject: Undefined references : make buildkernel KERNCONF=MYKERNEL .. Message-ID: <002801c5bae8$996f14a0$2201a8c0@ZGISH>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002801c5bae8$996f14a0$2201a8c0>