Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28241 - Cannot build iproute
Summary: Cannot build iproute
Status: RESOLVED DUPLICATE of bug 25691
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Lowest blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-09 00:40 UTC by Miroslav Šulc
Modified: 2005-07-17 13:06 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 Miroslav Šulc gentoo-dev 2003-09-09 00:40:24 UTC
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.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2003-09-09 01:00:14 UTC
Please attach the output of "emerge --info" as requested on the bug submission
page.  Thanks.
Comment 2 Miroslav Šulc gentoo-dev 2003-09-09 02:51:41 UTC
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"
Comment 3 Brandy Westcott (RETIRED) gentoo-dev 2003-09-09 07:36:48 UTC
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 
	} 
 
	 
Comment 4 Georgi Georgiev 2003-09-09 12:22:22 UTC
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.
Comment 5 Miroslav Šulc gentoo-dev 2003-09-10 00:26:52 UTC
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?
Comment 6 Georgi Georgiev 2003-09-10 00:36:31 UTC
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.
Comment 7 Miroslav Šulc gentoo-dev 2003-09-10 01:17:58 UTC
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?
Comment 8 SpanKY gentoo-dev 2003-09-15 11:39:46 UTC

*** This bug has been marked as a duplicate of 25691 ***