virtualbox module compilation fails on custom kernel
Posted: 5. Mar 2009, 21:20
Hi. my system is debian lenny and ...
... I just installed virtualbox from the official virtualbox repository http://download.virtualbox.org/virtualbox/debian. and also im using a custom kernel. When im trying to compile the module for the kernel i get this:
Im aware that its preferable to use the compiler version which i used when compiling the kernel itself. Thats already arranged.
Also i did those make oldconfig and make prepare in the kernel source top directory. But the error just wont dissapear.
Also /usr/src/linux is a symlink to my kernel source directory. I dont know what else am i missing.
The offical documentation sais:
Maybe i failed to include in the kernel some options that is required by virtualbox?
Anyone knows are there any specific kernel config options required by virtualbox?
Thanx for reading.
... I just installed virtualbox from the official virtualbox repository http://download.virtualbox.org/virtualbox/debian. and also im using a custom kernel. When im trying to compile the module for the kernel i get this:
Code: Select all
$ sudo /etc/init.d/vboxdrv setup
...
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;
...
/tmp/vbox.2/linux/SUPDrv-linux.c: In function ‘VBoxDrvLinuxCreate’:
/tmp/vbox.2/linux/SUPDrv-linux.c:772: error: ‘struct task_struct’ has no member named ‘euid’
/tmp/vbox.2/linux/SUPDrv-linux.c:773: error: ‘struct task_struct’ has no member named ‘egid’
make[2]: *** [/tmp/vbox.2/linux/SUPDrv-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.2] Error 2
make[1]: Leaving directory `/home/csaba/linux-src/linux-2.6.29-rc7'
make: *** [vboxdrv] Error 2
Im aware that its preferable to use the compiler version which i used when compiling the kernel itself. Thats already arranged.
Also i did those make oldconfig and make prepare in the kernel source top directory. But the error just wont dissapear.
Also /usr/src/linux is a symlink to my kernel source directory. I dont know what else am i missing.
The offical documentation sais:
So i should be having no problems according to this. or should i?Alternatively, if you built your own kernel /usr/src/linux will point to your
kernel sources, and you have not removed the files created during the build
process, then your system will already be correctly set up.
Maybe i failed to include in the kernel some options that is required by virtualbox?
Anyone knows are there any specific kernel config options required by virtualbox?
Thanx for reading.