Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 647198 - 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’
Summary: net-vpn/libreswan-3.23 - In file included from .../work/libreswan-3.23/progra...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Hans de Graaff
URL: https://github.com/libreswan/libreswa...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-10 04:34 UTC by George L. Emigh
Modified: 2018-02-16 08:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,704.02 KB, text/plain)
2018-02-10 04:34 UTC, George L. Emigh
Details
patch found in previous comment url works (ip6.patch,525 bytes, patch)
2018-02-12 00:37 UTC, George L. Emigh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description George L. Emigh 2018-02-10 04:34:17 UTC
Created attachment 518884 [details]
build.log

Same thing happens to net-vpn/libreswan-3.22.

The basics of it:

        -c /var/tmp/portage/net-vpn/libreswan-3.23/work/libreswan-3.23/programs/pluto/ikev1_xauth.c
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
        ^~~~~~~~~


#  emerge --info                                                                                                             
Portage 2.3.19 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.3.0, glibc-2.25-r10, 4.15.2-gentoo x86_64)           
=================================================================                                                                         
System uname: Linux-4.15.2-gentoo-x86_64-AMD_Ryzen_7_1800X_Eight-Core_Processor-with-gentoo-2.4.1                                         
KiB Mem:    32891120 total,   5299692 free                                                                                                
KiB Swap:          0 total,         0 free                                                                                                
Timestamp of repository gentoo: Fri, 09 Feb 2018 20:45:01 +0000                                                                           
Head commit of repository gentoo: 6faad91eaf41517ac80d0b00247c8e3e64e4901b                                                                
sh bash 4.4_p12-r1                                                                                                                        
ld GNU ld (Gentoo 2.30 p1) 2.30.0                                                                                                         
app-shells/bash:          4.4_p12-r1::gentoo                                                                                              
dev-java/java-config:     2.2.0-r3::gentoo                                                                                                
dev-lang/perl:            5.24.3::gentoo                                                                                                  
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo                                                           
dev-util/cmake:           3.9.6::gentoo                                                                                                   
dev-util/pkgconfig:       0.29.2::gentoo                                                                                                  
sys-apps/baselayout:      2.4.1-r2::gentoo                                                                                                
sys-apps/openrc:          0.34.11::gentoo                                                                                                 
sys-apps/sandbox:         2.12::gentoo                                                                                                    
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo                                                                                   
sys-devel/automake:       1.9.6-r4::gentoo, 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15.1-r1::gentoo                                       
sys-devel/binutils:       2.30::gentoo                                                                                                    
sys-devel/gcc:            7.2.0-r1::gentoo, 7.3.0::gentoo                                                                                 
sys-devel/gcc-config:     1.9.1::gentoo                                                                                                   
sys-devel/libtool:        2.4.6-r3::gentoo                                                                                                
sys-devel/make:           4.2.1::gentoo                                                                                                   
sys-kernel/linux-headers: 4.15::gentoo (virtual/os-headers)                                                                               
sys-libs/glibc:           2.25-r10::gentoo                                                                                                
Repositories:                                                                                                                             

gentoo                                                                                                                                    
    location: /usr/portage                                                                                                                
    sync-type: rsync                                                                                                                      
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage/                                                                                 
    priority: -1000                                                                                                                       
    sync-rsync-extra-opts:                                                                                                                

local_overlay                                                                                                                             
    location: /usr/local/portage                                                                                                          
    masters: gentoo                                                                                                                       
    priority: 0                                                                                                                           

kde                                                                                                                                       
    location: /var/lib/layman/kde                                                                                                         
    masters: gentoo                                                                                                                       
    priority: 50                                                                                                                          

Installed sets: @kdevelop-george                                                                                                          
ACCEPT_KEYWORDS="amd64"                                                                                                                   
ACCEPT_LICENSE="*"                                                                                                                        
CBUILD="x86_64-pc-linux-gnu"                                                                                                              
CFLAGS="-march=native -O2 -pipe"                                                                                                          
CHOST="x86_64-pc-linux-gnu"                                                                                                               
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/bind"                                                                                                                      
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                                                            
CXXFLAGS="-march=native -O2 -pipe "                                                                                                       
DISTDIR="/usr/portage/distfiles"                                                                                                          
EMERGE_DEFAULT_OPTS="--autounmask=y --quiet-build --jobs=4 --load-average=14.4 --with-bdeps=y  --keep-going "                             
FCFLAGS="-O2 -pipe"                                                                                                                       
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"                                                                                                       
FFLAGS="-O2 -pipe"                                                                                                                        
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ http://mirrors.rit.edu/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/"   
LANG="en_US.UTF-8"                                                                                                                        
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                         
LINGUAS="en en_US"                                                                                                                        
MAKEOPTS="-j14 -l14.4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="7zip X a52 aac accessibility acl acpi activities aes alsa amd64 amr amrnb amrwb ao apng avahi avi avx avx2 bash-completion berkdb bluray branding bzip2 cairo caps cdda cdio cdr cli clucene consolekit crypt cups cxx dbus declarative dga djvu dri drm dts dv dvd dvdr egl eglfs emboss enca encode esd espeak evdev exif f16c faac fam festival ffmpeg flac fma3 fontconfig fortran g3dvl gallium gdbm ggi gif git glamor gnutls gpg gpm gstreamer gtk hamlib handbook hddtemp highlight iconv icu imagemagick inotify iproute2 ipv6 java java6 jemalloc jpeg jpeg2k kde kipi kvm kwallet lame lcms libevent libnotify live llvm lm_sensors lz4 lzma lzo mad mbrola md5sum mjpeg mmx mmxext mng modules mp2 mp3 mp4 mp4live mpeg mplayer multilib musepack mysql ncurses nemesi network networkmanager nfs nls nptl nsplugin ogg openal openexr opengl openmp opus pam pango pclmul pcre pdf perl plasma png pnm policykit popcnt ppds private-headers pulseaudio pvr python qalculate qemu qml qt3support qt5 quicktime rar rdp readline real reports samba sdl seccomp semantic-desktop slp spell sqlite srt sse sse2 sse3 sse4_1 sse4_2 sse4a ssl ssse3 startup-notification subversion svg syslog system-sqlite taglib tcpd theora threads thumbnail tiff tk truetype udev udisks unicode upower urandom usb utils v4l vcd vde vdpau vlc vnc vorbis vpx webkit widgets wmf wxwidgets x264 xanim xattr xbase xcb xcomposite xft xinetd xml xpm xulrunner xv xvfb xvid xvmc zeroconf zip zlib" ABI_X86="64" ALSA_CARDS="cmipci hda-intel" APACHE2_MODULES="access_compat actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir env expires ext_filter file_cache filter headers http2 ident imagemap include info log_config logio mime mime_magic negotiation proxy proxy_ajp proxy_connect proxy_http rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias asis authn_alias authz_dbd cache_disk cache_socache cern_meta cgi cgid charset_lite dumpio lbmethod_bybusyness lbmethod_byrequests lbmethod_bytraffic lbmethod_heartbeat log_forensic macro proxy_balancer proxy_fcgi proxy_ftp proxy_html proxy_scgi proxy_wstunnel ratelimit remoteip reqtimeout slotmem_shm substitute version xml2enc" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en_US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport groovy gsf harness ide j2ee java javafx nb php visualweb websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20 ruby21" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-02-10 12:14:23 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
        ^~~~~~~~~
Comment 2 George L. Emigh 2018-02-12 00:35:07 UTC
https://github.com/libreswan/libreswan/issues/165

That explains more.
Comment 3 George L. Emigh 2018-02-12 00:37:52 UTC
Created attachment 519148 [details, diff]
patch found in previous comment url works

This patch worked for me.
Comment 4 Larry the Git Cow gentoo-dev 2018-02-16 08:59:44 UTC
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(+)