Summary: | app-emulation/virtualbox-modules-4.2.24 with kernel 3.17.1 - .../work/vboxnetadp/linux/VBoxNetAdp-linux.c:186:48: error: macro "alloc_netdev" requires 4 arguments, but only 3 given | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Kete Tefid <ketetefid> |
Component: | [OLD] Library | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bass_dr, eugenecormier, filakhtov, herberteuler, javran.c, jens, ketetefid, mlischka, nitro, patrick, plhu, usg990a39, zh |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Patch to fix alloc_netdev issue with 3.17 kernel
virtualbox-modules-4.2.24-alloc_netdev.patch virtualbox-modules-4.2.26-alloc_netdev.patch |
Description
Kete Tefid
2014-10-24 15:16:18 UTC
Created attachment 389762 [details, diff]
Patch to fix alloc_netdev issue with 3.17 kernel
Adding this patch allows the module to be build correctly and loaded.
There is a similar issue with running virtualbox on the 3.17 kernel that will also require a patch. I will submit that as a separate bug against the virtualbox ebuild.
*** Bug 532998 has been marked as a duplicate of this bug. *** It should also be noted that when the module build failed, the emerge process continues regardless, hence this only being discovered when the installation fails. Not sure if it is feasible to fix or warrants a new bug report, but worth noting. gentoo-sources-3.17.7 now stabilized so this is break stable branch I have the same issue after update to 3.17.7 kernel @cono, use attached patch. It fixes the issue. I've just checked and confirm fixing by patch. Looks like proper patch exists: /usr/portage/app-emulation/virtualbox-modules/files/virtualbox-modules-3.17.patch Just need to tweak ebuild. @Igor Filakhtov, thanks. Don't see that epatch_user called from the ebuild. How did you apply it without epatch_user? @cono #Look for src_prepare and add last "if" condition src_prepare() { if kernel_is -ge 2 6 33 ; then # evil patch for new kernels - header moved grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:' fi if use pax_kernel && kernel_is -ge 3 0 0 ; then epatch "${FILESDIR}"/${PN}-4.1.4-pax-const.patch fi # You should add something like this: # I hope this will be synced into portage tree soon... if kernel_is -ge 3 17 0 ; then epatch "${FILESDIR}"/${PN}-3.17.patch fi } Created attachment 392130 [details, diff]
virtualbox-modules-4.2.24-alloc_netdev.patch
Created attachment 392132 [details, diff]
virtualbox-modules-4.2.26-alloc_netdev.patch
My patches differ so I'll include for completeness. Works for latest testing version 4.3.20 without any manual patch. Is this still an issue with =app-emulation/virtualbox-modules-4.3.18? @Lars Wendler, nope 4.3.18 works well without any additional patches/modifications. Thank you for the feedback. |