Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 423663 - ERROR: sys-libs/glibc-2.14.1-r3 failed (setup phase): old __guard detected
Summary: ERROR: sys-libs/glibc-2.14.1-r3 failed (setup phase): old __guard detected
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-26 15:24 UTC by n.anand
Modified: 2012-06-29 08:29 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 n.anand 2012-06-26 15:24:00 UTC
My emerge --info:-

SERVER temp # emerge --info
Portage 2.1.10.49 (hardened/linux/x86, gcc-4.3.4, glibc-2.10.1-r1, 2.6.28-hardened-r9 i686)
=================================================================
System uname: Linux-2.6.28-hardened-r9-i686-Intel-R-_Xeon-R-_CPU_X5450_@_3.00GHz-with-gentoo-2.1
Timestamp of tree: Thu, 31 May 2012 23:15:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.6.4-r1, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.7.9-r2, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.3.4
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.81
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.10.1-r1
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.mirrors.tera-byte.com/ http://gentoo.mirror.dkm.cz/pub/gentoo/ rsync://mirror.cambrium.nl/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/opt/portage"
SYNC="rsync://pharamond.har.mrc.ac.uk/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt cups curl cxx dri gd gdbm gpm hardened iconv imap jpeg modules mudflap mysql ncurses nls nptl nptlonly openmp pam pax_kernel pcre pic png pppd readline session snmp spell ssl tcpd tiff truetype unicode urandom x86 xml2 xorg 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias asis 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 cern_meta charset_lite 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_ftp proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias cgi cgid" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


==================

revdep-rebuild or emerge -e system gives:-

SERVER temp # emerge -e system
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 175) sys-libs/glibc-2.14.1-r3
 * glibc-2.14.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                   [ ok ]
 * glibc-ports-2.14.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                             [ ok ]
 * glibc-2.14.1-patches-10.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                        [ ok ]
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
make -j8 -s glibc-test
make -j8 -s glibc-test
 * Scanning system for __guard to see if you need to rebuild first ... ...                                                [ !! ]
 * Your system still has old SSP __guard symbols.  You need to
 * rebuild all the packages that provide these files first:
 * //lib/libreadline.so.5
 * //lib/libhistory.so.5
 * //usr/bin/i386-pc-linux-gnu-gcc
 * //usr/bin/i386-pc-linux-gnu-gcc32
 * //usr/lib/libldap_r-2.3.so.0
 * //usr/lib/liblber-2.3.so.0
 * ERROR: sys-libs/glibc-2.14.1-r3 failed (setup phase):
 *   old __guard detected
 *
 * Call stack:
 *                ebuild.sh, line  85:  Called pkg_setup
 *   glibc-2.14.1-r3.ebuild, line 194:  Called eblit-run 'pkg_setup'
 *   glibc-2.14.1-r3.ebuild, line 175:  Called eblit-glibc-pkg_setup
 *          pkg_setup.eblit, line 119:  Called die
 * The specific snippet of code:
 *                      die "old __guard detected"
 *
 * If you need support, post the output of 'emerge --info =sys-libs/glibc-2.14.1-r3',
 * the complete build log and the output of 'emerge -pqv =sys-libs/glibc-2.14.1-r3'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.14.1-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.14.1-r3/temp/die.env'.
 * S: '/var/tmp/portage/sys-libs/glibc-2.14.1-r3/work/glibc-2.14.1'
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory

>>> Failed to emerge sys-libs/glibc-2.14.1-r3, Log file:

>>>  '/var/tmp/portage/sys-libs/glibc-2.14.1-r3/temp/build.log'

 * Messages for package sys-libs/glibc-2.14.1-r3:

 * Your system still has old SSP __guard symbols.  You need to
 * rebuild all the packages that provide these files first:
 * //lib/libreadline.so.5
 * //lib/libhistory.so.5
 * //usr/bin/i386-pc-linux-gnu-gcc
 * //usr/bin/i386-pc-linux-gnu-gcc32
 * //usr/lib/libldap_r-2.3.so.0
 * //usr/lib/liblber-2.3.so.0
 * ERROR: sys-libs/glibc-2.14.1-r3 failed (setup phase):
 *   old __guard detected
 *
 * Call stack:
 *                ebuild.sh, line  85:  Called pkg_setup
 *   glibc-2.14.1-r3.ebuild, line 194:  Called eblit-run 'pkg_setup'
 *   glibc-2.14.1-r3.ebuild, line 175:  Called eblit-glibc-pkg_setup
 *          pkg_setup.eblit, line 119:  Called die
 * The specific snippet of code:
 *                      die "old __guard detected"
 *
 * If you need support, post the output of 'emerge --info =sys-libs/glibc-2.14.1-r3',
 * the complete build log and the output of 'emerge -pqv =sys-libs/glibc-2.14.1-r3'.
 * The complete build log is located at '/var/tmp/portage/sys-libs/glibc-2.14.1-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-libs/glibc-2.14.1-r3/temp/die.env'.
 * S: '/var/tmp/portage/sys-libs/glibc-2.14.1-r3/work/glibc-2.14.1'
kryten temp #


many thanks,
Nitish
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-26 15:43:18 UTC
It seems to say that before upgrading glibc, you need to re-emerge sys-libs/readline and sys-devel/gcc, net-nds/openldap.
Comment 2 n.anand 2012-06-26 15:53:37 UTC
Thanks Jeroen for the prompt reply. I have followed this forum :-
http://forums.gentoo.org/viewtopic-t-927668-highlight-emerge+syslibs+glibc.html

and curently runninng (as we speak) :
emerge -ve --keep-going system

This seems to have kicked off the update and there are 175 updates (i know) happening. Half of what I dont even understand. I will do a revdep-rebuild once this completes. I will update accordingly. Pls let me know if I am doing something wrong.
Comment 3 n.anand 2012-06-27 09:48:40 UTC
Hiya,
So I did the update through:-
emerge -ve --keep-going system


And there were 175 updates (out o which 5 failed). And these files needs updating in et-update:


SERVER temp # etc-update
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
 1) /etc/DIR_COLORS (1)
 2) /etc/login.defs (1)
 3) /etc/rmt (1)
 4) /etc/init.d/sshd (1)
 5) /etc/pam.d/chgpasswd (1)
 6) /etc/pam.d/chpasswd (1)
 7) /etc/pam.d/login (1)
 8) /etc/pam.d/passwd (1)
 9) /etc/security/namespace.init (1)
10) /etc/ssh/sshd_config (1)
Please select a file to edit by entering the corresponding number.
              (don't use -3, -5, -7 or -9 if you're unsure what to do)
              (-1 to exit) (-3 to auto merge all remaining files)
                           (-5 to auto-merge AND not use 'mv -i')
                           (-7 to discard all updates)
                           (-9 to discard all updates AND not use 'rm -i'): 1

==

Is it safe enough to overwrite? I have read that overwritin pam.d files stops the login after reboot?
Comment 4 SpanKY gentoo-dev 2012-06-28 16:08:33 UTC
your system has old ssp.  glibc correctly detected that.  you must re-emerged packages yourself.  not a bug in glibc.

please seek general system assistance in the user channels: forums, irc, mailing lists, etc...
Comment 5 n.anand 2012-06-29 08:29:37 UTC
Thanks spanky,
I am trying to register for the forum for last 2 hous (lol). Username eithe exists or system generates an eror and says cotact moderator. 

Please if possible can I be registered and put password welcome (so that i can change later)?

possible usernames:-

nitish.anand
nitish-anand
nitish_anand
baranwals
vinashak
nitishanand

Many thx and please delete this comment once this is acheived.
regards,
Nitish.