Opened 14 years ago
Closed 14 years ago
#8143 closed defect (fixed)
Unable to compile VirtualBox kernel modules on 2.6.38 kernel => Fixed in SVN
Reported by: | alphazo | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 4.0.2 |
Keywords: | kernel modules | Cc: | |
Guest type: | Windows | Host type: | Linux |
Description
4.0.2 was running fine on 2.6.36 kernel (ArchLinux). I switched to 2.6.38rc1 and when I try to recompile the kernel modules for my new kernel by doing "sudo /etc/rc.d/vboxdrv setup" it says [BUSY] forever. I waited more than 10 minutes on a i5 core but nothing happened.
ps aux | grep make reports:
root 3055 0.0 0.0 12632 1200 pts/0 S+ 16:33 0:00 make -f /usr/src/linux-2.6.38-rc1-mainline/Makefile silentoldconfig
root 3172 0.0 0.0 13572 2104 pts/0 S+ 16:33 0:00 make -f scripts/Makefile.build obj=scripts/kconfig silentoldconfig
alpha 3182 0.0 0.0 10464 972 pts/2 S+ 16:33 0:00 grep --color=auto make
root 3749 0.0 0.0 10256 872 pts/0 S+ 16:18 0:00 make --no-print-directory install
true |
root 3754 2.0 0.0 13592 2132 pts/0 S+ 16:18 0:18 make -sC /lib/modules/2.6.38-rc1-mainline/build --no-print-directory kernelrelease
Change History (6)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
This will update all the files for you.
cd /usr/share/virtualbox/src/vboxhost && for file in `grep "autoconf.h" * -R| cut -f1 -d:`; do sed -i 's/^#\(s*\)include <linux\/autoconf\.h>/#\1include <generated\/autoconf.h>/g' $file; done
The following files were updated on my machine:
vboxdrv/r0drv/linux/the-linux-kernel.h vboxdrv/SUPDrvInternal.h vboxdrv/include/iprt/types.h vboxdrv/include/internal/iprt.h vboxnetadp/r0drv/linux/the-linux-kernel.h vboxnetadp/include/iprt/types.h vboxnetadp/include/internal/iprt.h vboxnetflt/r0drv/linux/the-linux-kernel.h vboxnetflt/include/iprt/types.h
The module built successfully on my machine after doing this while running 2.6.38-rc2.
comment:3 by , 14 years ago
comment:4 by , 14 years ago
Summary: | Unable to compile VirtualBox kernel modules on 2.6.38 kernel → Unable to compile VirtualBox kernel modules on 2.6.38 kernel => Fixed in SVN |
---|
You need to change the following line # include <linux/autoconf.h> with # include <generated/autoconf.h> on every .h file in the /usr/share/virtualbox/src/vboxhost directory.
After that it compiles with no problem with DKMS. Just use
This page https://patchwork.kernel.org/patch/72714/ gave me the idea ...