LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-09-2015, 08:27 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,207

Rep: Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811
Virtualbox-kernel compile error.


Every new kernel I have to recompile the virtualbox kernel. I did what I thought was the safe thing with the same source as before
make clean
make
make DESTDIR=/blah install
Here's the meltdown:

Code:
*** Building 'vboxnetadp' module ***
make[1]: Entering directory `/usr/src/virtualbox-kernel-4.3.10/vboxnetadp'
make KBUILD_VERBOSE= SUBDIRS=/usr/src/virtualbox-kernel-4.3.10/vboxnetadp SRCROOT=/usr/src/virtualbox-kernel-4.3.10/vboxnetadp CONFIG_MODULE_SIG= -C /lib/modules/3.19.0-rc6/build modules
make[2]: Entering directory `/usr/src/linux-stable'
  CC [M]  /usr/src/virtualbox-kernel-4.3.10/vboxnetadp/linux/VBoxNetAdp-linux.o
/usr/src/virtualbox-kernel-4.3.10/vboxnetadp/linux/VBoxNetAdp-linux.c: In function 'vboxNetAdpOsCreate':
[B]/usr/src/virtualbox-kernel-4.3.10/vboxnetadp/linux/VBoxNetAdp-linux.c:186:48: error: macro "alloc_netdev" requires 4 arguments, but only 3 given[/B]
                            vboxNetAdpNetDevInit);
                                                ^
/usr/src/virtualbox-kernel-4.3.10/vboxnetadp/linux/VBoxNetAdp-linux.c:184:15: error: 'alloc_netdev' undeclared (first use in this function)
     pNetDev = alloc_netdev(sizeof(VBOXNETADPPRIV),
               ^
/usr/src/virtualbox-kernel-4.3.10/vboxnetadp/linux/VBoxNetAdp-linux.c:184:15: note: each undeclared identifier is reported only once for each function it appears in
/usr/src/virtualbox-kernel-4.3.10/vboxnetadp/linux/VBoxNetAdp-linux.c: At top level:
/usr/src/virtualbox-kernel-4.3.10/vboxnetadp/linux/VBoxNetAdp-linux.c:159:13: warning: 'vboxNetAdpNetDevInit' defined but not used [-Wunused-function]
 static void vboxNetAdpNetDevInit(struct net_device *pNetDev)
             ^
make[3]: *** [/usr/src/virtualbox-kernel-4.3.10/vboxnetadp/linux/VBoxNetAdp-linux.o] Error 1
make[2]: *** [_module_/usr/src/virtualbox-kernel-4.3.10/vboxnetadp] Error 2
make[2]: Leaving directory `/usr/src/linux-stable'
make[1]: *** [vboxnetadp] Error 2
make[1]: Leaving directory `/usr/src/virtualbox-kernel-4.3.10/vboxnetadp'
cp: cannot stat 'vboxnetadp/vboxnetadp.ko': No such file or directory

*** Building 'vboxpci' module ***
make[1]: Entering directory `/usr/src/virtualbox-kernel-4.3.10/vboxpci'
make KBUILD_VERBOSE= SUBDIRS=/usr/src/virtualbox-kernel-4.3.10/vboxpci SRCROOT=/usr/src/virtualbox-kernel-4.3.10/vboxpci CONFIG_MODULE_SIG= -C /lib/modules/3.19.0-rc6/build modules
make[2]: Entering directory `/usr/src/linux-stable'
  Building modules, stage 2.
  MODPOST 1 modules
make[2]: Leaving directory `/usr/src/linux-stable'
make[1]: Leaving directory `/usr/src/virtualbox-kernel-4.3.10/vboxpci'
Is it the fact that I'm using a linux-stable as the kernel source?
 
Old 03-17-2015, 12:37 AM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Not sure if it's because your using a linux-stable as the kernel src or not-
Maybe because of changes made in the kernel?

This is the stuff that is maddening:-
This one has me baffeled.

I looked up this to find the thread below.
Code:
make[1]: Leaving directory `/usr/src/virtualbox-kernel-4.3.10/vboxnetadp'
cannot stat 'vboxnetadp/vboxnetadp.ko': No such file or directory
Maybe upgrade VBox it helped others in this thread.
https://forums.gentoo.org/viewtopic-...4-start-0.html

http://pietrushnic.github.io/blog/20...0-rcx-headers/

HTH business_kid gave it my best:-

Cheers
 
Old 03-18-2015, 05:14 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,207

Original Poster
Rep: Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811
My source is there still, and I ran 'make' in your honour.

There has to be a higher error; I get that too - it didn't make the module. It's just doing a cd to top source and checking it actually made the module, and flagging that it didn't. That's verbose, convoluted and weird, but maybe necessary.
 
Old 03-18-2015, 08:53 PM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Maybe read through the build log and see where it starts to go south.

Try updating your VBox to the latest and downgrade your kernel. (just an idea)

I'm pondering on the output of this thread to see if anything comes to mind.
http://www.gossamer-threads.com/list...oo/user/295862

-:-If there is a higher error I'm not sure where it would be aside form the build log.-:-

Not sure if debugging the kernel is the answer but it did come to mind.

Are you able to boot the guest?
Do you have the suspicion that this could this be a bug?

Last edited by Ztcoracat; 03-18-2015 at 08:54 PM.
 
Old 03-19-2015, 06:10 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,207

Original Poster
Rep: Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811
Well, in my case, I may have spotted it.

To get around linux-stable, I created a symlink in /usr/src 3.19.0-rc6 --> linux-stable, and altered the build and source symlinks in /lib/modules. Then I made clean, and went from there. And it built successfully, but still managed to pick up linux-stable from somewhere.

There's also an undeclared function (first use of . . . .) which incdicates an earlier error, but I'll have to need this thing real bad before I dig through that!

Thinks: next try, I'll have to go back to the configure, mv linux-stable --> linux-3.19.0-rc6, and have linux-stable as the symlink.
 
Old 03-19-2015, 10:57 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Well I hope your able to fix it.

This seems to be more than what I understand.
 
Old 05-04-2015, 01:14 PM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,207

Original Poster
Rep: Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811
Well, sorted it by installing virtualbox-kernel-4.3.24.

I'm guessing the git kernel was not compatible in some way with 4.3.10, and that a later version sorted it.
 
Old 05-04-2015, 08:59 PM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Quote:
Originally Posted by business_kid View Post
Well, sorted it by installing virtualbox-kernel-4.3.24.

I'm guessing the git kernel was not compatible in some way with 4.3.10, and that a later version sorted it.
Glad to hear the good news.

Could of been a compatibility issue; very possible.
 
Old 05-04-2015, 09:00 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Was it difficult installing VBox on Slack?
 
Old 05-05-2015, 04:42 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, RPi OS, Mint & Android
Posts: 13,207

Original Poster
Rep: Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811Reputation: 1811
No difficulty with virtualbox itself. VirtualBox requires acpica, the jdk package from /extra.

My difficulties have been with stupid things. I have a versioning issue (new thread) because the modules didn't pick up the '-rc6' on my kernel (3.19.0-rc6) so they throw a versioning error "Exec format error."

The thing insists on putting the machines in Virtualbox\ VMs, but try as you might, you won't mount a partition on a directory with a space in it. Every time you change kernel version, you need a new set of virtialbox-kernel modules. Hence the pain.
 
Old 05-05-2015, 06:54 PM   #11
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175Reputation: 1175
Quote:
Originally Posted by business_kid View Post
No difficulty with virtualbox itself. VirtualBox requires acpica, the jdk package from /extra.

My difficulties have been with stupid things. I have a versioning issue (new thread) because the modules didn't pick up the '-rc6' on my kernel (3.19.0-rc6) so they throw a versioning error "Exec format error."

The thing insists on putting the machines in Virtualbox\ VMs, but try as you might, you won't mount a partition on a directory with a space in it. Every time you change kernel version, you need a new set of virtialbox-kernel modules. Hence the pain.
Yeah, I see where that could be redundant and painful:-

I'll try installing VBox on my Slackware box and see how it goes.

Thanks:-
 
  


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
Kernel build Virtualbox error CollieJim Linux - Kernel 3 04-27-2013 11:25 AM
[SOLVED] Error compiling virtualbox kernel module - cannot stat `vboxpci.ko' Barx Slackware 4 02-20-2012 03:35 AM
VirtualBox 3.1.6 kernel @ SlackBuild error - kernel include dir dc_eros Slackware 4 06-01-2010 12:24 AM
Virtualbox Error - Kernel driver not installed (rc=-1908) callumacrae Linux - Software 11 10-28-2009 03:13 PM
Kernel compile error DAChristen29 Linux - Software 1 12-09-2002 11:11 AM

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

All times are GMT -5. The time now is 05:58 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