Undefined references : make buildkernel KERNCONF=MYKERNEL ..

Kiffin Gish kiffin at gish.demon.nl
Fri Sep 16 11:01:07 PDT 2005


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=make sh /usr/src/sys/conf/newvers.sh MYKERNEL
cc -c -O -pipe -march=athlon-xp -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99  -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=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
-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 at kiffingish#

-----end-----

Anyone know what's going wrong?

-- 
Kiffin Rex Gish
Gouda, The Netherlands

 




More information about the freebsd-questions mailing list