Building latest virtualbox-modules version in portage against kernel 4.14-rcX leads to a failure: /var/tmp/portage/app-emulation/virtualbox-modules-5.1.30/work/vboxnetflt/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltLinuxSkBufFromS G’: /var/tmp/portage/app-emulation/virtualbox-modules-5.1.30/work/vboxnetflt/linux/VBoxNetFlt-linux.c:726:24: error: ‘SKB_GSO_UDP’ undeclared (first use in this function) fGsoType = SKB_GSO_UDP; ^ /var/tmp/portage/app-emulation/virtualbox-modules-5.1.30/work/vboxnetflt/linux/VBoxNetFlt-linux.c:726:24: note: each undeclared identifier is reported only once for each function it appears in In file included from /var/tmp/portage/app-emulation/virtualbox-modules-5.1.30/work/vboxnetflt/include/iprt/types.h:29:0, from /var/tmp/portage/app-emulation/virtualbox-modules-5.1.30/work/vboxnetflt/r0drv/linux/the-linux-kernel.h:34, from /var/tmp/portage/app-emulation/virtualbox-modules-5.1.30/work/vboxnetflt/linux/VBoxNetFlt-linux.c:24: /var/tmp/portage/app-emulation/virtualbox-modules-5.1.30/work/vboxnetflt/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltLinuxCanForwardAsGso’: /var/tmp/portage/app-emulation/virtualbox-modules-5.1.30/work/vboxnetflt/linux/VBoxNetFlt-linux.c:1112:53: error: ‘SKB_GSO_UDP’ undeclared (first use in this function) if (RT_UNLIKELY( skb_shinfo(pSkb)->gso_type & ~(SKB_GSO_UDP | SKB_GSO_DODGY | SKB_GSO_TCPV6 | SKB_GSO_TCPV4) )) ^ /var/tmp/portage/app-emulation/virtualbox-modules-5.1.30/work/vboxnetflt/include/iprt/cdefs.h:1612:53: note: in definition of macro ‘RT_UNLIKELY’ # define RT_UNLIKELY(expr) __builtin_expect(!!(expr), 0) ^ /var/tmp/portage/app-emulation/virtualbox-modules-5.1.30/work/vboxnetflt/linux/VBoxNetFlt-linux.c: In function ‘vboxNetFltLinuxForwardToIntNet’: /var/tmp/portage/app-emulation/virtualbox-modules-5.1.30/work/vboxnetflt/linux/VBoxNetFlt-linux.c:1405:47: error: ‘SKB_GSO_UDP’ undeclared (first use in this function) if ( (skb_shinfo(pBuf)->gso_type & (SKB_GSO_UDP | SKB_GSO_TCPV6 | SKB_GSO_TCPV4)) ^ make[4]: *** [/usr/src/linux.git/scripts/Makefile.build:314: /var/tmp/portage/app-emulation/virtualbox-modules-5.1.30/work/vboxnetflt/linux/VBoxNetFlt-linux.o] Error 1 make[3]: *** [/usr/src/linux.git/Makefile:1503: _module_/var/tmp/portage/app-emulation/virtualbox-modules-5.1.30/work/vboxnetflt] Error 2 make[3]: Leaving directory '/usr/src/linux.git' make[2]: *** [Makefile:146: sub-make] Error 2 make[2]: Leaving directory '/usr/src/linux.git' make[1]: *** [Makefile:211: vboxnetflt] Error 2 make[1]: Leaving directory '/var/tmp/portage/app-emulation/virtualbox-modules-5.1.30/work/vboxnetflt' make: *** [Makefile:44: all] Error 1 * ERROR: app-emulation/virtualbox-modules-5.1.30::gentoo failed (compile phase): * emake failed
Please see here for a patch https://gist.github.com/herbmillerjr/039c129e9c25b047b906e19ad1f23a59
(In reply to Fabio Rossi from comment #1) > Please see here for a patch > https://gist.github.com/herbmillerjr/039c129e9c25b047b906e19ad1f23a59 Thanks! Did worked for me. I was able to compiles virtualbox-modules with 4.14.
Thank you, with kernel 4.14.0 and this patch can compile virtualbox-modules. W/o patch - was compilation error.
When it will be included in the main stream?
Same problem here.
The same error happens with 4.13.12-gentoo, if /usr/src/linux is a link to linux-4.14.0.
(In reply to Fabio Rossi from comment #1) > Please see here for a patch > https://gist.github.com/herbmillerjr/039c129e9c25b047b906e19ad1f23a59 The patch seems to work.
(In reply to Juergen Rose from comment #6) > The same error happens with 4.13.12-gentoo, if /usr/src/linux is a link to > linux-4.14.0. Juergen, if the link is to 4.14.0 it is creating module for that kernel! It is wrong to say that happens with other kernel.
You're going to need this one too now. https://gist.github.com/herbmillerjr/e62ef784603464cb945038debe9a088d
*** Bug 638692 has been marked as a duplicate of this bug. ***
Created attachment 506588 [details] ebuild with patches for virtualbox-modules-5.1.30 The above mentioned patches for 5.1.28 and 5.1.30 both work with kernel 4.14.2. I've attached my ebuild.
I have tried the patch, the ebuild, nothing will get me past the -modules part * Applying virtualbox-modules-5.1.30-timer-setup.patch ... patch: **** malformed patch at line 35: }
The 2 patches together worked for me: * https://gist.githubusercontent.com/herbmillerjr/039c129e9c25b047b906e19ad1f23a59/raw/3b8ebadec915522f25d265b4952cb071140cd992/virtualbox-modules-5.1.28-udp.patch * https://gist.githubusercontent.com/herbmillerjr/e62ef784603464cb945038debe9a088d/raw/bc6514c9a1adecb0e99775e64f2486b3073acdfb/virtualbox-modules-5.1.30-timer-setup.patch Kernel: linux-4.14.2-gentoo Virtualbox package: app-emulation/virtualbox-modules-5.1.30 Cheers!
I applied the udp patch to 5.1.30 and it at least compiled for me with gentoo-sources-4.14.2.
(In reply to Oleksandr Trotsenko from comment #13) > The 2 patches together worked for me: > * > https://gist.githubusercontent.com/herbmillerjr/ > 039c129e9c25b047b906e19ad1f23a59/raw/ > 3b8ebadec915522f25d265b4952cb071140cd992/virtualbox-modules-5.1.28-udp.patch > * > https://gist.githubusercontent.com/herbmillerjr/ > e62ef784603464cb945038debe9a088d/raw/ > bc6514c9a1adecb0e99775e64f2486b3073acdfb/virtualbox-modules-5.1.30-timer- > setup.patch > > Kernel: linux-4.14.2-gentoo > Virtualbox package: app-emulation/virtualbox-modules-5.1.30 > > Cheers! Could someone please comment on why the second patch above is necessary? I used only the first patch on 5.1.30.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=148d258205d9dac8c75d6b5ae041e6a96de5b075 commit 148d258205d9dac8c75d6b5ae041e6a96de5b075 Author: Guilherme Amadio <amadio@gentoo.org> AuthorDate: 2017-11-27 14:02:30 +0000 Commit: Guilherme Amadio <amadio@gentoo.org> CommitDate: 2017-11-27 23:00:01 +0000 app-emulation/virtualbox-modules: support linux 4.14.x, fix bug #636484 SKB_GSO_UDP has been removed in linux by commit d9d30adf56777c402c0027c0e6ae21f17cc0a365. Reported-by: Fabio Rossi <rossi.f@inwind.it> Suggested-by: Herb Miller Jr. <herb@hlmjr.com> Closes: https://bugs.gentoo.org/636484 Package-Manager: Portage-2.3.16, Repoman-2.3.6 app-emulation/virtualbox-modules/Manifest | 2 +- .../files/virtualbox-modules-5.1.30-udp.patch | 35 ++++++++++++++++++++++ .../virtualbox-modules-5.1.30.ebuild | 4 +++ 3 files changed, 40 insertions(+), 1 deletion(-)
(In reply to Guilherme Amadio from comment #15) > (In reply to Oleksandr Trotsenko from comment #13) > > The 2 patches together worked for me: > > * > > https://gist.githubusercontent.com/herbmillerjr/ > > 039c129e9c25b047b906e19ad1f23a59/raw/ > > 3b8ebadec915522f25d265b4952cb071140cd992/virtualbox-modules-5.1.28-udp.patch > > * > > https://gist.githubusercontent.com/herbmillerjr/ > > e62ef784603464cb945038debe9a088d/raw/ > > bc6514c9a1adecb0e99775e64f2486b3073acdfb/virtualbox-modules-5.1.30-timer- > > setup.patch > > > > Kernel: linux-4.14.2-gentoo > > Virtualbox package: app-emulation/virtualbox-modules-5.1.30 > > > > Cheers! > > Could someone please comment on why the second patch above is necessary? > I used only the first patch on 5.1.30. It's not. That was my mistake because I keep forgetting I'm ahead of everyone else's system. The second one won't be necessary until kernel 4.15.