Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 233326 - net-misc/dhcpv6 + linux-headers-2.6.25-r4 - /usr/include/linux/ipv6.h:18: error: redefinition of 'struct in6_pktinfo'
Summary: net-misc/dhcpv6 + linux-headers-2.6.25-r4 - /usr/include/linux/ipv6.h:18: err...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
: 248083 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-29 21:46 UTC by Dan Reidy
Modified: 2009-09-15 19:42 UTC (History)
7 users (show)

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


Attachments
paludis --info of x86 hardened machine (paludis-x86.txt,6.01 KB, text/plain)
2008-07-29 21:47 UTC, Dan Reidy
Details
paludis --info of x64 multilib desktop machine (paludis-x64.txt,15.19 KB, text/plain)
2008-07-29 21:48 UTC, Dan Reidy
Details
Remove -D_GNU_SOURCES and add includes for <linux/ipv6.h> (fix-gnusource-collisions.patch,2.09 KB, patch)
2008-08-02 18:02 UTC, Travis Snoozy
Details | Diff
Update the ebuild to apply the patch (dhcpv6-1.0.20-r1.ebuild,1023 bytes, text/plain)
2008-08-02 18:03 UTC, Travis Snoozy
Details
net-misc/dhcpv6-1.0.22 config.log [hppa] (config.log,123.98 KB, text/plain)
2008-12-02 00:52 UTC, Jeroen Roovers (RETIRED)
Details
fix-gnusource-collisions.patch (fix-gnusource-collisions.patch,3.37 KB, patch)
2008-12-02 07:58 UTC, Conrad Kostecki
Details | Diff
dhcpv6-1.0.22.ebuild (dhcpv6-1.0.22.ebuild,923 bytes, text/plain)
2008-12-02 08:00 UTC, Conrad Kostecki
Details
dhcpv6-1.0.22.ebuild.patch (dhcpv6-1.0.22.ebuild.patch,623 bytes, patch)
2008-12-02 08:00 UTC, Conrad Kostecki
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Reidy 2008-07-29 21:46:08 UTC
net-misc/dhcpv6-1.0.14 AND net-misc/dhcpv6-1.0.19 fail to compile on both and AMD64 multilib desktop setup, and an x86 hardened setup.

--- x86 fails to compile with the following error ---
/bin/sh ../libtool --tag=CC   --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include   -DLIBDHCP -D_GNU_SOURCE -fPIC  -march=pentium3 -mtune=pentium3 -O3 -fomit-frame-pointer -pipe -MT libdhcp6client_la-client6_parse.lo -MD -MP -MF .deps/libdhcp6client_la-client6_parse.Tpo -c -o libdhcp6client_la-client6_parse.lo `test -f 'client6_parse.c' || echo './'`client6_parse.c
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DLIBDHCP -D_GNU_SOURCE -fPIC -march=pentium3 -mtune=pentium3 -O3 -fomit-frame-pointer -pipe -MT libdhcp6client_la-client6_addr.lo -MD -MP -MF .deps/libdhcp6client_la-client6_addr.Tpo -c client6_addr.c  -fPIC -DPIC -o .libs/libdhcp6client_la-client6_addr.o
In file included from client6_addr.c:58:
/usr/include/linux/ipv6.h:18: error: redefinition of `struct in6_pktinfo'
make[3]: *** [libdhcp6client_la-client6_addr.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DLIBDHCP -D_GNU_SOURCE -fPIC -march=pentium3 -mtune=pentium3 -O3 -fomit-frame-pointer -pipe -MT libdhcp6client_la-client6_parse.lo -MD -MP -MF .deps/libdhcp6client_la-client6_parse.Tpo -c client6_parse.c  -fPIC -DPIC -o .libs/libdhcp6client_la-client6_parse.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DLIBDHCP -D_GNU_SOURCE -fPIC -march=pentium3 -mtune=pentium3 -O3 -fomit-frame-pointer -pipe -MT libdhcp6client_la-client6_parse.lo -MD -MP -MF .deps/libdhcp6client_la-client6_parse.Tpo -c client6_parse.c -o libdhcp6client_la-client6_parse.o >/dev/null 2>&1
mv -f .deps/libdhcp6client_la-client6_parse.Tpo .deps/libdhcp6client_la-client6_parse.Plo
make[3]: Leaving directory `/var/tmp/paludis/net-misc-dhcpv6-1.0.19/work/dhcpv6-1.0.19/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/paludis/net-misc-dhcpv6-1.0.19/work/dhcpv6-1.0.19/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/paludis/net-misc-dhcpv6-1.0.19/work/dhcpv6-1.0.19'
make: *** [all] Error 2

!!! ERROR in net-misc/dhcpv6-1.0.19:
!!! In src_compile at line 3600
!!! (no message provided)

!!! Call stack:
!!!    * src_compile (/var/tmp/paludis/net-misc-dhcpv6-1.0.19/temp/loadsaveenv:3600)
!!!    * ebuild_f_compile (/usr/libexec/paludis/0/src_compile.bash:49)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:460)
!!!    * main (/usr/libexec/paludis/ebuild.bash:479)


--- AMD64 fails to compile with the following error ---

In file included from client6_addr.c:59:
/usr/include/linux/ipv6.h:18: error: redefinition of 'struct in6_pktinfo'
make[3]: *** [libdhcp6client_la-client6_addr.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DLIBDHCP -D_GNU_SOURCE -fPIC -march=native -mtune=native -O3 -fomit-frame-pointer -fstack-protector -pipe -MT libdhcp6client_la-cfg.lo -MD -MP -MF .deps/libdhcp6client_la-cfg.Tpo -c cfg.c -o libdhcp6client_la-cfg.o >/dev/null 2>&1
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DLIBDHCP -D_GNU_SOURCE -fPIC -march=native -mtune=native -O3 -fomit-frame-pointer -fstack-protector -pipe -MT libdhcp6client_la-dhcp6c.lo -MD -MP -MF .deps/libdhcp6client_la-dhcp6c.Tpo -c dhcp6c.c  -fPIC -DPIC -o .libs/libdhcp6client_la-dhcp6c.o
mv -f .deps/libdhcp6client_la-cfg.Tpo .deps/libdhcp6client_la-cfg.Plo
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DLIBDHCP -D_GNU_SOURCE -fPIC -march=native -mtune=native -O3 -fomit-frame-pointer -fstack-protector -pipe -MT libdhcp6client_la-dhcp6c.lo -MD -MP -MF .deps/libdhcp6client_la-dhcp6c.Tpo -c dhcp6c.c -o libdhcp6client_la-dhcp6c.o >/dev/null 2>&1
mv -f .deps/libdhcp6client_la-dhcp6c.Tpo .deps/libdhcp6client_la-dhcp6c.Plo
make[3]: Leaving directory `/var/tmp/paludis/net-misc-dhcpv6-1.0.19/work/dhcpv6-1.0.19/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/paludis/net-misc-dhcpv6-1.0.19/work/dhcpv6-1.0.19/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/paludis/net-misc-dhcpv6-1.0.19/work/dhcpv6-1.0.19'
make: *** [all] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2

!!! ERROR in net-misc/dhcpv6-1.0.19:
!!! In src_compile at line 3700
!!! (no message provided)

!!! Call stack:
!!!    * src_compile (/var/tmp/paludis/net-misc-dhcpv6-1.0.19/temp/loadsaveenv:3700)
!!!    * ebuild_f_compile (/usr/libexec/paludis/0/src_compile.bash:49)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:463)
!!!    * main (/usr/libexec/paludis/ebuild.bash:478)



Reproducible: Always

Steps to Reproduce:
1. paludis --sync
2. paludis -i dhcpv6


Actual Results:  
see description.

Expected Results:  
pie, strippers, and a working dhpcv6.

because i tested this on 2 seperate and very different systems, i will attach paludis --info below.
Comment 1 Dan Reidy 2008-07-29 21:47:45 UTC
Created attachment 161670 [details]
paludis --info of x86 hardened machine
Comment 2 Dan Reidy 2008-07-29 21:48:47 UTC
Created attachment 161672 [details]
paludis --info of x64 multilib desktop machine
Comment 3 Dan Reidy 2008-07-29 21:51:12 UTC
i also have another file server (x86/hardened) and a laptop, builds also fail to compile on them as well.
Comment 4 Moonfire 2008-08-02 16:27:24 UTC
Same problem with /net-misc/dhcpv6-1.0.20.

mv -f .deps/libdhcp6client_la-cfg.Tpo .deps/libdhcp6client_la-cfg.Plo
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DLIBDHCP -D_GNU_SOURCE -fPIC -march=athlon64 -O2 -pipe -msse3 -MT libdhcp6client_la-client6_parse.lo -MD -MP -MF .deps/libdhcp6client_la-client6_parse.Tpo -c client6_parse.c -o libdhcp6client_la-client6_parse.o >/dev/null 2>&1
mv -f .deps/libdhcp6client_la-client6_parse.Tpo .deps/libdhcp6client_la-client6_parse.Plo
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DLIBDHCP -D_GNU_SOURCE -fPIC -march=athlon64 -O2 -pipe -msse3 -MT libdhcp6client_la-dhcp6c.lo -MD -MP -MF .deps/libdhcp6client_la-dhcp6c.Tpo -c dhcp6c.c -o libdhcp6client_la-dhcp6c.o >/dev/null 2>&1
mv -f .deps/libdhcp6client_la-dhcp6c.Tpo .deps/libdhcp6client_la-dhcp6c.Plo
make[3]: Leaving directory `/var/tmp/portage/net-misc/dhcpv6-1.0.20/work/dhcpv6-1.0.20/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/net-misc/dhcpv6-1.0.20/work/dhcpv6-1.0.20/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-misc/dhcpv6-1.0.20/work/dhcpv6-1.0.20'
make: *** [all] Error 2
 * ERROR: net-misc/dhcpv6-1.0.20 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2428:  Called die
 * The specific snippet of code:
 *       emake || die
 *  The die message:
 *   (no error message)
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/net-misc/dhcpv6-1.0.20/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-misc/dhcpv6-1.0.20/temp/environment'.
Comment 5 Travis Snoozy 2008-08-02 17:27:30 UTC
The issue is that this project uses -D_GNU_SOURCES in its compiler flags to get netinet/in.h to define a bunch of IPv6 stuff. However, linux/ipv6.h defines everything that the code in this project requires (and in.h causes double-defines to happen). I have it building locally, and should be able to generate a patch.
Comment 6 Travis Snoozy 2008-08-02 18:02:56 UTC
Created attachment 162009 [details, diff]
Remove -D_GNU_SOURCES and add includes for <linux/ipv6.h>
Comment 7 Travis Snoozy 2008-08-02 18:03:26 UTC
Created attachment 162011 [details]
Update the ebuild to apply the patch
Comment 8 Moonfire 2008-08-02 18:15:57 UTC
Thanks a lot Traviz.
This patch works fine for me. :-)
Comment 9 Joost Ruis 2008-10-22 11:37:20 UTC
still broken.

 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DLIBDHCP -D_GNU_SOURCE -fPIC -Os -march=i686 -pipe -MT libdhcp6client_la-cfg.lo -MD -MP -MF .deps/libdhcp6client_la-cfg.Tpo -c cfg.c  -fPIC -DPIC -o .libs/libdhcp6client_la-cfg.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DLIBDHCP -D_GNU_SOURCE -fPIC -Os -march=i686 -pipe -MT libdhcp6client_la-dhcp6c.lo -MD -MP -MF .deps/libdhcp6client_la-dhcp6c.Tpo -c dhcp6c.c  -fPIC -DPIC -o .libs/libdhcp6client_la-dhcp6c.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DLIBDHCP -D_GNU_SOURCE -fPIC -Os -march=i686 -pipe -MT libdhcp6client_la-cfg.lo -MD -MP -MF .deps/libdhcp6client_la-cfg.Tpo -c cfg.c -o libdhcp6client_la-cfg.o >/dev/null 2>&1
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DLIBDHCP -D_GNU_SOURCE -fPIC -Os -march=i686 -pipe -MT libdhcp6client_la-client6_addr.lo -MD -MP -MF .deps/libdhcp6client_la-client6_addr.Tpo -c client6_addr.c  -fPIC -DPIC -o .libs/libdhcp6client_la-client6_addr.o
In file included from client6_addr.c:58:
/usr/include/linux/ipv6.h:18: error: redefinition of 'struct in6_pktinfo'
make[3]: *** [libdhcp6client_la-client6_addr.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -DLIBDHCP -D_GNU_SOURCE -fPIC -Os -march=i686 -pipe -MT libdhcp6client_la-dhcp6c.lo -MD -MP -MF .deps/libdhcp6client_la-dhcp6c.Tpo -c dhcp6c.c -o libdhcp6client_la-dhcp6c.o >/dev/null 2>&1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
 *
 * ERROR: net-misc/dhcpv6-1.0.20 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_compile
 * environment, line 2450:  Called die
 * The specific snippet of code:
 * emake || die
 * The die message:
 * (no error message)
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2008-12-02 00:45:03 UTC
*** Bug 248083 has been marked as a duplicate of this bug. ***
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2008-12-02 00:52:18 UTC
Created attachment 174026 [details]
net-misc/dhcpv6-1.0.22 config.log [hppa]
Comment 12 Conrad Kostecki gentoo-dev 2008-12-02 07:58:58 UTC
Created attachment 174048 [details, diff]
fix-gnusource-collisions.patch

fix-gnusource-collisions.patch for net-misc/dhcpv6-1.0.22

This is an updated patch. With this patch, i am able to compile with linux-headers 2.6.27. Works fine for me!

emerge --info
Comment 13 Conrad Kostecki gentoo-dev 2008-12-02 08:00:10 UTC
Created attachment 174050 [details]
dhcpv6-1.0.22.ebuild

dhcpv6-1.0.22.ebuild
Comment 14 Conrad Kostecki gentoo-dev 2008-12-02 08:00:48 UTC
Created attachment 174051 [details, diff]
dhcpv6-1.0.22.ebuild.patch

dhcpv6-1.0.22.ebuild.patch against original dhcpv6-1.0.22.ebuild
Comment 15 Conrad Kostecki gentoo-dev 2008-12-02 08:03:22 UTC
Bl4ckB0x / # emerge --info
Portage 2.1.6_rc2 (default/linux/x86/2008.0/server, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-gentoo-r4 i586)
=================================================================
System uname: Linux-2.6.27-gentoo-r4-i586-Geode-TM-_Integrated_Processor_by_AMD_PCS-with-gentoo-2.0.0
Timestamp of tree: Tue, 02 Dec 2008 06:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.6-r5
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer -mfpmath=387"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=geode -Os -mmmx -m3dnow -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer -mfpmath=387 -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common -Wl,-s -Wl,-z,now"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="gzip"
PORTAGE_COMPRESS_FLAGS="-f9"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow alsa apache2 berkdb bzip2 cgi crypt ctype dedicated ftp gd iconv imap ipv6 javascript jpeg jpeg2k lua mmx mysql mysqli ncurses nls offensive pam pcre png readline samba sasl session simplexml slang spl ssl svg symlink tcpd threads tiff tokenizer truetype unicode vhosts x86 xml zlib" ALSA_CARDS="cs5535audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias auth_basic authn_file authz_host authz_user autoindex cache cgi deflate dir disk_cache filter info log_config logio mime mime_magic mem_cache rewrite status unique_id vhost_alias" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="hd44780" LINGUAS="de" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="amd"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 16 Radoslaw Madej (radegand) 2008-12-22 22:25:16 UTC
The patches worked for me! - gentoo hardened with glibc 2.9 and gcc 4.3 on x86_64 and hardened glibc 2.8 with gcc-4.3 on x86. Could be added to portage and closed?
Comment 17 Petteri Räty (RETIRED) gentoo-dev 2009-01-12 20:11:56 UTC
(In reply to comment #12)
> Created an attachment (id=174048) [edit]
> fix-gnusource-collisions.patch
> 
> fix-gnusource-collisions.patch for net-misc/dhcpv6-1.0.22
> 
> This is an updated patch. With this patch, i am able to compile with
> linux-headers 2.6.27. Works fine for me!
> 
> emerge --info
> 

Please submit this patch usptream via https://fedorahosted.org/dhcpv6/
Comment 18 Conrad Kostecki gentoo-dev 2009-01-14 12:24:22 UTC
(In reply to comment #17)
> (In reply to comment #12)
> > Created an attachment (id=174048) [edit]
> > fix-gnusource-collisions.patch
> > 
> > fix-gnusource-collisions.patch for net-misc/dhcpv6-1.0.22
> > 
> > This is an updated patch. With this patch, i am able to compile with
> > linux-headers 2.6.27. Works fine for me!
> > 
> > emerge --info
> > 
> 
> Please submit this patch usptream via https://fedorahosted.org/dhcpv6/
> 

Ok, opened a ticket ;)
Comment 19 Tobias Müller 2009-03-30 14:58:17 UTC
Please provide an updated ebuild with this patch until it gets included by the authors.
Comment 20 Ioannis Aslanidis (RETIRED) gentoo-dev 2009-04-04 19:11:34 UTC
I take over this package.
Comment 21 Ioannis Aslanidis (RETIRED) gentoo-dev 2009-04-04 19:21:55 UTC
Fixed in CVS.
Comment 22 Mike Williams 2009-09-15 19:42:26 UTC
(In reply to comment #21)
> Fixed in CVS.
> 

Sorry Ioannis, this isn't fixed for me, and I only got this as 1.2.0 has just gone stable.

The patch removes the references in Makefile.in and Makefile.am, but it is applied after econf is run, so Makefile has already been generated from them.
Simply applying the patch before "econf || die" fixes the build.

Mike