[SOLVED] Error building the main virtualbox module in Slackware 64 --current [after a recent update to the 5.10.1 kernel]
by Andersen from LinuxQuestions.org on (#5BYK7)
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:
When I try to start Virtualbox client, the app pops up, and I get this message:
Quote:
Does anyone have any suggestions how to solve this problem with the module? Thanks!


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 |
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. |