Opened 22 months ago
Closed 22 months ago
#21311 closed defect (duplicate)
VB 6.1.x, 7.0.4 failed builiding kernel module on RHEL 9.1
| Reported by: | VB User22 | Owned by: | |
|---|---|---|---|
| Component: | other | Version: | VirtualBox-7.0.4 |
| Keywords: | Cc: | ||
| Guest type: | other | Host type: | other |
Description
After upgrading RHEL 9.0 to 9.1, existing 6.1.6 and 7.0.4 both failed building kernel module.
kernel module build error:
/tmp/vbox.0/.tmp_VBoxNetFlt.ver; ld -m elf_x86_64 -r -o /tmp/vbox.0/.tmp_VBoxNetFlt.o /tmp/vbox.0/VBoxNetFlt.o -T /tmp/vbox.0/.tmp_VBoxNetFlt.ver; mv -f /tmp/vbox.0/.tmp_VBoxNetFlt.o /tmp/vbox.0/VBoxNetFlt.o; rm -f /tmp/vbox.0/.tmp_VBoxNetFlt.ver; fi
/tmp/vbox.0/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltPortOsXmit’: /tmp/vbox.0/linux/VBoxNetFlt-linux.c:2327:23: error: implicit declaration of function ‘netif_rx_ni’; did you mean ‘netif_rx’? [-Werror=implicit-function-declaration]
2327 | err = netif_rx_ni(pBuf);
|
| netif_rx
cc1: some warnings being treated as errors make[2]: * [scripts/Makefile.build:295: /tmp/vbox.0/linux/VBoxNetFlt-linux.o] Error 1 make[1]: * [Makefile:1915: /tmp/vbox.0] Error 2 make: * vboxnetflt Error 2
This issue happens with kernel-5.14.0-162.6.1.el9_1.x86_64.
The older version of kernel such as kernel-5.14.0-70.30.1.el9_0.x86_64 works fine.


> /tmp/vbox.0/.tmp_VBoxNetFlt.ver; ld -m elf_x86_64 -r -o /tmp/vbox.0/.tmp_VBoxNetFlt.o /tmp/vbox.0/VBoxNetFlt.o -T /tmp/vbox.0/.tmp_VBoxNetFlt.ver; mv -f /tmp/vbox.0/.tmp_VBoxNetFlt.o /tmp/vbox.0/VBoxNetFlt.o; rm -f /tmp/vbox.0/.tmp_VBoxNetFlt.ver; fi /tmp/vbox.0/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltPortOsXmit’: /tmp/vbox.0/linux/VBoxNetFlt-linux.c:2327:23: error: implicit declaration of function ‘netif_rx_ni’; did you mean ‘netif_rx’? [-Werror=implicit-function-declaration] 2327 | err = netif_rx_ni(pBuf); | ^~~~~~~~~~~ | netif_rx cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:295: /tmp/vbox.0/linux/VBoxNetFlt-linux.o] Error 1 make[1]: *** [Makefile:1915: /tmp/vbox.0] Error 2 make: *** [/tmp/vbox.0/Makefile-footer.gmk:133: vboxnetflt] Error 2