VirtualBox

10 年 前 建立

10 年 前 結束

#14081 closed defect (fixed)

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

回報者: colorprint 負責人:
元件: other 版本: VirtualBox 4.3.26
關鍵字: 副本:
Guest type: other Host type: other

描述

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'

更動歷史 (2)

comment:1 10 年 前vallimar 編輯

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 10 年 前Frank Mehnert 編輯

狀態: newclosed
處理結果: fixed

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).

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

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