Kernel 4.18.5 cannot load module

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Grillmeister
Posts: 2
Joined: 8. Sep 2018, 08:12

Kernel 4.18.5 cannot load module

Post by Grillmeister »

Hi all,


Despite spending a lot of time searching the internet and forum I could not find a solution to successfully build the modules:

My setup:
Linux debian 4.18.5 #1 SMP
Debian Version 9 - Stretch
Virtualbox version: 5.2.18-124319~Debian~stretch
I also did try the testbuild "Linux 64-bit 5.2.x revision 124848" which resulted with the same error.
In file included from ./include/linux/compat.h:16:0,
from ./include/linux/ethtool.h:17,
from ./include/linux/netdevice.h:41,
from /tmp/vbox.0/linux/VBoxNetFlt-linux.c:40:
./include/linux/if.h:28:54: fatal error: sys/socket.h: No such file or directory
#include <sys/socket.h> /* for struct sockaddr. */
^
compilation terminated.
scripts/Makefile.build:317: recipe for target '/tmp/vbox.0/linux/VBoxNetFlt-linux.o' failed
make[2]: *** [/tmp/vbox.0/linux/VBoxNetFlt-linux.o] Error 1
Makefile:1500: recipe for target '_module_/tmp/vbox.0' failed
make[1]: *** [_module_/tmp/vbox.0] Error 2
/tmp/vbox.0/Makefile.include.footer:101: recipe for target 'vboxnetflt' failed
make: *** [vboxnetflt] Error 2
Your help is very much appreciated. Thanks Grillmeister
Grillmeister
Posts: 2
Joined: 8. Sep 2018, 08:12

Re: Kernel 4.18.5 cannot load module

Post by Grillmeister »

I also tried it with the latest development version "VirtualBox Version 5.2.97 r124815" - same result.
Post Reply