VirtualBox

Ticket #8143 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Reported by: alphazo Owned by:
Priority: major 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

comment:1 Changed 3 years ago by SoftExpert

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 Changed 3 years ago by sharpone

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 Changed 3 years ago by frank

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

comment:4 Changed 3 years ago by frank

  • Summary changed from Unable to compile VirtualBox kernel modules on 2.6.38 kernel to Unable to compile VirtualBox kernel modules on 2.6.38 kernel => Fixed in SVN

comment:5 Changed 3 years ago by WorLord

Problem also exists with the guest additions.

comment:6 Changed 3 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in VBox 4.0.4.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use