Summary: | =sys-apps/iproute2-3.19.0 fails to compile on armv7a-hardened-musl | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michael Jones <gentoo> |
Component: | Current packages | Assignee: | Gentoo musl team <musl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gentoo |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 430702 |
Description
Michael Jones
2015-06-09 22:51:20 UTC
The following should be upstreamed: https://gitweb.gentoo.org/proj/hardened-dev.git/tree/sys-apps/iproute2/files/iproute2-4.0.0-fix-build-with-musl.patch?h=musl Depends on fixing https://bugs.gentoo.org/show_bug.cgi?id=544476 in upstream (very difficult). iputils2 directly copies linux headers and they want to sanitize them. Please retest on 4.14.1, the 4.14 series include a large upstream header cleanup. It still doesn't compile as of version 4.15, but it probably will when the following makes its way into a musl release: http://www.openwall.com/lists/musl/2018/01/09/5 From the build log: (for some reason bugzilla doesn't like me to attach a full build log) ../include/uapi/linux/if.h:82:2: error: expected identifier before numeric constant IFF_UP = 1<<0, /* sysfs */ ^ In file included from ../include/uapi/linux/netdevice.h:29:0, from ../include/uapi/linux/if_arp.h:27, from f_flower.c:17: ../include/uapi/linux/if.h:109:0: warning: "IFF_UP" redefined #define IFF_UP IFF_UP In file included from f_flower.c:16:0: /usr/include/net/if.h:29:0: note: this is the location of the previous definition #define IFF_UP 0x1 ../include/uapi/linux/if.h:192:8: error: redefinition of 'struct ifmap' struct ifmap { ^~~~~ In file included from f_flower.c:16:0: /usr/include/net/if.h:64:8: note: originally defined here struct ifmap { ^~~~~ In file included from ../include/uapi/linux/netdevice.h:29:0, from ../include/uapi/linux/if_arp.h:27, from f_flower.c:17: ../include/uapi/linux/if.h:229:8: error: redefinition of 'struct ifreq' struct ifreq { ^~~~~ In file included from f_flower.c:16:0: /usr/include/net/if.h:76:8: note: originally defined here struct ifreq { ^~~~~ In file included from ../include/uapi/linux/netdevice.h:29:0, from ../include/uapi/linux/if_arp.h:27, from f_flower.c:17: ../include/uapi/linux/if.h:281:8: error: redefinition of 'struct ifconf' struct ifconf { ^~~~~~ In file included from f_flower.c:16:0: /usr/include/net/if.h:116:8: note: originally defined here struct ifconf { ^~~~~~ |