Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82874 - net-tools-1.60-r11 compile fails with glibc-2.2.5 or uclibc
Summary: net-tools-1.60-r11 compile fails with glibc-2.2.5 or uclibc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-21 13:59 UTC by Matt Taylor
Modified: 2005-03-16 15:53 UTC (History)
1 user (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 Matt Taylor 2005-02-21 13:59:51 UTC
compile dies with:

i686-pc-linux-gnu-gcc -march=i686 -O3 -pipe  -I. -idirafter ./include/ -Ilib -D_GNU_SOURCE -Wall -I/mnt/portage/tmp/portage/net-tools-1.60-r11/work/net-tools-1.60 -idirafter /mnt/portage/tmp/portage/net-tools-1.60-r11/work/net-tools-1.60/include    -c -o ib.o ib.c
ib.c:142: `ARPHRD_INFINIBAND' undeclared here (not in a function)
ib.c:142: initializer element is not constant
ib.c:142: (near initialization for `ib_hwtype.type')
make[1]: *** [ib.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/mnt/portage/tmp/portage/net-tools-1.60-r11/work/net-tools-1.60/lib'
make: *** [libdir] Error 2

!!! ERROR: sys-apps/net-tools-1.60-r11 failed.
!!! Function src_compile, Line 53, Exitcode 2
!!! emake libdir failed
!!! If you need support, post the topmost build error, NOT this status message.

This is because /usr/include/net/if_arp.h in glibc-2.2 doesnt have ARPHRD_INFINIBAND defined.  A solution is to only patch in infiniband support on glibc-2.3, or to add that define to the bundled if_infiniband.h.  I dont't have infiniband and honestly don't even know what it is, so I don't know if there's anything else in glibc-2.2 that prevents it from working, but at least the package will compile and work for the other interface types.

# emerge info
Portage 2.0.51-r15 (!/usr/portage/profiles/default-linux/x86/gcc2, gcc-2.95.3, glibc-2.2.5-r9, 2.6.7-gentoo-r14 i686)
=================================================================
System uname: 2.6.7-gentoo-r14 i686 AMD Athlon(tm) 
Gentoo Base System version 1.5.3
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 11:52:37)]
dev-lang/python:     2.2.3-r5, 2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.4, 1.4_p6, 1.6.3, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r2
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=i686 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i686 -O3 -pipe"
DISTDIR="/mnt/portage/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache digest distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/ http://ftp-mirror.internap.com/pub/gentoo/ http://gentoo.mirrors.pair.com/ http://mirror.clarkson.edu/pub/distributions/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/portage/tmp"
PORTDIR="/mnt/portage/portage"
PORTDIR_OVERLAY="/mnt/portage/portage-local"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X alsa apm avi bash-completion berkdb bitmap-fonts bonobo canna cdr crypt cups curl directfb dvd emboss encode esd f77 fam flac font-server foomaticdb fortran gdbm ggi gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 jpeg ldap libg++ libwww mad mikmod mmx mmx2 motif mozilla mpeg ncurses oggvorbis opengl oss pam pdflib perl png python readline samba sdl slang snmp spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Thierry Carrez (RETIRED) gentoo-dev 2005-03-16 00:26:16 UTC
It also fails with uclibc, which doesn't define it either.
Comment 2 SpanKY gentoo-dev 2005-03-16 15:53:24 UTC
fixed in cvs