Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125868 - After installation of glibc-2.4: /usr/bin/python: relocation error: /lib/libresolv.so.2: symbol __res_iclose, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
Summary: After installation of glibc-2.4: /usr/bin/python: relocation error: /lib/libr...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-11 13:06 UTC by Alexander Skwar
Modified: 2006-09-16 01:23 UTC (History)
4 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 Alexander Skwar 2006-03-11 13:06:27 UTC
I just installed glibc-2.4 with the following flags:

[ebuild   R   ] sys-libs/glibc-2.4  USE="glibc-omitfp nls nptl nptlonly pic userlocales -build -hardened -profile" 0 kB

At the end of the emerge process, I got the following:

No package files given... Grabbing a set.
>>> Original instance of package unmerged safely.

 * Gentoo's glibc no longer includes mdns.
 * If you want mdns, emerge the sys-auth/nss-mdns package.

>>> Regenerating /etc/ld.so.cache...
>>> sys-libs/glibc-2.4 merged.
/usr/bin/python: relocation error: /lib/libresolv.so.2: symbol __res_iclose, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference


Is there something broken now? I'm still able to execute /usr/bin/python:

alexander@blatt ~ $ python
Python 2.4.2 (#1, Feb  3 2006, 18:19:24)
[GCC 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit
'Use Ctrl-D (i.e. EOF) to exit.'
>>>


I also noticed, that I've now got TWO versions of glibc installed:

alexander@blatt ~ $ ls -lad /var/db/pkg/*/*glibc*
drwxr-xr-x 2 root root 864 19. Feb 19:13 /var/db/pkg/sys-libs/glibc-2.3.6-r3
drwxr-xr-x 2 root root 856 11. M
Comment 1 Alexander Skwar 2006-03-11 13:06:27 UTC
I just installed glibc-2.4 with the following flags:

[ebuild   R   ] sys-libs/glibc-2.4  USE="glibc-omitfp nls nptl nptlonly pic userlocales -build -hardened -profile" 0 kB

At the end of the emerge process, I got the following:

No package files given... Grabbing a set.
>>> Original instance of package unmerged safely.

 * Gentoo's glibc no longer includes mdns.
 * If you want mdns, emerge the sys-auth/nss-mdns package.

>>> Regenerating /etc/ld.so.cache...
>>> sys-libs/glibc-2.4 merged.
/usr/bin/python: relocation error: /lib/libresolv.so.2: symbol __res_iclose, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference


Is there something broken now? I'm still able to execute /usr/bin/python:

alexander@blatt ~ $ python
Python 2.4.2 (#1, Feb  3 2006, 18:19:24)
[GCC 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit
'Use Ctrl-D (i.e. EOF) to exit.'
>>>


I also noticed, that I've now got TWO versions of glibc installed:

alexander@blatt ~ $ ls -lad /var/db/pkg/*/*glibc*
drwxr-xr-x 2 root root 864 19. Feb 19:13 /var/db/pkg/sys-libs/glibc-2.3.6-r3
drwxr-xr-x 2 root root 856 11. Mär 21:49 /var/db/pkg/sys-libs/glibc-2.4


Why's that? Can I unmerge glibc-2.3.6-r3?



alexander@blatt ~ $ emerge --info
Portage 2.1_pre5-r4 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3,glibc-2.4-r0, 2.6.15-suspend2-r8.042.kernel-alsa i686)
=================================================================
System uname: 2.6.15-suspend2-r8.042.kernel-alsa i686 Intel(R) Celeron(R) M processor         1.50GHz
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.4-r1, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/Gentoo/Portage/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect distlocks sandbox sfperms strict"
GENTOO_MIRRORS="        http://server.bei.digitalprojects.com/gentoo/   http://stuff.alexander.skwar.name/gentoo/  http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/   http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/       ftp://ftp.tu-clausthal.de/pub/linux/gentoo/     http://distro.ibiblio.org/pub/linux/distributions/gentoo/  ftp://distro.ibiblio.org/pub/linux/distributions/gentoo         http://distfiles.gentoo.org/ "
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
PKGDIR="/Gentoo/Portage/packages"
PORTAGE_TMPDIR="/Gentoo/Portage/build"
PORTDIR="/Gentoo/Portage/tree"
PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc /Gentoo/Portage/local-tree/overlays/gentoo-de"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 GAPING_SECURITY_HOLE X acpi alsa amd apache2 apm arts artswrappersuid async avi bdf berkdb bitmap-fonts bluetooth bootsplash cairo caps cardbus ccache cdda cddb cdio cdparanoia cdr cdrom cle266 crypt css curlwrappers dbus devmap dillo divx4linux dlloader dri dvd dvdread emoticon esd exif fam fbcon fbdev firefox fping freetype gdbm gif gnokii gnome gstreamer gtk gtk2 hal hpn icc id3 idn imap imlib imlib2 insecure-drivers insecure-savers javascript jikes jpeg kde kdeenablefinal libedit libwww linuxthreads-tls logrotate lynxkeymap mad madwifi maildir matroska mbox mmx mmxext mozilla moznoirc mozsvg mp3 mpeg mpeg2 mpeg4 mplayer multicall ncurses netboot network new-login nfs nis nls no-old-linux no-suexec noantlr nobcel nobeanutils nobsf nobsh nocd nocommonslogging nocommonsnet nodrm nogg nogulm nojsch nojython nolog4j nomac nooro nopri norhino noxalan noxerces nozaptel nptl nsplugin offensive ogg opengl openssh pam_console pam_timestamp passfile password patented pccts pcmcia pcre perl perlsuid pic player png pnp qt quicktime rar readline real recode reiserfs sdl sendfile sensord sftp sms spell spf sse sse2 ssl startup-notification stream subp subtitles suid symlink sysfs syslog tiff transcode truetype truetype-fonts trusted type1-fonts udev underscores unichrome unicode unsafe usb utf8 uudeview vim vim-pager vlm vorbis wifi win32codecs wma123 x11vnc xinetd xml xmms xpm xscreensaver xv xvid xvmc zlib elibc_glibc kernel_linux linguas_de userland_GNU video_cards_via"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, MAKEOPTS
Comment 2 SpanKY gentoo-dev 2006-03-11 22:47:36 UTC
run `ldconfig` and see if it starts workin ...
Comment 3 SpanKY gentoo-dev 2006-03-12 00:45:49 UTC
and what does this show:
readelf -s /lib/libc.so.6 | grep res_iclose
readelf -s /lib/libc-2.4.so | grep res_iclose
Comment 4 Alexander Skwar 2006-03-12 00:57:34 UTC
alexander@blatt ~ $ readelf -s /lib/libc.so.6 | grep res_iclose
  1745: 000e1ed0   218 FUNC    GLOBAL DEFAULT   11 __res_iclose@@GLIBC_PRIVATE
alexander@blatt ~ $ readelf -s /lib/libc-2.4.so | grep res_iclose
  1745: 000e1ed0   218 FUNC    GLOBAL DEFAULT   11 __res_iclose@@GLIBC_PRIVATE


alexander@blatt ~ $ ls -lai /lib/libc.so.6 /lib/libc-2.4.so
1859631 -rwxr-xr-x 1 root root 1349308 11. M
Comment 5 Alexander Skwar 2006-03-12 00:57:34 UTC
alexander@blatt ~ $ readelf -s /lib/libc.so.6 | grep res_iclose
  1745: 000e1ed0   218 FUNC    GLOBAL DEFAULT   11 __res_iclose@@GLIBC_PRIVATE
alexander@blatt ~ $ readelf -s /lib/libc-2.4.so | grep res_iclose
  1745: 000e1ed0   218 FUNC    GLOBAL DEFAULT   11 __res_iclose@@GLIBC_PRIVATE


alexander@blatt ~ $ ls -lai /lib/libc.so.6 /lib/libc-2.4.so
1859631 -rwxr-xr-x 1 root root 1349308 11. Mär 21:49 /lib/libc-2.4.so
1836305 lrwxrwxrwx 1 root root      11 11. Mär 21:49 /lib/libc.so.6 -> libc-2.4.so

ldconfig worked - no error message shown and with "ldconfig -v", way too much output to paste it here (the output makes sense).
Comment 6 Juergen Rose 2006-03-12 08:04:05 UTC
I got similar error after upgrading to glibc. Bash is broken:
rose@cheetah:/home_cheetah/rose(11)$ bash
bash: relocation error: bash: symbol __guard, version GLIBC_2.3.2 not defined in file libc.so.6 with link time reference

Python is broken:
rose@cheetah:/home_cheetah/rose(12)$ python --version
python: relocation error: /usr/lib/libpython2.4.so.1.0: symbol __guard, version GLIBC_2.3.2 not defined in file libc.so.6 with link time reference

gcc, make, readelf and less is also broken, all with the same error as above. 'ldconfig'  works, but does not change anything. What is the best way to repair the system?
Comment 7 Juergen Rose 2006-03-12 08:09:53 UTC
Because also 'emerge' does not work after upgrade to glibc-2.4, I can't execute 'emerge info'. But if I remember correctly I used nonhardened gcc-3.4.5 during installation of glibc-2.4.
    Juergen
Comment 8 Juergen Rose 2006-03-12 08:28:43 UTC
I found a way to get again a working system:

root@cheetah:/usr/src(139)# cd /lib
root@cheetah:/lib(142)# mkdir new_glibc
root@cheetah:/lib(143)# mv *2.4* new_glibc/
root@cheetah:/lib(145)# ldconfig

Now 'emerge' works again:
 
root@cheetah:/lib(149)# emerge --info

Portage 2.1_pre5-r4 (default-linux/x86/2005.1, gcc-3.4.5-vanilla, glibc-2.3.6-r3,glibc-2.4-r0, 2.6.16-rc4 i686)
=================================================================
System uname: 2.6.16-rc4 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo rsync://gd.tuwien.ac.at/opsys/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://gentoo.oregonstate.edu"
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d a52 aac alsa ao aotuv apache2 apm arts asf atlas auctex audiofile automount avi berkdb bitmap-fonts blas bonobo bzip2 cairo cdda cddb cdf cdio cdparanoia cgi cli corba crypt cups curl daap dbus devmap dga dri dvb dvd dvi dxr3 dynagraph eds effects elf emacs emboss encode epiphany esd evo evolution exif expat fame ffmpeg fftw fits flac fltk foomaticdb fortran fpx gdal gdbm geos gif ginac glade gml gmp gnome gnuplot gpm graphviz grass gs gsl gsm gstreamer gtk gtk2 guile hal hardened hddtemp hdf hdf5 hlapi icq id3 imagemagick imlib innodb ipv6 jabber jbig jp2 jpeg jpeg2 kde kexi lame lapack latex lcms ldap libg++ libgda libsamplerate libwww lirc lm_sensors lzo lzw mad math matroska matrox mikmod mmx mng mod mono motif mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4live mpeg mpeg2 mplayer musicbrainz mysql mysqli nautilus ncurses netcdf network nfs nls nntp nptl nptlonly numarray numeric ocaml octave odbc ogdi ogg oggvorbis opengl oss pam pcre pdf pdflib perl plotutils plugin png posix postgres proj python qhull qt quicktime readline real reiserfs rhythmbox rle rrdcgi rrdtool samba sdl slang slp sndfile snmp sox spell sqlite sse sse2 ssl subtitles svg t1lib tcltk tcpd tetex theora tidy tiff truetype truetype-fonts type1-fonts unicode v4l2 video_cards_mga vorbis win32codecs wmf xemacs xine xml2 xmlreader xmlrpc xmms xpm xv xvid xvmc zlib zvbi elibc_glibc kernel_linux linguas_de linguas_fr userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS
Comment 9 SpanKY gentoo-dev 2006-03-12 09:42:20 UTC
> I got similar error after upgrading to glibc. Bash is broken:
> rose@cheetah:/home_cheetah/rose(11)$ bash
> bash: relocation error: bash: symbol __guard, version GLIBC_2.3.2 not defined
> in file libc.so.6 with link time reference

it isnt a "similar" error it's a completely different error

file a new bug
Comment 10 SpanKY gentoo-dev 2006-03-12 09:42:56 UTC
> ldconfig worked - no error message shown and with "ldconfig -v", way too much
> output to paste it here (the output makes sense).

when you say "worked" what do you mean ?  emerge started working again ?
Comment 11 Alexander Skwar 2006-03-12 10:15:10 UTC
(In reply to comment #8)
> > ldconfig worked - no error message shown and with "ldconfig -v", way too much
> > output to paste it here (the output makes sense).
> 
> when you say "worked" what do you mean ?

No error message, no output at all - as was to be expected from a working ldconfig.

>  emerge started working again ?

emerge worked all the time... That's what's baffling me. I don't know if something's broken - I just wondered about this error message, which I posted.
Comment 12 Jakub Moc (RETIRED) gentoo-dev 2006-03-12 15:03:16 UTC
*** Bug 125988 has been marked as a duplicate of this bug. ***
Comment 13 Juergen Rose 2006-03-13 00:31:34 UTC
I filed my problem as a new bug (125988). But then the bug 125988 was marked as a duplicate of this bug. So I am again here.
After removing glibc-2.4 (emerge -C glibc-2,4) and adding of missing files from glibc-2.3.6 (cf. bug  125988) my system is again broken. I suppose because of incompatible glibc-2.3.6 components. Ls, vi, xterm, emacs, configure, bash and emerge produce Segmentation faults. Tar seems still to work.
Is there any way to find a tared binary version of glibc-2.3.6 for athlon-xp and install this by untarring?
Any hints are appreciated.
       juergen
Comment 14 Nes Yarug 2006-03-13 13:02:13 UTC
Same error as Juergen here. These are the last few lines of the emerge output:

>>> /usr/include/protocols/rwhod.h
>>> /usr/include/protocols/talkd.h
>>> /usr/include/protocols/timed.h
>>> /usr/include/protocols/routed.h
>>> /usr/include/assert.h
>>> /usr/include/shadow.h
>>> /usr/include/features.h
>>> /usr/include/limits.h
>>> /usr/include/regexp.h
>>> /usr/include/memory.h
--- /sbin/
>>> /sbin/sln
>>> /sbin/ldconfig
>>> /lib/libnss_nis.so.2 -> libnss_nis-2.4.so
>>> /lib/libm.so.6 -> libm-2.4.so
>>> /lib/libnss_files.so.2 -> libnss_files-2.4.so
>>> /lib/libresolv.so.2 -> libresolv-2.4.so
>>> /lib/libnsl.so.1 -> libnsl-2.4.so
>>> /lib/libutil.so.1 -> libutil-2.4.so
>>> /lib/libcidn.so.1 -> libcidn-2.4.so
>>> /lib/libBrokenLocale.so.1 -> libBrokenLocale-2.4.so
>>> Safely unmerging already-installed instance...
No package files given... Grabbing a set.
>>> Original instance of package unmerged safely.
[glibc-2.4] bash: relocation error: [glibc-2.4] bash: symbol __guard, version GLIBC_2.3.2 not defined in file libc.so.6 with link time reference
!!! FAILED postinst: 127

Lots of applications stopped working now and system is borked. emerge stopped working as well, so I cannot go back to previous glibc version:

$ emerge =sys-libs/glibc-2.3.6-r3
Calculating dependencies... done!
>>> Emerging (1 of 1) sys-libs/glibc-2.3.6-r3 to /
[glibc-2.3.6-r3] bash: relocation error: [glibc-2.3.6-r3] bash: symbol __guard, version GLIBC_2.3.2 not defined in file libc.so.6 with link time reference

I have a complete backup of my system a few days old, any clues as to which files I can put back to make everything working again?

Thanks,
Nes
Comment 15 SpanKY gentoo-dev 2006-03-13 19:21:50 UTC
this bug doesnt track __guard
Comment 16 SpanKY gentoo-dev 2006-03-13 19:22:29 UTC
> >  emerge started working again ?
> 
> emerge worked all the time... That's what's baffling me. I don't know if
> something's broken - I just wondered about this error message, which I posted.

so if you do like `emerge prune glibc` 2.3.6 gets removed right ?  and do you still get that error ?
Comment 17 Mike Benson 2006-03-16 19:02:13 UTC
(In reply to comment #12)
I have this issue, but even worse - a power loss caused my machine to shutdown.
> [glibc-2.3.6-r3] bash: relocation error: [glibc-2.3.6-r3] bash: symbol __guard,
> version GLIBC_2.3.2 not defined in file libc.so.6 with link time reference

On reboot, init failed to execute, with the same relocation error as above, but that causes the kernel to panic.

> I have a complete backup of my system a few days old, any clues as to which
> files I can put back to make everything working again?

Your system install CD (or any live CD, perhaps) is your friend!

Boot up off the CD and mount your harddrive.

I haven't got through this completely, but you need to break the symbolic links to the 2.4 libraries, such as /lib/libc.so.6, and /lib64/ld-linux.so.2, and repoint them to the old libraries, which are still there.
Comment 18 SpanKY gentoo-dev 2006-03-28 20:47:29 UTC
well get back to us

make sure people who are hitting this error do not have both glibc-2.3.x and glibc-2.4 installed and that you do not have a /lib/tls dir
Comment 19 David Grant 2006-09-01 03:05:50 UTC
I just got hit with this nasty problem. All I did was:

1. update to 2006.1
2. masked gcc-4.1 (I don't want it)
3. went to upgrade glibc (nptlonly flag was enabled now, guess it came from the 2006.1 profile defaults). ran quickpkg glibc first
4. Got the same error as the reporter above
5. I panicked and did an emerge -C =glibc-2.4* (that didn't completely succeed because some binary didn't work)
6. Now my system was completely b0rked
7. Rebooting didn't work (cached run before the startup scripts I think)
8. chrooting from livecd didn't work (/bin/bash and /bin/sh no where to be found)

To solve it, I:

1. unpacked the quickpkg to my system mounted at /mnt/gentoo from the livecd
2. now I could chroot in
3. Tried re-installing glibc-2.3* just to make everything sane. It complained that "downgrading was a sure way to destruction"
4. I ran eix glibc and it looked like I had glibc-2.3, 2.4, and 2.4.lockedfile (or something like that installed).
5. I tried emerge -C =glibc-2.4* and it finished to completion this time
6. I tried emerging =glibc-2.3* now and it is working. I also removed the nptlonly use flag so the glibc-2.3* I am installing is identical to the quickpkg. Hopefully my system will be restored to exactly the way it was before the b0rking?

So could this bug be reopened because I am pretty sure it is a bug? If not, post here please.
Comment 20 SpanKY gentoo-dev 2006-09-01 18:04:05 UTC
none of the information you posted included the info i requested in comment #16
Comment 21 David Grant 2006-09-01 19:35:11 UTC
Well at the present time I do have a /lib/tls directory
Comment 22 Remy Blank 2006-09-15 03:03:27 UTC
I have also had the problem of "relocation error" at the end of emerging glibc-2.4-r3:

>>> /lib/libnss_dns-2.4.so
>>> /lib/libnss_nisplus.so.2 -> libnss_nisplus-2.4.so
>>> /lib/libnss_files.so.2 -> libnss_files-2.4.so
>>> /lib/libthread_db-1.0.so
--- /sbin/
>>> /sbin/sln
>>> /sbin/ldconfig
>>> /lib/libnss_nis.so.2 -> libnss_nis-2.4.so
>>> /lib/libpthread.so.0 -> libpthread-2.4.so
>>> /lib/libBrokenLocale.so.1 -> libBrokenLocale-2.4.so
>>> /lib/libutil.so.1 -> libutil-2.4.so
>>> /lib/librt.so.1 -> librt-2.4.so
>>> /lib/libnss_dns.so.2 -> libnss_dns-2.4.so
>>> /lib/libm.so.6 -> libm-2.4.so
 * Generating 6 locales (this might take a while)
 *  (1/6) Generating en_US.UTF-8 ...                                      [ ok ]
 *  (2/6) Generating en_US.ISO-8859-1 ...                                 [ ok ]
 *  (3/6) Generating fr_CH.UTF-8 ...                                      [ ok ]
 *  (4/6) Generating fr_CH.ISO-8859-1 ...                                 [ ok ]
 *  (5/6) Generating de_CH.UTF-8 ...                                      [ ok ]
 *  (6/6) Generating de_CH.ISO-8859-1 ...                                 [ ok ]
 * Generation complete

 * Gentoo's glibc no longer includes mdns.
 * If you want mdns, emerge the sys-auth/nss-mdns package.

>>> Regenerating /etc/ld.so.cache...
>>> sys-libs/glibc-2.4-r3 merged.
/usr/bin/python: relocation error: /lib/libresolv.so.2: symbol __res_iclose, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
pat ~ # 

So the emerge stopped before unmerging the previous glibc-2.3.6-r4, and it was indeed still registered as installed. But everything seems to be working. I can run python, and revdep-rebuild says that dynamic linking is ok.

As I had installed glibc-2.4 from a self-compiled binary package, I just re-emerged it with -K, and this time the process finished and removed the previous glibc-2.3.6-r4.

glibc-2.4 was emerged with the following flags:

[ebuild   R   ] sys-libs/glibc-2.4-r3  USE="nls nptl nptlonly -build -glibc-omitfp -hardened (-multilib) -profile (-selinux)" 0 kB

So, basically nothing's broken, it's just a bit scary.

Re. comment #16, well, yes, I did have both glibc installed at the end of merging 2.4, but that's unavoidable, isn't it? And at the moment I don't have a /lib/tls, and from the unmerge log of glibc-2.3.6-r4, I didn't have one before either.

pat etc # emerge --info
Portage 2.1.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.15-rbl-r1 i686)
=================================================================
System uname: 2.6.15-rbl-r1 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.12.4
Last Sync: Fri, 15 Sep 2006 01:01:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
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.59-r7
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-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=pentium-m -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mtune=pentium-m -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://morpheus.sathome/gentoo/ http://mirror.switch.ch/mirror/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_US.utf8"
LINGUAS=""
MAKEOPTS="-j6"
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 /usr/portage/local/layman/sunrise"
SYNC="rsync://morpheus.sathome/gentoo-portage"
USE="x86 X acl acpi alsa arts audiofile bash-completion berkdb bitmap-fonts bluetooth bonobo bzip2 cdb cdparanoia cdr cli crypt cups curl dbus dga divx4linux dlloader dri dvd dvdread eds elibc_glibc emboss encode exif expat fam ffmpeg firefox flac foomaticdb gd gdbm gif gimp glut gmp gpm gstreamer gtk gtk2 gtkhtml guile hal idn ieee1394 imagemagick imap imlib input_devices_keyboard input_devices_mouse isdnlog java jbig jikes jpeg jpeg2k junit kde kernel_linux lcms libg++ libwww logrotate lzo mad maildir mbox mikmod mmap mmx mmx2 mng motif mp3 mpeg ncurses nls nntp nptl nptlonly ogg opengl oss pam pcmcia pcre pda perl png ppds pppd pthreads python qt qt3 qt4 quicktime readline reflection rtc scanner sdl session slang snmp spell spl sqlite sse sse2 ssl subversion svg svga tcl tcltk tcpd threads tiff tk truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 video_cards_fbdev video_cards_fglrx video_cards_radeon video_cards_vesa vorbis wifi win32codecs wmf x264 xattr xine xml xml2 xmms xorg xosd xprint xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 23 Remy Blank 2006-09-15 09:24:37 UTC
Exact same symptoms on a second machine:

 * Gentoo's glibc no longer includes mdns.
 * If you want mdns, emerge the sys-auth/nss-mdns package.

>>> Regenerating /etc/ld.so.cache...
>>> sys-libs/glibc-2.4-r3 merged.
/usr/bin/python: relocation error: /lib/libresolv.so.2: symbol __res_iclose, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

Again, python and emerge are working, revdep-rebuild doesn't find anything to rebuild, and nothing seems to be broken. This time, I just unmerged the previous glibc with "emerge --prune glibc".

morpheus etc # emerge --info
Portage 2.1.1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Celeron(R) CPU 1.80GHz
Gentoo Base System version 1.12.5
Last Sync: Fri, 15 Sep 2006 01:01:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
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.59-r7
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-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=pentium4 -fomit-frame-pointer -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 -mtune=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_US.utf8"
LINGUAS=""
MAKEOPTS="-j6"
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 acl acpi alsa apache2 apm audiofile bash-completion berkdb bitmap-fonts bzip2 cdb cdr cli crypt cups curl dlloader dri dvdr dvdread eds elibc_glibc emboss encode exif expat fam ffmpeg flac foomaticdb gd gdbm gif gmp gpm gstreamer hal idn imagemagick imap imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog java jbig jpeg jpeg2k kernel_linux lcms libg++ libwww logrotate mad maildir mbox mhash mikmod mmap mmx mp3 mpeg ncurses nls nntp nptl nptlonly ogg oss pam pcre perl php png ppds pppd pthreads python qt4 quicktime readline reflection samba sasl sdl session slang spell spl sqlite sse ssl tcl tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU 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 x264 xattr xml xml2 xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 24 SpanKY gentoo-dev 2006-09-15 15:00:34 UTC
were you guys all running USE=-nptlonly before the glibc-2.4 upgrade ?  i suspect something, but only in that upgrade path ...
Comment 25 David Grant 2006-09-15 17:32:50 UTC
Possibly... The upgrade to 2006.1 profile changed some useflags and I seem to remember nptlonly suddenly being a default, and I don't remember it being a default before.
Comment 26 Remy Blank 2006-09-16 01:23:11 UTC
No, I was already "nptl nptlonly" before the upgrade, on both machines.