Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 860342 - virtualbox-modules-6.1.34 compile error with kernel 5.18.x
Summary: virtualbox-modules-6.1.34 compile error with kernel 5.18.x
Status: RESOLVED DUPLICATE of bug 847094
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-23 18:52 UTC by Mike Greene
Modified: 2022-07-23 19:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Greene 2022-07-23 18:52:49 UTC
I moved up to using 5.18.x kernel and virtualbox-modules-6.1.34 failed compile with this error:

sh ./scripts/modules-check.sh /var/tmp/portage/app-emulation/virtualbox-modules-6.1.34/work/vboxnetadp/modules.order
/var/tmp/portage/app-emulation/virtualbox-modules-6.1.34/work/vboxnetflt/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltPortOsXmit’:
/var/tmp/portage/app-emulation/virtualbox-modules-6.1.34/work/vboxnetflt/linux/VBoxNetFlt-linux.c:2314:23: error: implicit declaration of function ‘netif_rx_ni’; did you mean ‘netif_rx’? [-Werror=implicit-function-declaration]
 2314 |                 err = netif_rx_ni(pBuf);
      |                       ^~~~~~~~~~~
      |                       netif_rx
make -f ./scripts/Makefile.modpost
scripts/Makefile.modpost:134: warning: overriding recipe for target '/var/tmp/portage/app-emulation/virtualbox-modules-6.1.34/work/vboxnetadp/Module.symvers'
scripts/Makefile.modpost:117: warning: ignoring old recipe for target '/var/tmp/portage/app-emulation/virtualbox-modules-6.1.34/work/vboxnetadp/Module.symvers'

I did not experience this error with 5.17 kernels and I searched, but did not find this bug reported anywhere.  The simple fix was to err = netif_rx_ni(pBuf); to err = netif_rx(pBuf); and using ebuild to compile and merge.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-23 19:34:19 UTC
I would strongly recommend against using non-LTS kernels with out-of-tree modules.

*** This bug has been marked as a duplicate of bug 847094 ***