Page 1 of 1

virtualbox module compilation fails on custom kernel

Posted: 5. Mar 2009, 21:20
by csaba
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:

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:
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.
So i should be having no problems according to this. or should i?

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.

Re: virtualbox module compilation fails on custom kernel

Posted: 19. May 2009, 00:32
by nilclass
I'm experiencing exactly the same problems.

looks like it's a problem with 2.6.29, as you can see here (find "process credentials" in the diff), the euid, and egid fields have been removed. I hope people are working on this, don't want to downgrade :)

Re: virtualbox module compilation fails on custom kernel

Posted: 19. May 2009, 16:47
by Sasquatch
Please search the forums, there are a few topics with this. One solution is to use a newer build, e.g. 2.6.29.2 or higher (.3 is also available).

Re: virtualbox module compilation fails on custom kernel

Posted: 19. May 2009, 19:44
by phe
I had a similar problem.
This was solved when I did "yumex update Qt to 4.5"