VirtualBox

Opened 13 years ago

Closed 13 years ago

#9743 closed enhancement (fixed)

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

Reported by: Valdis Kletnieks Owned by:
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 (2)

virtbox.patch (1.3 KB ) - added by Valdis Kletnieks 13 years ago.
Patch to allow compiles against 3.1.0 kernel
vbox-install.log (191.5 KB ) - added by thorfinn 13 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

Download all attachments as: .zip

Change History (8)

by Valdis Kletnieks, 13 years ago

Attachment: virtbox.patch added

Patch to allow compiles against 3.1.0 kernel

comment:1 by Valdis Kletnieks, 13 years ago

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 by rocko, 13 years ago

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

comment:3 by Frank Mehnert, 13 years ago

The correct patch can be found as r39224.

comment:4 by Frank Mehnert, 13 years ago

And thank you valdis for the suggestion as well!

comment:5 by Frank Mehnert, 13 years ago

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

by thorfinn, 13 years ago

Attachment: vbox-install.log added

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 by Frank Mehnert, 13 years ago

Resolution: fixed
Status: newclosed

Fix is part of VBox 4.1.8.

Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette