VB 6.1.x, 7.0.4 failed builiding kernel module on RHEL 9.1

Discussions related to using VirtualBox on Linux hosts.
Post Reply
VB User22
Posts: 2
Joined: 24. Nov 2022, 05:55

VB 6.1.x, 7.0.4 failed builiding kernel module on RHEL 9.1

Post by VB User22 »

After upgrading RHEL 9.0 to 9.1, existing 6.1.6 and 7.0.4 both failed building kernel module.

Logged errors:

Code: Select all

> /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
Kernel installed:
kernel-tools-libs-5.14.0-162.6.1.el9_1.x86_64
kernel-core-5.14.0-162.6.1.el9_1.x86_64
kernel-modules-5.14.0-162.6.1.el9_1.x86_64
kernel-headers-5.14.0-162.6.1.el9_1.x86_64
kernel-devel-5.14.0-162.6.1.el9_1.x86_64
kernel-5.14.0-162.6.1.el9_1.x86_64
kernel-modules-extra-5.14.0-162.6.1.el9_1.x86_64
kernel-tools-5.14.0-162.6.1.el9_1.x86_64
Any help is appreciated
VB User22
Posts: 2
Joined: 24. Nov 2022, 05:55

Re: VB 6.1.x, 7.0.4 failed builiding kernel module on RHEL 9.1

Post by VB User22 »

The issue seems to only happen with the newer kernel. kernel-5.14.0-162.6.1.el9_1.x86_64.

The older kernel, such as kernel-5.14.0-70.30.1.el9_0.x86_64, works fine.
fth0
Volunteer
Posts: 5677
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: VB 6.1.x, 7.0.4 failed builiding kernel module on RHEL 9.1

Post by fth0 »

I'd suggest to create a ticket in the Bugtracker.
Post Reply