Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 07-05-2010, 08:03 AM   #1
Registered: Nov 2009
Posts: 66

Rep: Reputation: 19
Errors log virtualbox, won't compile vboxdrv.ko

I started a thread one up in Software about 'missing autoconf.h in vbox install log' because the vboxdrv.ko module wasn't compiling.

However the autoconf.h as an "error" was a red herring. The actual errors were later in the log.

Briefly, I have all the requirements for VirtualBox - kernel source, headers, syms, qt, sdl, gcc, make. The various kernel "config" files in /boot /usr/src/linux- /usr/src/ all match doing cmp or diff on them

I'm using a shell script install -

It goes through and although it says at the end "successful" it says couldn't compile the module.

Further on with the errors in the log.

In file included from /tmp/vbox.0/linux/SUPDrv-linux.c:35:
/tmp/vbox.0/SUPDRV.h:99:30: error: asm/semaphore.h: No such file or directory
/tmp/vbox.0/linux/SUPDrv-linux.c: In function 'VBoxDrvLinuxCreate':
/tmp/vbox.0/linux/SUPDrv-linux.c:772: error: 'struct task_struct' has no member named 'euid'
/tmp/vbox.0/linux/SUPDrv-linux.c:773: error: 'struct task_struct' has no member named 'egid'
/tmp/vbox.0/linux/SUPDrv-linux.c: In function 'supdrvOSGipResume':
/tmp/vbox.0/linux/SUPDrv-linux.c:1331 error: too many arguments to function 'smp_call_function'
make[4]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 1
make[3]: *** [_module_/tmp/vbox.o] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory 'usr/src/linux-'
make: *** 'vboxdrv] Error 2

End of output from the Linux kernel build system
Starting VirtualBox host networking..done
Installation successful
Well, the success is _only_ about all the working files being put in their correct places (in /usr/bin /etc/vbox) and a GUI menu entry. The problem is the vboxdrv.ko module can't be compiled.

I did have a look at those "SUPDrv" files and the line numbers -772,773/1331- and I can find the phrases 'task_struct' 'smp_call_function' etc in other source *.c *.h files but I have no idea.

Just to be sure about all files being present I uninstalled vbox and did the "make oldconfig && make prepare". There was a file generated at the same time beside the .config in /usr/src/ called 'missing-syscalls.d' which has:

-: include/linux/autoconf.h include/asm/types.h \
 include/asm-generic/int-ll64.h include/asm/bitsperlong.h \
 include/asm-generic/bitsperlong.h include/asm/uninstd.h \
Again, all those files are present so what does it mean and could it be a clue?
Old 07-05-2010, 09:25 AM   #2
Didier Spaier
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,871

Rep: Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783
Please tell us what are your distribution name and version and your kernel version. This could help us to help you


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing VirtualBox from SlackBuild - Slackware 12 - vboxdrv problem Do7AN Slackware 9 01-22-2009 02:58 PM
log compile errors. maradnus Linux - Newbie 1 11-03-2008 01:28 PM
problem with virtualbox and vboxdrv driver shifter Ubuntu 2 06-08-2008 12:10 PM
problem with virtualbox and vboxdrv driver shifter Linux - Software 1 06-07-2008 12:14 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration