Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648252 - sys-cluster/keepalived fails to build with linux-headers-4.15
Summary: sys-cluster/keepalived fails to build with linux-headers-4.15
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-20 10:46 UTC by Adnae Inviere
Modified: 2018-04-02 17:13 UTC (History)
2 users (show)

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 Adnae Inviere 2018-02-20 10:46:52 UTC
With 4.15+ kernel headers, is it not possible to compile keepalived

In file included from ./../include/vrrp_ipaddress.h:32:0,
                 from ./../include/vrrp_arp.h:31,
                 from vrrp.c:29:
/usr/include/linux/in.h:29:3: error: redeclaration of enumerator ‘IPPROTO_IP’
   IPPROTO_IP = 0,  /* Dummy protocol for TCP  */
   ^
/usr/include/netinet/in.h:42:5: note: previous definition of ‘IPPROTO_IP’ was here
     IPPROTO_IP = 0,    /* Dummy protocol for TCP.  */
     ^~~~~~~~~~
/usr/include/linux/in.h:31:3: error: redeclaration of enumerator ‘IPPROTO_ICMP’
   IPPROTO_ICMP = 1,  /* Internet Control Message Protocol */
   ^
/usr/include/netinet/in.h:44:5: note: previous definition of ‘IPPROTO_ICMP’ was here
     IPPROTO_ICMP = 1,    /* Internet Control Message Protocol.  */
     ^~~~~~~~~~~~
/usr/include/linux/in.h:33:3: error: redeclaration of enumerator ‘IPPROTO_IGMP’
   IPPROTO_IGMP = 2,  /* Internet Group Management Protocol */
   ^
/usr/include/netinet/in.h:46:5: note: previous definition of ‘IPPROTO_IGMP’ was here
     IPPROTO_IGMP = 2,    /* Internet Group Management Protocol. */
     ^~~~~~~~~~~~
/usr/include/linux/in.h:35:3: error: redeclaration of enumerator ‘IPPROTO_IPIP’
   IPPROTO_IPIP = 4,  /* IPIP tunnels (older KA9Q tunnels use 94) */
   ^
/usr/include/netinet/in.h:48:5: note: previous definition of ‘IPPROTO_IPIP’ was here
     IPPROTO_IPIP = 4,    /* IPIP tunnels (older KA9Q tunnels use 94).  */
     ^~~~~~~~~~~~
[...]
In file included from /usr/include/linux/netfilter.h:7:0,
                 from ./../include/ip_vs.h:16,
                 from ./../include/libipvs.h:11,
                 from ./../include/ipvswrapper.h:43,
                 from vrrp.c:34:
/usr/include/linux/in.h:79:3: error: redeclaration of enumerator ‘IPPROTO_MAX’
   IPPROTO_MAX
   ^~~~~~~~~~~
In file included from ./../include/vrrp_ipaddress.h:32:0,
                 from ./../include/vrrp_arp.h:31,
                 from vrrp.c:29:
/usr/include/netinet/in.h:92:5: note: previous definition of ‘IPPROTO_MAX’ was here
     IPPROTO_MAX
     ^~~~~~~~~~~
In file included from /usr/include/linux/netfilter.h:7:0,
                 from ./../include/ip_vs.h:16,
                 from ./../include/libipvs.h:11,
                 from ./../include/ipvswrapper.h:43,
                 from vrrp.c:34:
/usr/include/linux/in.h:85:8: error: redefinition of ‘struct in_addr’
 struct in_addr {
        ^~~~~~~
In file included from ./../include/vrrp_ipaddress.h:32:0,
                 from ./../include/vrrp_arp.h:31,
                 from vrrp.c:29:
/usr/include/netinet/in.h:31:8: note: originally defined here
 struct in_addr
        ^~~~~~~
In file included from /usr/include/linux/netfilter.h:7:0,
                 from ./../include/ip_vs.h:16,
                 from ./../include/libipvs.h:11,
                 from ./../include/ipvswrapper.h:43,
                 from vrrp.c:34:
[...]




Reproducible: Always




The busybox Team has an patch for this issue..

https://git.busybox.net/buildroot/commit/?id=242abb4b212eb98e1c3ec1560d69c4e41f98b898
Comment 2 Tomáš Mózes 2018-02-20 11:33:05 UTC
https://github.com/gentoo/gentoo/pull/7171
Comment 3 Tomáš Mózes 2018-03-05 07:28:04 UTC
*** Bug 649380 has been marked as a duplicate of this bug. ***
Comment 4 Larry the Git Cow gentoo-dev 2018-04-02 17:13:27 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f569763b63e3d0159bfb297d295d970e4a890d3c

commit f569763b63e3d0159bfb297d295d970e4a890d3c
Author:     Tomas Mozes <hydrapolic@gmail.com>
AuthorDate: 2018-02-20 11:31:42 +0000
Commit:     Ultrabug <ultrabug@gentoo.org>
CommitDate: 2018-04-02 17:11:37 +0000

    sys-cluster/keepalived: fix building with linux-headers-4.15
    
    Closes: https://bugs.gentoo.org/648252
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 ...ived-fix-building-with-linux-headers-4.15.patch | 54 ++++++++++++++++++++++
 sys-cluster/keepalived/keepalived-1.4.2.ebuild     |  4 ++
 2 files changed, 58 insertions(+)