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)
Change History (8)
by , 13 years ago
Attachment: | virtbox.patch added |
---|
comment:1 by , 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 , 13 years ago
FWIW the patch worked against 3.2-rc1 for me, thanks. What should the fix have been?
comment:5 by , 13 years ago
Summary: | compile error building against Linux-next tree next-20111012 → compile error building against Linux-next tree next-20111012 => Fixed in SVN |
---|
by , 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
Patch to allow compiles against 3.1.0 kernel