Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 154457 - Error while compiling glibc-2.4-r4 (undefined reference to `gethostbyaddr')
Summary: Error while compiling glibc-2.4-r4 (undefined reference to `gethostbyaddr')
Status: VERIFIED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-08 04:27 UTC by Johannes Peeters
Modified: 2006-11-08 15:16 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 Johannes Peeters 2006-11-08 04:27:40 UTC
Hi,

I got this error while trying to upgrade glibc 2.4-r3 to 2.4-r4:
[ebuild     U ] sys-libs/glibc-2.4-r4 [2.4-r3] USE="nls nptl nptlonly -build -glibc-compat20 -glibc-omitfp -hardened (-multilib) -profile (-selinux)" 0 kB


/var/tmp/portage/glibc-2.4-r4/work/build-default-i686-pc-linux-gnu-nptl/nss/getent.o: In function `hosts_keys':
getent.c:(.text+0x72c): undefined reference to `gethostbyaddr'
getent.c:(.text+0x7c2): undefined reference to `gethostbyname2'
getent.c:(.text+0x7e0): undefined reference to `gethostbyname2'
/var/tmp/portage/glibc-2.4-r4/work/build-default-i686-pc-linux-gnu-nptl/nss/getent.o: In function `networks_keys':
getent.c:(.text+0xc03): undefined reference to `getnetbyaddr'
getent.c:(.text+0xc2e): undefined reference to `getnetbyname'
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/glibc-2.4-r4/work/build-default-i686-pc-linux-gnu-nptl/nss/getent] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r4/work/glibc-2.4/nss'
make[1]: *** [nss/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.4-r4/work/glibc-2.4'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.4-r4 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  glibc-2.4-r4.ebuild, line 1174:   Called toolchain-glibc_src_compile
  glibc-2.4-r4.ebuild, line 259:   Called die

!!! make for default failed
!!! If you need support, post the topmost build error, and the call stack if relevant.



emerge --info
Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-3.4.6, glibc-2.4-r3, 2.6.10-rc2 i686)
=================================================================
System uname: 2.6.10-rc2 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.6
Last Sync: Wed, 08 Nov 2006 12:00:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mcpu=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mcpu=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 a52 aac acl apache2 bash-completion berkdb bitmap-fonts bzip2 cli cracklib crypt curl dlloader dri dts elibc_glibc enscript exim expat ffmpeg fortran fpx gd gif gmp graphviz gs iconv idn imagemagick imap innodb input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jbig jpeg jpeg2k kernel_linux lcms ldap libg++ lmtp lua lzo maildir mysql ncurses network nls nptl nptlonly pam passfile pcre perl php png ppds pppd python readline reflection ruby sasl sdl session slang snmp speex spl ssl tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU utf8 vda vhosts video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vorbis wmf xml xorg xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2006-11-08 11:51:20 UTC
post the full build log as an attachment:
emerge glibc >& log
Comment 2 Johannes Peeters 2006-11-08 15:16:27 UTC
Hi,

Glibc compiled fine the third time. Nothing changed on the machine, so I don't know if the error is reproducable. It is working now, though.

Regards