VirtualBox

Opened 13 years ago

Closed 13 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

root 3753 0.0 0.0 13500 1564 pts/0 S+ 16:18 0:00 /bin/sh -c make -sC /lib/modules/2.6.38-rc1-mainline/build --no-print-directory kernelrelease 2> /dev/null
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 Marian Popescu, 13 years ago

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

sudo /etc/init.d/vboxdrv setup

This page https://patchwork.kernel.org/patch/72714/ gave me the idea ...

comment:2 by sharpone, 13 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 Frank Mehnert, 13 years ago

The changesets r35647 plus r35662 contain the fix. These fixes will be included in the next maintenance release.

comment:4 by Frank Mehnert, 13 years ago

Summary: Unable to compile VirtualBox kernel modules on 2.6.38 kernelUnable to compile VirtualBox kernel modules on 2.6.38 kernel => Fixed in SVN

comment:5 by Chad Rodrigue, 13 years ago

Problem also exists with the guest additions.

comment:6 by Frank Mehnert, 13 years ago

Resolution: fixed
Status: newclosed

Fixed in VBox 4.0.4.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use