Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 365587 - www-client/firefox-bin-3.6.17 error while loading shared libraries:
Summary: www-client/firefox-bin-3.6.17 error while loading shared libraries: libstdc++...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2011-05-01 16:26 UTC by Tango
Modified: 2011-05-03 22:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Tango 2011-05-01 16:26:28 UTC
www-client/firefox-bin-3,6.17 error while loading shared libraries:

Reproducible: Always

Steps to Reproduce:
1.emerge -avNuD world
2.try to start firefox-bin from desktop icon or terminal
Actual Results:  
/opt/firefox/firefox-bin: error while loading shared libraries: cannot open shared object file: No such file or directory

Expected Results:  
firefox starts

Ran the usual recommended fixes, revdep-rebuild and emerged others like nss and libstdc++-v3

Portage (default/linux/amd64/10.0, gcc-4.4.5, libc-0-r0, 2.6.37-gentoo-r4 x86_64)
System uname: Linux-2.6.37-gentoo-r4-x86_64-AMD_Opteron-tm-_Processor_246-with-gentoo-1.12.14
Timestamp of tree: Sun, 01 May 2011 05:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4-r1
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1-r1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
sys-libs/glibc:      2.11.3
virtual/os-headers:  0
ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL Q3AEULA ut2003 AdobeFlash-10.1 teamspeak3"
CFLAGS="-march=k8 -O2 -pipe -ggdb"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -ggdb"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /usr/local/portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amd64 artworkextra avi berkdb bzip2 cairo cdda cdparanoia cdr cli consolekit cracklib crypt cups cxx dbus device-mapper directfb divx divx4linux dlloaders dri dvd dvdr eds encode esd exif extras fbcon ffmpeg firefox flac fortran gb gdbm gdu gif gmedia gnome gnome-keyring gpm gstreamer gtk gtkhtml guile hbci iconv imagemagick imlib java jpeg jpeg2k lame libg++ libwww live mad mikmod mmx mmxext modules motif mp3 mpeg mudflap multilib nautilus ncurses networking nls nptl nptlonly nsplugin ntp nvidia ofx ogg openal opengl openmp openxr oss pam pcre pdf perl png policykit pppd python quicktime readline sdl seamonkey session sndfile spell sqlite sse sse2 ssl svg sysfs tcpd tetex tidy tiff timidity tng truetype udev unicode usb userlocales vcd vorbis wma wmf wmp xinerama xml xorg xprint xulrunner xv xvid zlib" ALSA_CARDS="emu10k1" 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 auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" 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" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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" 
Comment 1 Rafał Mużyło 2011-05-01 16:38:00 UTC
:roll: libstdc++-v3 is
Check gcc-config.
See also /etc/ and /etc/
Comment 2 Tango 2011-05-01 18:34:09 UTC
 gcc-config -l
 [1] x86_64-pc-linux-gnu-4.4.5 *

equery b
[ Searching for file(s) in *... ]
sys-devel/gcc-4.4.5 (/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/ ->
sys-devel/gcc-4.4.5 (/usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/32/ ->
app-office/openoffice-bin-3.3.0 (/usr/lib64/openoffice/ure/lib/
This all seems normal.

/etc/env.d contains the file 99libstdc++32 which is not on any of my other systems and it adds an additional item pertaining to libstdc++32 in /etc/  So I backed it up a ran env-update  && source /etc/profile.  That changed the /etc/ to look like all my other systems.

Doing so had no effect on firefox though.

/etc/ is an empty directory.

This bug is only affecting one of my amd64 systems.  The system in question was originally built from a stage-1 install many years ago and updated religiously over the years, using stable packages.  It seems though that updates don't properly remove old obsolete directories or files resulting in these odd issues.
Comment 3 Tango 2011-05-01 19:14:55 UTC
I solved the problem by adding /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.5/32 to the LDPATH= "" in /etc/env.d/05gcc-x86_64-pc-linux-gnu file.  I don't know why that line was missing but it was.  I have also removed what appears to be some very old stale files and directories.

Is there some kind of application for gentoo that can locate and remove or repair stale files, directories and broken links?
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-03 22:45:25 UTC
Seems there is nothing to do here.