LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-21-2020, 10:51 PM   #1
Andersen
Member
 
Registered: Dec 2008
Distribution: Slackware
Posts: 178

Rep: Reputation: 72
Error building the main virtualbox module in Slackware 64 --current [after a recent update to the 5.10.1 kernel]


After one of the recent updates (5.10.1 kernel) my Virtualbox (6.1.16) stopped working. Usually, after every kernel update, vbox daemon would build a new virtualbox module at the system startup. However, this time I got a message that it cannot be done and pointed me to see the log. The log is huge, so I put only the beginning and the end, just in case anyone is interested.


Quote:
Building the main VirtualBox module.
Error building the module:
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/5.10.2/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j4 modules
make[1]: warning: -jN forced in submake: disabling jobserver mode.
make -f ./scripts/Makefile.build obj=/tmp/vbox.0 \
single-build= \
need-builtin=1 need-modorder=1


.................................................................................................... ........


In file included from /tmp/vbox.0/r0drv/linux/initterm-r0drv-linux.c:31:
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:132:11: fatal error: linux/smp_lock.h: No such file or directory
132 | # include <linux/smp_lock.h>
| ^~~~~~~~~~~~~~~~~~
In file included from /tmp/vbox.0/r0drv/linux/assert-r0drv-linux.c:31:
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:132:11: fatal error: linux/smp_lock.h: No such file or directory
132 | # include <linux/smp_lock.h>
| ^~~~~~~~~~~~~~~~~~
In file included from /tmp/vbox.0/linux/SUPDrv-linux.c:33:
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:132:11: fatal error: linux/smp_lock.h: No such file or directory
132 | # include <linux/smp_lock.h>
| ^~~~~~~~~~~~~~~~~~
In file included from /tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.c:31:
/tmp/vbox.0/r0drv/linux/the-linux-kernel.h:132:11: fatal error: linux/smp_lock.h: No such file or directory
132 | # include <linux/smp_lock.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
compilation terminated.
compilation terminated.
make[2]: *** [scripts/Makefile.build:279: /tmp/vbox.0/r0drv/linux/assert-r0drv-linux.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:279: /tmp/vbox.0/r0drv/linux/initterm-r0drv-linux.o] Error 1
make[2]: *** [scripts/Makefile.build:279: /tmp/vbox.0/r0drv/linux/alloc-r0drv-linux.o] Error 1
make[2]: *** [scripts/Makefile.build:279: /tmp/vbox.0/linux/SUPDrv-linux.o] Error 1
make[1]: *** [Makefile:1805: /tmp/vbox.0] Error 2
make: *** [/tmp/vbox.0/Makefile.include.footer:103: vboxdrv] Error 2
When I try to start Virtualbox client, the app pops up, and I get this message:

Quote:
WARNING: The vboxdrv kernel module is not loaded. Either there is no module
available for the current kernel (5.10.2) or it failed to
load. Please recompile the kernel module and install it by

sudo /sbin/vboxconfig

You will not be able to start VMs until this problem is fixed.
Does anyone have any suggestions how to solve this problem with the module? Thanks!

Last edited by Andersen; 12-21-2020 at 10:52 PM. Reason: vb version added
 
Old 12-21-2020, 11:45 PM   #2
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Posts: 297

Rep: Reputation: Disabled
I can confirm 6.1.16 fails (I use the .run file option). However the 6.1.17 testbuild & extension pack works fine so far... Either wait or install the testbuild?

Edit: I'm on the 5.10.2 kernel but I doubt that matters in this situation.
 
2 members found this post helpful.
Old 12-21-2020, 11:53 PM   #3
Andersen
Member
 
Registered: Dec 2008
Distribution: Slackware
Posts: 178

Original Poster
Rep: Reputation: 72
Quote:
Originally Posted by BrianW View Post
I can confirm 6.1.16 fails (I use the .run file option). However the 6.1.17 testbuild & extension pack works fine so far... Either wait or install the testbuild?

Edit: I'm on the 5.10.2 kernel but I doubt that matters in this situation.
Thanks, I'll try the testbuild.
 
Old 12-22-2020, 12:28 AM   #4
Andersen
Member
 
Registered: Dec 2008
Distribution: Slackware
Posts: 178

Original Poster
Rep: Reputation: 72
Ok, I can confirm that testbuild 6.1.17 works well with 5.10.1

Thanks once again for the suggestion!
 
Old 12-22-2020, 12:36 PM   #5
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,243

Rep: Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861
Can you tell us where you downloaded 6.1.17 from? I could not find it at
https://www.virtualbox.org/wiki/Linux_Downloads
 
Old 12-22-2020, 01:18 PM   #6
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,407
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
I believe it's somewhere over there : https://www.virtualbox.org/wiki/Testbuilds
In the contrib section
 
1 members found this post helpful.
Old 12-22-2020, 01:20 PM   #7
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,243

Rep: Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861Reputation: 861
Thank-you!
 
  


Reply



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
[SOLVED] virtualbox is installed along with virtualbox-dkms and virtualbox-ext-pack and linux-headers-generic, but error for no /dev/vboxdrv Astral Axiom Linux - Software 2 03-04-2019 08:09 PM
VirtualBox not starting after recent kernel upgrade canadensis Slackware 12 09-12-2018 01:03 PM
recent update breaks video in virtualbox Aeterna Slackware 32 08-24-2018 08:35 PM
VirtualBox Kernel Module no longer builds under -current kernel update of 17-Nov-2017 statguy Slackware 35 01-21-2018 08:34 PM
puppy thoughts after having a recent look see -- given recent developments .. jonyo Puppy 0 11-29-2011 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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