| Summary: | net-vpn/libreswan-3.23 - In file included from .../work/libreswan-3.23/programs/pluto/kernel_netlink.c:55: /usr/include/linux/in6.h:33:8: error: redefinition of ‘struct in6_addr’ | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | George L. Emigh <ab4bd> |
| Component: | Current packages | Assignee: | Hans de Graaff <graaff> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | fcoiffie |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| URL: | https://github.com/libreswan/libreswan/issues/165 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
build.log
patch found in previous comment url works |
||
|
Description
George L. Emigh
2018-02-10 04:34:17 UTC
In file included from /var/tmp/portage/net-vpn/libreswan-3.23/work/libreswan-3.23/programs/pluto/linux-copy/linux/xfrm.h:4:0,
from /var/tmp/portage/net-vpn/libreswan-3.23/work/libreswan-3.23/programs/pluto/kernel_netlink.c:55:
/usr/include/linux/in6.h:33:8: error: redefinition of ‘struct in6_addr’
struct in6_addr {
^~~~~~~~
In file included from /var/tmp/portage/net-vpn/libreswan-3.23/work/libreswan-3.23/linux/include/libreswan.h:76:0,
from /var/tmp/portage/net-vpn/libreswan-3.23/work/libreswan-3.23/programs/pluto/kernel_netlink.c:54:
/usr/include/netinet/in.h:211:8: note: originally defined here
struct in6_addr
^~~~~~~~
In file included from /var/tmp/portage/net-vpn/libreswan-3.23/work/libreswan-3.23/programs/pluto/linux-copy/linux/xfrm.h:4:0,
from /var/tmp/portage/net-vpn/libreswan-3.23/work/libreswan-3.23/programs/pluto/kernel_netlink.c:55:
/usr/include/linux/in6.h:50:8: error: redefinition of ‘struct sockaddr_in6’
struct sockaddr_in6 {
^~~~~~~~~~~~
In file included from /var/tmp/portage/net-vpn/libreswan-3.23/work/libreswan-3.23/linux/include/libreswan.h:76:0,
from /var/tmp/portage/net-vpn/libreswan-3.23/work/libreswan-3.23/programs/pluto/kernel_netlink.c:54:
/usr/include/netinet/in.h:252:8: note: originally defined here
struct sockaddr_in6
^~~~~~~~~~~~
In file included from /var/tmp/portage/net-vpn/libreswan-3.23/work/libreswan-3.23/programs/pluto/linux-copy/linux/xfrm.h:4:0,
from /var/tmp/portage/net-vpn/libreswan-3.23/work/libreswan-3.23/programs/pluto/kernel_netlink.c:55:
/usr/include/linux/in6.h:60:8: error: redefinition of ‘struct ipv6_mreq’
struct ipv6_mreq {
^~~~~~~~~
In file included from /var/tmp/portage/net-vpn/libreswan-3.23/work/libreswan-3.23/linux/include/libreswan.h:76:0,
from /var/tmp/portage/net-vpn/libreswan-3.23/work/libreswan-3.23/programs/pluto/kernel_netlink.c:54:
/usr/include/netinet/in.h:288:8: note: originally defined here
struct ipv6_mreq
^~~~~~~~~
https://github.com/libreswan/libreswan/issues/165 That explains more. Created attachment 519148 [details, diff]
patch found in previous comment url works
This patch worked for me.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dd4310aac4f0a15fa98a4bdbb379d7d4882ce97 commit 7dd4310aac4f0a15fa98a4bdbb379d7d4882ce97 Author: Hans de Graaff <graaff@gentoo.org> AuthorDate: 2018-02-16 08:59:16 +0000 Commit: Hans de Graaff <graaff@gentoo.org> CommitDate: 2018-02-16 08:59:35 +0000 net-vpn/libreswan: fix glibc/kernel incompatibility, bug 647198 Apply upstream patch to support newer glibc and kernel combinations. Not applied upstream yet because they also need to support old distributions. This patch works with current stable glibc 2.25. Closes: https://bugs.gentoo.org/647198 Package-Manager: Portage-2.3.19, Repoman-2.3.6 .../files/libreswan-3.23-modern-kernels.patch | 15 +++ net-vpn/libreswan/libreswan-3.23-r1.ebuild | 114 +++++++++++++++++++++ 2 files changed, 129 insertions(+) |