VirtualBox

Ticket #9743 (closed enhancement: fixed)

Opened 3 years ago

Last modified 2 years ago

compile error building against Linux-next tree next-20111012 => Fixed in SVN

Reported by: valdis Owned by:
Priority: major Component: other
Version: VirtualBox 4.1.4 Keywords:
Cc: Guest type: other
Host type: Linux

Description

Changes to the iommu support have landed in the linux-next tree and will probably hit the streets in the 3.1.0 kernel. This causes compile errors:

make[2]: Entering directory `/usr/src/linux-next'

CC [M] /usr/share/virtualbox/src/vboxhost/vboxpci/linux/VBoxPci-linux.o

/usr/share/virtualbox/src/vboxhost/vboxpci/linux/VBoxPci-linux.c: In function ‘VBoxPciLinuxInit’: /usr/share/virtualbox/src/vboxhost/vboxpci/linux/VBoxPci-linux.c:149:5: error: implicit declaration of function ‘iommu_found’ [-Werror=implicit-function-declaration] /usr/share/virtualbox/src/vboxhost/vboxpci/linux/VBoxPci-linux.c: In function ‘vboxPciOsInitVm’: /usr/share/virtualbox/src/vboxhost/vboxpci/linux/VBoxPci-linux.c:989:9: error: too few arguments to function ‘iommu_domain_alloc’ include/linux/iommu.h:68:29: note: declared here cc1: some warnings being treated as errors

make[3]: * usr/share/virtualbox/src/vboxhost/vboxpci/linux/VBoxPci-linux.o Error 1

I've attached a patch that fixes the compile issue. Sorry, not tested yet, as I have an unrelated NVidia issue that's hosing VirtualBox startu.

Attachments

virtbox.patch Download (1.3 KB) - added by valdis 3 years ago.
Patch to allow compiles against 3.1.0 kernel
vbox-install.log Download (191.5 KB) - added by thorfinn 2 years ago.
log of building the kernel modules for the latest kernel from Fedora for release 15, this uses kernel 3.1 labelled as 2.6.41

Change History

Changed 3 years ago by valdis

Patch to allow compiles against 3.1.0 kernel

comment:1 Changed 3 years ago by valdis

Bah. Patch is subtly wrong - I stashed the #defines under an existing check for 3.1.0, but they need to be pulled out and put under a check for 3.2.0. Problem is I built against linux-next, which says it's 3.1.0-rc9-mumble, but already contains code that will go into 3.2.0. (which of course means that if I fixed it, it won't build for *me* till linux-next actually kicks the KERNEL_VERSION up to 3.2.0 ;)

Sorry for any confusion. ;)

comment:2 Changed 2 years ago by rocko

FWIW the patch worked against 3.2-rc1 for me, thanks. What should the fix have been?

comment:3 Changed 2 years ago by frank

The correct patch can be found as r39224.

comment:4 Changed 2 years ago by frank

And thank you valdis for the suggestion as well!

comment:5 Changed 2 years ago by frank

  • Summary changed from compile error building against Linux-next tree next-20111012 to compile error building against Linux-next tree next-20111012 => Fixed in SVN

Changed 2 years ago by thorfinn

log of building the kernel modules for the latest kernel from Fedora for release 15, this uses kernel 3.1 labelled as 2.6.41

comment:6 Changed 2 years ago by frank

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

Fix is part of VBox 4.1.8.

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use