I cannot build iproute. Here is the output from building: emerge -bv iproute Calculating dependencies ...done! >>> emerge (1 of 1) sys-apps/iproute-20010824-r3 to / >>> md5 src_uri ;-) iproute2-2.4.7-now-ss010824.tar.gz >>> md5 src_uri ;-) iproute_20010824-9.diff.gz >>> Unpacking source... >>> Unpacking iproute2-2.4.7-now-ss010824.tar.gz to /var/tmp/portage/iproute-20010824-r3/work >>> Unpacking iproute_20010824-9.diff.gz to /var/tmp/portage/iproute-20010824-r3/work * Applying iproute_20010824-9.diff... [ ok ] >>> Source unpacked. make[1]: Entering directory `/var/tmp/portage/iproute-20010824-r3/work/iproute2/lib' gcc -D_GNU_SOURCE -O2 -mcpu=i686 -pipe -Wstrict-prototypes -Wall -g -I../include -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -DRESOLVE_HOSTNAMES -c -o ll_map.o ll_map.c gcc -D_GNU_SOURCE -O2 -mcpu=i686 -pipe -Wstrict-prototypes -Wall -g -I../include -I../include-glibc -include ../include-glibc/glibc-bugs.h -I/usr/src/linux/include -DRESOLVE_HOSTNAMES -c -o libnetlink.o libnetlink.c In file included from ../include-glibc/netinet/in.h:7, from ll_map.c:19: /usr/src/linux/include/linux/in.h:140: field `gr_group' has incomplete type /usr/src/linux/include/linux/in.h:141: confused by earlier errors, bailing out make[1]: *** [ll_map.o] Error 1 make[1]: *** Waiting for unfinished jobs.... In file included from ../include-glibc/netinet/in.h:7, from libnetlink.c:20: /usr/src/linux/include/linux/in.h:140: field `gr_group' has incomplete type /usr/src/linux/include/linux/in.h:141: confused by earlier errors, bailing out make[1]: *** [libnetlink.o] Error 1 make[1]: Leaving directory `/var/tmp/portage/iproute-20010824-r3/work/iproute2/lib' make: *** [all] Error 2 !!! ERROR: sys-apps/iproute-20010824-r3 failed. !!! Function src_compile, Line 58, Exitcode 2 !!! (no error message) My kernel is: uname -a Linux centaur 2.4.22_pre2-gss #1 Thu Aug 21 15:52:56 CEST 2003 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux Please can you help me to solve this problem? Thank you.
Please attach the output of "emerge --info" as requested on the bug submission page. Thanks.
Here is the info output: emerge --info Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22_pre2-gss) ================================================================= System uname: 2.4.22_pre2-gss i686 Pentium III (Coppermine) ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox ccache autoaddcvs" GENTOO_MIRRORS="http://download.nautilus.startnet.cz/gentoo-mirror/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ http://212.219.247.20/sites/www.ibiblio.org/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://212.219.247.10/sites/www.ibiblio.org/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.uninett.no/pub/linux/Gentoo http://212.219.247.21/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xmms xv zlib alsa gdbm berkdb slang readline arts svga java sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis motif opengl mozilla gphoto2 ldap cdr scanner X kde qt gd xml xml2 curl flash freetds imap mysql snmp tiff mcal samba -gnome -gtk"
Based on a post to the LARTC mailing list ( http://mailman.ds9a.nl/pipermail/lartc/2003q3/009651.html ) it looks like iproute does not play nice with 2.4.22_pre2-gss headers. This error is caused by a sockaddr_storage struct being used without first being declared. This is caused by using kernel header files in /usr/src/linux instead of /usr/include/linux. The iproute-20010824-r4 ebuild fixes this problem: src_compile() { emake KERNEL_INCLUDE=/usr/include || die }
I had the same problem, and I am using vanilla-sources-2.4.22. I can confirm that -r4 fixed the problem for me. Seems it is not only the gss sources that have problems after all.
Where can I get the -r4 ebuild? I am new to Gentoo. My portage tree still has only -r3 ebuild though I had run 'emerge sync' few minutes ago. BTW: Is there a way for me to close this bug?
The ebuild is masked. You can try emerge /usr/portage/sys-apps/iproute/iproute-20010824-r4.ebuild or easier: ACCEPT_KEYWORDS="~x86" emerge iproute I am not sure what documentation it would be best to read.
Thank you, Georgi. I have red some documentation but I forgot ACCEPT_KEYWORDS variable. Thank you all for solving my problem. Do I need to close the bug myself or will it do somebody else? If it's up to me, how can I close the bug?
*** This bug has been marked as a duplicate of 25691 ***