freebsd 8.2 编译内核报错啦。make depend后make报错

燧人氏 发布于 2011/06/03 14:24
阅读 630
收藏 0
GENERIC 文件并没有动什么,就#注释几个像IPV6之类的。

# cd /usr/src/sys/i386/conf
# /usr/sbin/config GENERIC
# cd ../compile/GENERIC
编译内核# make depend后执行make 报错如下:是什么原因?

ssh@[/usr/src/sys/i386/compile/GENERIC]make
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I../../.. -I../../../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 -fstack-protector -Werror  config.c
:> hack.c
cc -shared -nostdlib hack.c -o hack.So
rm -f hack.c
MAKE=make sh ../../../conf/newvers.sh GENERIC
cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I../../.. -I../../../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 -fstack-protector -Werror  vers.c
linking kernel.debug
locore.o(.text+0x144): In function `got_common_bi_size':
../../../i386/i386/locore.s:533: undefined reference to `nfs_diskless'
locore.o(.text+0x151):../../../i386/i386/locore.s:538: undefined reference to `nfs_diskless_valid'
nlm_prot_impl.o(.text+0x13d2): In function `nlm_client_recovery_start':
../../../nlm/nlm_prot_impl.c:683: undefined reference to `nlm_client_recovery'
nlm_prot_impl.o(.text+0x3fba): In function `nlm_syscall':
../../../nlm/nlm_prot_impl.c:1576: undefined reference to `nfs_advlock_p'
nlm_prot_impl.o(.text+0x3fc0):../../../nlm/nlm_prot_impl.c:1577: undefined reference to `nfs_advlock_p'
nlm_prot_impl.o(.text+0x3fc4):../../../nlm/nlm_prot_impl.c:1577: undefined reference to `nlm_advlock'
nlm_prot_impl.o(.text+0x3fca):../../../nlm/nlm_prot_impl.c:1578: undefined reference to `nfs_reclaim_p'
nlm_prot_impl.o(.text+0x3fd0):../../../nlm/nlm_prot_impl.c:1579: undefined reference to `nfs_reclaim_p'
nlm_prot_impl.o(.text+0x3fd4):../../../nlm/nlm_prot_impl.c:1579: undefined reference to `nlm_reclaim'
nlm_prot_impl.o(.text+0x3fe8):../../../nlm/nlm_prot_impl.c:1584: undefined reference to `nfs_advlock_p'
nlm_prot_impl.o(.text+0x3fee):../../../nlm/nlm_prot_impl.c:1585: undefined reference to `nfs_reclaim_p'
*** Error code 1

Stop in /usr/src/sys/i386/compile/GENERIC.
加载中
0
v
vfrank
所在的目录不正确,需要在/usr/src/下面执行make
返回顶部
顶部