Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 229351 - sys-apps/iproute2-2.6.25.20080417 fails with older linux-headers
Summary: sys-apps/iproute2-2.6.25.20080417 fails with older linux-headers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-25 09:12 UTC by cilly
Modified: 2008-06-29 08:06 UTC (History)
0 users

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 cilly 2008-06-25 09:12:39 UTC
>>> Unpacking source...
>>> Unpacking iproute2-2.6.25.tar.bz2 to /var/tmp/portage/sys-apps/iproute2-2.6.25.20080417/work
 [32;01m*[0m Applying iproute2-2.6.25.20080417-build.patch ...
[A[82C  [34;01m[ [32;01mok[34;01m ][0m
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-apps/iproute2-2.6.25.20080417/work/iproute2-2.6.25 ...
make[1]: Entering directory `/var/tmp/portage/sys-apps/iproute2-2.6.25.20080417/work/iproute2-2.6.25/lib'
i686-pc-linux-gnu-gcc -D_GNU_SOURCE -march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fpic -fomit-frame-pointer -fforce-addr  -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES   -c -o ll_map.o ll_map.c
i686-pc-linux-gnu-gcc -D_GNU_SOURCE -march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fpic -fomit-frame-pointer -fforce-addr  -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES   -c -o libnetlink.o libnetlink.c
i686-pc-linux-gnu-gcc -D_GNU_SOURCE -march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fpic -fomit-frame-pointer -fforce-addr  -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES   -c -o utils.o utils.c
i686-pc-linux-gnu-gcc -D_GNU_SOURCE -march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fpic -fomit-frame-pointer -fforce-addr  -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES   -c -o rt_names.o rt_names.c
i686-pc-linux-gnu-gcc -D_GNU_SOURCE -march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fpic -fomit-frame-pointer -fforce-addr  -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES   -c -o ll_types.o ll_types.c
i686-pc-linux-gnu-gcc -D_GNU_SOURCE -march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fpic -fomit-frame-pointer -fforce-addr  -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES   -c -o ll_proto.o ll_proto.c
i686-pc-linux-gnu-gcc -D_GNU_SOURCE -march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fpic -fomit-frame-pointer -fforce-addr  -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES   -c -o ll_addr.o ll_addr.c
i686-pc-linux-gnu-gcc -D_GNU_SOURCE -march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fpic -fomit-frame-pointer -fforce-addr  -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES   -c -o inet_proto.o inet_proto.c
ll_proto.c:97: error: `ETH_P_CAN' undeclared here (not in a function)
ll_proto.c:97: error: initializer element is not constant
ll_proto.c:97: error: (near initialization for `llproto_names[43].id')
ll_proto.c:97: error: initializer element is not constant
ll_proto.c:97: error: (near initialization for `llproto_names[43]')
ll_proto.c:99: error: initializer element is not constant
ll_proto.c:99: error: (near initialization for `llproto_names[44]')
ll_proto.c:100: error: initializer element is not constant
ll_proto.c:100: error: (near initialization for `llproto_names[45]')
make[1]: *** [ll_proto.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/sys-apps/iproute2-2.6.25.20080417/work/iproute2-2.6.25/lib'
make: *** [all] Error 2
  
  ERROR: sys-apps/iproute2-2.6.25.20080417 failed.
  Call stack:
                ebuild.sh, line   49:  Called src_compile
                environment, line 2043:  Called die
  The specific snippet of code:
                emake CC="$(tc-getCC)" AR="$(tc-getAR)" || die "make"
  The die message:
                make
  
  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/sys-apps/iproute2-2.6.25.20080417/temp/build.log'.
  The ebuild environment file is located at '/var/tmp/portage/sys-apps/iproute2-2.6.25.20080417/temp/environment'.
 
*****
Portage 2.1.4.4 (hardened/x86/2.6, gcc-4.1.2-dwokfur, glibc-2.6.1-r0, 2.6.23-r13 i686)
=================================================================
System uname: 2.6.23-r13 i686 VIA Nehemiah
Timestamp of tree: Tue, 24 Jun 2008 23:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fpic -fomit-frame-pointer -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fpic -fomit-frame-pointer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict suidctl unmerge-orphans"
GENTOO_MIRRORS="rsync://ftp.join.uni-muenster.de/gentoo                 rsync://ftp-stud.fht-esslingen.de/gentoo                 rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo                 ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo                 ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror                 ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo                 ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo                 ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo                 ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo                 ftp://ftp.tu-clausthal.de/pub/linux/gentoo                 ftp://ftp.mneisen.org/gentoo                 ftp://pandemonium.tiscali.de/pub/gentoo                 http://pandemonium.tiscali.de/pub/gentoo                 http://distfiles.gentoo.org                 http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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.europe.gentoo.org/gentoo-portage"
USE="acl apache2 bash-completion berkdb bzip2 caps cracklib crypt ctype curl fam gd gmp hardened idn imap innodb ipv6 jbig jpeg jpeg2k libwww lm_sensors maildir mhash midi mmx mysql ncurses nls nptl nptlonly pam pcre perl pic png posix python random readline sasl session snmp sockets ssl tcpd threads tiff unicode usb vhosts x86 xattr xml zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 J 2008-06-27 07:19:09 UTC
Your error is caused by a too-old linux-headers (you need ~x86).

Once you fix that, you'll probably get another error, quoted below.

The ebuild should work fine if include/netinet/ is not removed from the iproute2 source tree.  Fix the ebuild (line 34) not to do that and it should compile.

make[1]: Entering directory `/var/tmp/portage/sys-apps/iproute2-2.6.25.20080417/work/iproute2-2.6.25/misc'
gcc -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -I../include -DRESOLVE_HOSTNAMES   -c -o ss.o ss.c
ss.c: In function 'tcp_show_info':
ss.c:1338: error: 'struct tcp_info' has no member named 'tcpi_rcv_rtt'
ss.c:1339: error: 'struct tcp_info' has no member named 'tcpi_rcv_rtt'
ss.c:1340: error: 'struct tcp_info' has no member named 'tcpi_rcv_space'
ss.c:1341: error: 'struct tcp_info' has no member named 'tcpi_rcv_space'
make[1]: *** [ss.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/iproute2-2.6.25.20080417/work/iproute2-2.6.25/misc'

Since two of my machines where the package built without incident are both using full ~x86 or ~x86_64, I suspect iproute2-2.6.25 might require the include/netinet/ headers from glibc 2.8 snapshots, rather than 2.6.1.
Comment 2 cilly 2008-06-27 07:54:39 UTC
I am using the latest stable linux-headers:

eix linux-headers
[I] sys-kernel/linux-headers
     Available versions:  [M]*2.0.40-r1 [M]*2.2.26-r1 [M]2.4.26-r1 [M]2.4.33.3 [M]~2.4.36 2.6.17-r2 2.6.23-r3 ~2.6.24 ~2.6.25-r1 ~2.6.25-r3 ~2.6.25-r4
     Installed versions:  2.6.23-r3(09:29:05 AM 02/20/2008)
     Homepage:            http://www.kernel.org/ http://www.gentoo.org/
     Description:         Linux system headers