代码: 全选
Building the VirtualBox Guest Additions kernel module...
Unable to build the kernel module. See the log file
/var/log/vboxadd-install.log
for more details.
这是vboxadd-install.log的内容:
代码: 全选
Installing VirtualBox 1.6.2 Guest Additions, built Sat May 31 04:00:56 CEST 2008
Testing the setup of the guest system
Building a test kernel module...
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.28-11-generic/build SUBDIRS=/tmp/selfgz4230/module/test SRCROOT=/tmp/selfgz4230/module/test modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /tmp/selfgz4230/module/test/.tmp_versions ; rm -f /tmp/selfgz4230/module/test/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/selfgz4230/module/test
gcc -Wp,-MD,/tmp/selfgz4230/module/test/.test.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.3.3/include -D__KERNEL__ -Iinclude -I/usr/src/linux-headers-2.6.28-11-generic/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iarch/x86/include/asm/mach-default -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -I/lib/modules/2.6.28-11-generic/build/include -I/tmp/selfgz4230/module/test/ -I/tmp/selfgz4230/module/test/include -I/tmp/selfgz4230/module/test/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 -DVBGL_VBOXGUEST -DVBGL_HGCM -DVBOX_HGCM -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(test)" -D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test)" -c -o /tmp/selfgz4230/module/test/.tmp_test.o /tmp/selfgz4230/module/test/test.c
ld -m elf_i386 -r -o /tmp/selfgz4230/module/test/vboxadd_test.o /tmp/selfgz4230/module/test/test.o
(cat /dev/null; echo kernel//tmp/selfgz4230/module/test/vboxadd_test.ko;) > /tmp/selfgz4230/module/test/modules.order
Building modules, stage 2.
make -f /usr/src/linux-headers-2.6.28-11-generic/scripts/Makefile.modpost
scripts/mod/modpost -m -a -i /usr/src/linux-headers-2.6.28-11-generic/Module.symvers -I /tmp/selfgz4230/module/test/Module.symvers -o /tmp/selfgz4230/module/test/Module.symvers -S -K /usr/src/linux-headers-2.6.28-11-generic/Module.markers -M /tmp/selfgz4230/module/test/Module.markers -w -s
gcc -Wp,-MD,/tmp/selfgz4230/module/test/.vboxadd_test.mod.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.3.3/include -D__KERNEL__ -Iinclude -I/usr/src/linux-headers-2.6.28-11-generic/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iarch/x86/include/asm/mach-default -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -I/lib/modules/2.6.28-11-generic/build/include -I/tmp/selfgz4230/module/test/ -I/tmp/selfgz4230/module/test/include -I/tmp/selfgz4230/module/test/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 -DVBGL_VBOXGUEST -DVBGL_HGCM -DVBOX_HGCM -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(vboxadd_test.mod)" -D"KBUILD_MODNAME=KBUILD_STR(vboxadd_test)" -DMODULE -c -o /tmp/selfgz4230/module/test/vboxadd_test.mod.o /tmp/selfgz4230/module/test/vboxadd_test.mod.c
ld -r -m elf_i386 --build-id -o /tmp/selfgz4230/module/test/vboxadd_test.ko /tmp/selfgz4230/module/test/vboxadd_test.o /tmp/selfgz4230/module/test/vboxadd_test.mod.o
Inserting the test module module/test/vboxadd_test.ko into the kernel.
Building the VirtualBox Guest Additions kernel module.
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.28-11-generic/build SUBDIRS=/tmp/vbox.1 SRCROOT=/tmp/vbox.1 modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /tmp/vbox.1/.tmp_versions ; rm -f /tmp/vbox.1/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.1
grep: /tmp/vbox.1/include/linux/version.h: 没有该文件或目录
gcc -Wp,-MD,/tmp/vbox.1/.cmc.o.d -nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/4.3.3/include -D__KERNEL__ -Iinclude -I/usr/src/linux-headers-2.6.28-11-generic/arch/x86/include -include include/linux/autoconf.h -Iubuntu/include -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i586 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -Iarch/x86/include/asm/mach-default -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fwrapv -I/lib/modules/2.6.28-11-generic/build/include -I/tmp/vbox.1/ -I/tmp/vbox.1/include -I/tmp/vbox.1/r0drv/linux -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -D_X86_ -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DVBGL_VBOXGUEST -DVBOX_HGCM -DLOG_TO_BACKDOOR -DRT_WITH_VBOX -DIN_MODULE -DIN_GUEST_R0 -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(cmc)" -D"KBUILD_MODNAME=KBUILD_STR(vboxadd)" -c -o /tmp/vbox.1/.tmp_cmc.o /tmp/vbox.1/cmc.c
在包含自 /tmp/vbox.1/cmc.c:21 的文件中:
/tmp/vbox.1/r0drv/linux/the-linux-kernel.h:68:27: 错误: asm/semaphore.h:没有该文件或目录
make[2]: *** [/tmp/vbox.1/cmc.o] 错误 1
make[1]: *** [_module_/tmp/vbox.1] 错误 2
make: *** [vboxadd] 错误 2