on startx command: X: relocation error: X: symbol __guard, version GLIBC_2.3.2 not definied in file libc.so.6 with link time reference xinit: server error Gentoo Base System version 1.12.0_pre16 Portage 2.1_pre6 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.4-r0, 2.6.15-gentoo-r5 i686) ================================================================= System uname: 2.6.15-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1.73GHz ccache version 2.4 [enabled] 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="-O3 -march=pentium-m -mtune=pentium-m -pipe -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium-m -mtune=pentium-m -pipe -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--sort-common -s" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow X acpi alsa avi bash-completion berkdb bitmap-fonts browserplugin crypt cups divx4linux dri dvd dvdr eds emboss encode firefox foomaticdb fortran ftp gdbm gif gpm gstreamer gtk gtk2 imlib ipv6 java jpeg libg++ libwww mad mikmod mmx mmxext motif mp3 mpeg mpeg2 mpeg4 ncurses nls nptl nptlonly nsplugin nvidia ogg oggvorbis opengl oss pam pcmcia pdflib perl png ppds python quicktime readline spell sse sse2 ssl tcpd truetype truetype-fonts type1-fonts vhost vim vorbis wifi win32codecs xml2 xmms xosd xv xvid zlib elibc_glibc kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LINGUAS
Recompiling xorg-x11 fixed this for me
Recompiling xorg-x11 solved the problem for me. However I'm still not really sure what caused it.
Same for me on ~amd64 (had to switch back to 2.3.6-r3 to get things going again) Portage 2.1_pre6 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r7 x86_64) ================================================================= System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.0_pre16 dev-lang/python: 2.3.5, 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="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -pipe -O2" CHOST="x86_64-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/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=k8 -pipe -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" LC_ALL="en_US.UTF-8" LINGUAS="de en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X a52 aac acpi alsa apache2 audiofile avi berkdb bitmap-fonts bzip2 cairo cdparanoia cdr crypt cscope css ctype cups curl curlwrappers dba dbm dga dio divx4linux djbfft dri dts dv dvd dvdr dvdread eds emboss emu-linux-x86 encode exif expat fam fame ffmpeg flac flatfile fontconfig foomaticdb fortran ftp gcj gd gdbm ggi gif glitz glut gnome gnutls gphoto2 gpm gs gstreamer gtk gtk2 gtkhtml iconv ieee1394 imagemagick imlib ipv6 jack java javascript jbig jpeg jpeg2k kde kdeenablefinal lcms ldap libwww lirc lm_sensors lzo lzw lzw-tiff mad matroska mbox mhash mime mjpeg mmap mng motif mp3 mpeg musepack mysql ncurses nls nptl nptlonly nvidia offensive ogg oggvorbis opengl pam pcre pdflib perl php plotutils png posix ppds python qt quicktime readline rle samba sasl sdl sharedext sharedmem slp sndfile sockets sox speex spell spl ssl svg symlink sysvipc szip tcltk tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vorbis wifi wmf x264 xface xine xinerama xml xml2 xmlrpc xmms xpm xsl xv xvid xvmc yv12 zlib elibc_glibc kernel_linux linguas_de linguas_en userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LDFLAGS
(In reply to comment #0) > on startx command: > X: relocation error: X: symbol __guard, version GLIBC_2.3.2 not definied in > file libc.so.6 with link time reference > xinit: server error Well, considering this is Glibc 2.4 and not another 2.3 branch release, I think recompiling certain packages is a given. SpanKY, let me know if this is expected. If so, I'll mark this INVALID.
well i'm thinking this is just X sucking again the __guard symbol has moved from the libc to ldso ... thank RedHat ;) but packages shouldnt care where the symbol is as long as ldso can resolve it ... but since X mucks around in ELF internals, i'm not too surprised that it broke ...
Well, that's fun. I'll mark this CANTFIX then. Long story short: just recompile X.
Talking to some of the other developers, it appears X isn't the only thing to break on 2.4. Also, solar figures that it's possible not everyone will break, and we have reports that modular users might be ok, but don't take my word for it. So, I revise my previous statement to: if it breaks, recompile it.
I'd like to see some elf output from somebody that hits this bug. We can probably rebind or remove references vs having to do a full recompile. WE might as well reopen it also or a bunch of dupes may be filed and I'd rather ppl find an existing bug.
I also had X die on me and tar died on another as well. Here is the emerge info for that system were tar died. Portage 2.1_pre6-r1 (default-linux/x86/2005.0, gcc-4.0.2, glibc-2.4-r0, 2.6.15-gentoo-r7 i686) ================================================================= System uname: 2.6.15-gentoo-r7 i686 AMD Athlon(tm) XP 3000+ Gentoo Base System version 1.12.0_pre16 dev-lang/python: 2.3.5, 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 -pipe -fomit-frame-pointer -Wl,--allow-shlib-undefined" 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/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer -Wl,--allow-shlib-undefined" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/gnome-experimental /usr/local/overlays/mine /usr/local/overlays/gentopia" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X a52 aac aalib acpi aim alsa apache2 arts artworkextra asf audiofile avi bash-completion beagle berkdb bitmap-fonts boo cairo calendar cddb cdparanoia cdr chm crypt cups dba dbus dga dio directfb divx4linux dpms dri dts dvb dvd dvdr dvdread eds emboss encode esd evo exif ffmpeg fftw firefox flac flash foomaticdb fortran gd gdbm gif gimpprint gmail gnome gphoto2 gpm gstreamer gstreamer10 gtk gtk2 gtkhtml hal howl-compat i8x0 imap imlib inotify ipv6 jabber jackjava java joystick jpeg kde ldap libg++ libnotify libsexy libwww live mad matroska mikmod mmx mmxext mng mod modplug mono motif mozilla mp3 mpeg msn musicbrainz mythtv nas nautilus ncurses nfs nls nntp nowin nptl nptlonly nsplugin offensive ogg oggvorbis opengl oscar pam pda pdf pdflib perl php png ppds python qt quicktime readline real remote ruby sdl shout skins sndfile speex spell spreadsheet sse ssl subp subtitles subversion svg tcpd tga theora tiff transcode truetype truetype-fonts type1-fonts usb v4l v4l2 vcd vidix vlm vorbis webservice win32codecs wmf wv xine xml2 xosd xpm xprint xv xvid xvmc yahoo yaz zlib zvbi elibc_glibc kernel_linux userland_GNU video_cards_radeon" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Ditto for tar being hosed, I emerged 2.4, then downgraded to 2.3.5, then had trouble with /lib/libc-2.3.5.so tar: /lib/libc.so.6: version `GLIBC_2.4' not found (required by tar) And yes, my system isn't sane, but I'd appreciate any and all help. ;) Portage 2.0.54 (default-linux/x86/2005.0, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.6.14 ccache version 2.3 [disabled] dev-lang/python: 2.1.3-r1, 2.2.3-r6, 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 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-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=prescott -pipe -O3 -fweb -frename-registers -fforce-addr -momit-l eaf-frame-pointer -fomit-frame-pointer -ftracer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="buncha stuff" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=prescott -pipe -O3 -fweb -frename-registers -fforce-addr -momit -leaf-frame-pointer -fomit-frame-pointer -ftracer -fvisibility-inlines-hidden" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/ distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-xgl /usr/local/bmg-main" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdb cdr crypt c ups curl dri dts eds emboss encode esd exif expat fam ffmpeg flac foomaticdb for tran gd gdbm gif glut gpm gstreamer gtk gtk2 idn imagemagick imlib ipv6 java jpe g lcms libg++ libwww lua mad matroska mikmod mng motif mozilla mp3 mpeg nas ncur ses nls nptl ogg oggvorbis openal opengl oss pam pcre pdflib perl pic png python quicktime readline sdl spell sqlite ssl tcltk tcpd tiff tk truetype truetype-fo nts type1-fonts udev usb vorbis wmf xine xml2 xmms xv xvid zlib userland_GNU ker nel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
(In reply to comment #10) > Ditto for tar being hosed, I emerged 2.4, then downgraded to 2.3.5, then had > trouble with /lib/libc-2.3.5.so > emerged 2.4, then downgraded to 2.3.5, and now my suystem will not boot, kernel panic early on in teh process. Will not boot any kernel. It is a relocaton error. I will be trying to rebuild a glibc with knoppix..
> Ditto for tar being hosed, I emerged 2.4, then downgraded to 2.3.5, then had > trouble with /lib/libc-2.3.5.so > > tar: /lib/libc.so.6: version `GLIBC_2.4' not found (required by tar) well duh, dont downgrade glibc
Not sure that this is a problem with x11-xorg, I've no problem with modular xorg-server-7.0, but I have the same 'relocation error: <pkg-XYZ>: symbol __guard, version GLIBC_2.3.2 not defined in file libc.so.6 with link time reference' error with other packages: syslog-ng, nfs, ssh, rsync, arts and many others. Re-emerging the failing packages resolves the proble, but how to find which are affected, other than wait untill I try to execte something? '
(In reply to comment #13) > Re-emerging the failing packages resolves the proble, but how to find > which are affected, other than wait untill I try to execte something? One liner. qlist -o $(qlist -ICv) | scanelf -Bs__guard -qf - -F%F#s | xargs qfile
I think there should have been a warning after I emerged glibc 2.4 about the likely possibility of having to rebuild xorg and some other packages. I would rather have rebuilt those packages while I am using my computer (just because), instead of restarting my computer to find it borked. I'm now going to have to wait 30 minutes while xorg rebuilds :(, and without being able to use my computer no less!!
Or having to reinstall... Just outa curiosity, why isn't 2.4 backwards compatible?
(In reply to comment #14) > (In reply to comment #13) > > Re-emerging the failing packages resolves the proble, but how to find > > which are affected, other than wait untill I try to execte something? > > One liner. > qlist -o $(qlist -ICv) | scanelf -Bs__guard -qf - -F%F#s | xargs qfile > Thanks for the help, found 28 packages, emerging now. could you explain the command for me please, esp the '-Bs__guard ' part?
(In reply to comment #17) > Thanks for the help, found 28 packages, emerging now. could you explain the > command for me please, esp the '-Bs__guard ' part? Link: http://www.gentoo.org/proj/en/hardened/pax-utils.xml I'm not going to explain it on this bug. This bug is about the __guard symbol in Xorg. Bugs are not for idle chat. IRC is for that.
Could revdep-rebuild have caught--or be modified to catch--this sort of problem?
> Could revdep-rebuild have caught--or be modified to catch--this sort of > problem? not really
(In reply to comment #16) > Or having to reinstall... > Just outa curiosity, why isn't 2.4 backwards compatible? Because RedHat decided to implement stack protection differently from the way we did it in 2.3.6. Note that it's not a point release (i.e. it's not 2.3.7).
Moving over from #125868, which looks very much the same but appearantly is not. Same problem here. System is completely borked. Cannot use emerge to pull in or recompile packages. This is the output from glibc 2.4 emerge: >>> /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 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? Many thanks, Nes
Its even worse, I cannot mount my backup drive: $ mount /dev/hda1 /mnt/backups mount: relocation error: /lib/libuuid.so.1: symbol __guard, version GLIBC_2.3.2 not defined in file libc.so.6 with link time reference
try using busybox to repair the system
Just a note, it appears that bug 125988 is a duplicate of this bug. It mentions __guard specifically.
I hit this too, and re-emerging xorg-x11 fixed it.
FWIW, I did a partial restore from my backup using the Gentoo LiveCD. I'm in the process now of re-emerging the packages that display errors (because I updated them between the backup and updating glibc or because of some other issues with updating glibc). I seem to be pretty safe for now. Still don't know what I would have to do to update to glibc 2.4.0 safely in the future (I'll sit this one out for a while). Thanks.
ok, glibc-2.4-r1 should resolve this if you guys have a broken system and are unable to sync/re-emerge glibc, then you can grab prebuilt lib's to work around this issue: # bb # wget http://dev.gentoo.org/~vapier/amd64_libssp_simple.so # mv amd64_libssp_simple.so /lib/libssp_simple.so # echo /lib/libssp_simple.so > /etc/ld.so.preload for x86 users, just change the "amd64" to "x86" once you've installed glibc-2.4-r1 then, just delete /lib/libssp_simple.so and /etc/ld.so.preload and you should be all set thanks to solar for this little hack workaround
those libs no longer exist; see attachments in Bug 125988 for them