[vbox-dev] svn 19283: how to build vboxdrv ?

sean darcy seandarcy2 at gmail.com
Sat May 2 15:33:10 PDT 2009


After kmk all

out/linux.x86/release/bin/src
  doesn't exist.

cd out/linux.amd64/release/bin/src
bash: cd: out/linux.amd64/release/bin/src: No such file or directory

The only directory under release is obj.

Looking for Makefiles under out/linux.amd64/release:

find . -name Makefile
./obj/VBoxNetAdp-src/Makefile
./obj/vboxdrv-mod/Makefile
./obj/VBoxNetFlt-src/Makefile


but:

[vbox at intel64-office release]$ cd ./obj/vboxdrv-mod
[vbox at intel64-office vboxdrv-mod]$ make DEBUG=1
Makefile:193: dbg: KERN_DIR     = 
/lib/modules/2.6.29.1-111.fc11.x86_64/build
Makefile:194: dbg: KERN_INCL    = 
/lib/modules/2.6.29.1-111.fc11.x86_64/build/include
Makefile:195: dbg: MODULE_DIR   =
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.29.1-111.fc11.x86_64/build 
SUBDIRS=/home/vbox/rpmbuild/BUILD/vbox/out/linux.amd64/release/obj/vboxdrv-mod 
SRCROOT=/home/vbox/rpmbuild/BUILD/vbox/out/linux.amd64/release/obj/vboxdrv-mod 
modules
make[1]: Entering directory `/usr/src/kernels/2.6.29.1-111.fc11.x86_64'
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 
/home/vbox/rpmbuild/BUILD/vbox/out/linux.amd64/release/obj/vboxdrv-mod/.tmp_versions 
; rm -f 
/home/vbox/rpmbuild/BUILD/vbox/out/linux.amd64/release/obj/vboxdrv-mod/.tmp_versions/*
make -f scripts/Makefile.build 
obj=/home/vbox/rpmbuild/BUILD/vbox/out/linux.amd64/release/obj/vboxdrv-mod
/home/vbox/rpmbuild/BUILD/vbox/out/linux.amd64/release/obj/vboxdrv-mod/Makefile:193: 
dbg: KERN_DIR     =
/home/vbox/rpmbuild/BUILD/vbox/out/linux.amd64/release/obj/vboxdrv-mod/Makefile:194: 
dbg: KERN_INCL    =
/home/vbox/rpmbuild/BUILD/vbox/out/linux.amd64/release/obj/vboxdrv-mod/Makefile:195: 
dbg: MODULE_DIR   =
make[2]: *** No rule to make target 
`/home/vbox/rpmbuild/BUILD/vbox/out/linux.amd64/release/obj/vboxdrv-mod/linux/SUPDrv-linux.o', 
needed by 
`/home/vbox/rpmbuild/BUILD/vbox/out/linux.amd64/release/obj/vboxdrv-mod/vboxdrv.o'. 
  Stop.
make[1]: *** 
[_module_/home/vbox/rpmbuild/BUILD/vbox/out/linux.amd64/release/obj/vboxdrv-mod] 
Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.29.1-111.fc11.x86_64'
make: *** [vboxdrv] Error 2


I do have the kernel headers:

locate linux/autoconf.h config/auto.conf | grep 111
/usr/src/kernels/2.6.29.1-111.fc11.x86_64/include/config/auto.conf
/usr/src/kernels/2.6.29.1-111.fc11.x86_64/include/config/auto.conf.cmd
/usr/src/kernels/2.6.29.1-111.fc11.x86_64/include/linux/autoconf.h

So how do we build the kernel modules?

sean





More information about the vbox-dev mailing list