VirtualBox

Opened 9 years ago

Closed 9 years ago

#14081 closed defect (fixed)

5.0.0_BETA2 cannot build dkms kernel modules with 4.1-rc1 kernel

Reported by: colorprint Owned by:
Component: other Version: VirtualBox 4.3.26
Keywords: Cc:
Guest type: other Host type: other

Description

CC [M] /var/lib/dkms/vboxhost/5.0.0_BETA2/build/vboxnetflt/SUPR0IdcClientComponent.o CC [M] /var/lib/dkms/vboxhost/5.0.0_BETA2/build/vboxnetflt/linux/SUPR0IdcClient-linux.o LD [M] /var/lib/dkms/vboxhost/5.0.0_BETA2/build/vboxnetflt/vboxnetflt.o LD /var/lib/dkms/vboxhost/5.0.0_BETA2/build/vboxpci/built-in.o CC [M] /var/lib/dkms/vboxhost/5.0.0_BETA2/build/vboxpci/linux/VBoxPci-linux.o

/var/lib/dkms/vboxhost/5.0.0_BETA2/build/vboxpci/linux/VBoxPci-linux.c: In function 'vboxPciOsDevRegisterIrqHandler': /var/lib/dkms/vboxhost/5.0.0_BETA2/build/vboxpci/linux/VBoxPci-linux.c:927:22: error: 'IRQF_DISABLED' undeclared (first use in this function)

IRQF_DISABLED, /* keep irqs disabled when calling the action handler */

/var/lib/dkms/vboxhost/5.0.0_BETA2/build/vboxpci/linux/VBoxPci-linux.c:927:22: note: each undeclared identifier is reported only once for each function it appears in scripts/Makefile.build:258: recipe for target '/var/lib/dkms/vboxhost/5.0.0_BETA2/build/vboxpci/linux/VBoxPci-linux.o' failed make[2]: * var/lib/dkms/vboxhost/5.0.0_BETA2/build/vboxpci/linux/VBoxPci-linux.o Error 1 scripts/Makefile.build:403: recipe for target '/var/lib/dkms/vboxhost/5.0.0_BETA2/build/vboxpci' failed make[1]: * var/lib/dkms/vboxhost/5.0.0_BETA2/build/vboxpci Error 2 Makefile:1383: recipe for target '_module_/var/lib/dkms/vboxhost/5.0.0_BETA2/build' failed make: * [_module_/var/lib/dkms/vboxhost/5.0.0_BETA2/build] Error 2 make: Leaving directory '/usr/lib/modules/4.1.0-1-mainline/build'

Change History (2)

comment:1 by vallimar, 9 years ago

I bypassed this with a very simple modification to the file:
/usr/share/virtualbox/src/vboxhost/vboxpci/linux/VBoxPci-linux.c

--- VBoxPci-linux.c.old	2015-04-28 11:37:14.530223337 -0400
+++ VBoxPci-linux.c	2015-04-28 10:54:50.913062325 -0400
@@ -923,7 +923,8 @@
 #else
 
                      /* We don't allow interrupts sharing */
-# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20)
+# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 20) && \
+	LINUX_VERSION_CODE < KERNEL_VERSION(4, 1, 0)
                      IRQF_DISABLED, /* keep irqs disabled when calling the action handler */
 # else
                      0,

comment:2 by Frank Mehnert, 9 years ago

Resolution: fixed
Status: newclosed

Thank you for the report. Similar fix applied. Actually that code deserves more maintenance but right now there is no time for that. The fix will be part of the next 4.3.x maintenance release and also part of the next 5.0.x Beta. Please use the forum to report problems in Beta releases (I know, this time it made sense to use the bugtracker).

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use