I had beta-1 installed just fine on the latest Debian 2.6.31 kernel.
I tried to install beta-2 and the vboxdrv compile fails with:
make KBUILD_VERBOSE= -C /lib/modules/2.6.31-davidb-svn14611/build
SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
CC [M] /tmp/vbox.0/linux/SUPDrv-linux.o
In file included from include/linux/gfp.h:4,
from include/linux/slab.h:12,
from /tmp/vbox.0/linux/../SUPDrvInternal.h:103,
from /tmp/vbox.0/linux/SUPDrv-linux.c:37:
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory
include/linux/mmzone.h:251:5: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
from include/linux/slab.h:12,
from /tmp/vbox.0/linux/../SUPDrvInternal.h:103,
from /tmp/vbox.0/linux/SUPDrv-linux.c:37:
include/linux/mmzone.h:288: error: 'MAX_NR_ZONES' undeclared here (not in a
function)
In file included from /tmp/vbox.0/r0drv/linux/the-linux-kernel.h:80,
from /tmp/vbox.0/linux/SUPDrv-linux.c:38:
include/linux/mm.h:444:63: warning: "NR_PAGEFLAGS" is not defined
include/linux/mm.h:492:62: warning: "NR_PAGEFLAGS" is not defined
make[2]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
There is, indeed no bounds.h file. But, but ... these are kernel source files.
Bounds.h should be around.
So I meanwhile, tried to reinstall beta-1. Got this:
make KBUILD_VERBOSE=1 -C /lib/modules/2.6.31-davidb-svn14611/build
SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 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.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f scripts/Makefile.build obj=/tmp/vbox.0
These instructions must be followed with any EXTRAVERSION string in the make
prepare. Now it will compile. And guess what, bounds.h has reappeared. To make
things easier and I should have known his from past experiences, simply re-run
the make-kpkg and stop it once actuall cc compiles start happening :-) After
this, the beta2 vboxdrv compiles just fine.
Moral of the story: Do not clean your kernel source directory before or
between virtualbox installs. At least the beta-1 compile gives instructions on
how to fix it (allbeit incomplete!). The beta2 vboxdrv compile script
apparently skips that test -e.
_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users