LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-05-2010, 07:03 AM   #1
skola
Member
 
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-2.6.31.12 /usr/src/linux-2.xxx-obj all match doing cmp or diff on them

I'm using a shell script install - VirtualBox-xxx.run

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.

Code:
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-2.6.31.12-0.2-obj/i386/default'
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/linux-2.xxx called 'missing-syscalls.d' which has:

Code:
-: 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 \
 include/asm/uninstd_32.h
Again, all those files are present so what does it mean and could it be a clue?
 
Old 07-05-2010, 08:25 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

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


Reply


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 01:58 PM
log compile errors. maradnus Linux - Newbie 1 11-03-2008 12:28 PM
problem with virtualbox and vboxdrv driver shifter Ubuntu 2 06-08-2008 11:10 AM
problem with virtualbox and vboxdrv driver shifter Linux - Software 1 06-07-2008 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:48 PM.

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