Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106409 - app-office/mozilla-sunbird-bin crashes not finding libstdc++.so.5
Summary: app-office/mozilla-sunbird-bin crashes not finding libstdc++.so.5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-18 14:18 UTC by Pawel Madej aka Nysander
Modified: 2006-08-14 12:27 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 Pawel Madej aka Nysander 2005-09-18 14:18:28 UTC
It emerges OK but while starting crashes with that error:

/opt/sunbird/sunbird-bin: error while loading shared libraries: libstdc++.so.5:
cannot open shared object file: No such file or directory
sunbird-bin exited with non-zero status (127)


Reproducible: Always
Steps to Reproduce:
1. $ sunbird
Actual Results:  
sunbird not started

Expected Results:  
normal start of sunbird

Portage 2.0.52-r1 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-s    
uspend2-r4 i686)
=================================================================
System uname: 2.6.13-suspend2-r4 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.0_pre8
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled    
]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.13
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
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/env.d/00base /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/initng /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distclean distlocks sandbox sfperm sfperms st    
rict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp.    
uni-erlangen.de/pub/mirrors/gentoo  http://ftp-stud.fht-esslingen.de/pub/Mirrors    
/gentoo/ http://gentoo.ITDNet.net/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL"
LDFLAGS=" -z combreloc -s"
LINGUAS="pl"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acpi alsa apache2 apm avi berkdb bitmap-fonts bzlib crypt cups
curl dba dbase divx4linux dlz eds emboss encode esd exif fam foomaticdb fortran
ftp gd gdbm gif gimpprint gpm gstreamer gtk gtk2 iconv imagemagick imlib irda
java jpeg ldap libg++ libwww local mad mhash mikmod mime mmx mmx2 motif mozsvg
mp3 mpeg mpm-worker mysql ncurses nls ogg oggvorbis opengl openssh pam pcntl
pcre pdflib perl php pic png posix python qt quicktime readline sdl session
simplexml slang sndfile soap sockets speex spell spl sse sse2 ssl svg svga tcltk
tcpd threads tiff tokenizer truetype truetype-fonts trutype type1-fonts unicode
usb userlocales vhosts vorbis xchattext xml xml2 xmlrpc xpm xsl xv xvid zlib
linguas_pl userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, PORTDIR_OVERLAY

$ locate libstdc++.so shows:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5.0.7
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/libstdc++.so.5
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6.0.3
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so.6
/usr/lib/openoffice/program/libstdc++.so.6.1
/usr/lib/openoffice/program/libstdc++.so.6
/usr/lib/libstdc++.so.2.9
/usr/lib/libstdc++.so.2.7.2.8
/usr/lib/libstdc++.so.2.8.0
/usr/lib/libstdc++.so.2.9.0
/usr/lib/libstdc++.so.2.8
/usr/lib/libstdc++.so.2.7.2
/opt/DBDesigner4/Linuxlib/libstdc++.so.5.0.0
/opt/DBDesigner4/Linuxlib/libstdc++.so.5

and my gcc-config is:
 [1] i686-pc-linux-gnu-3.3.6
 [2] i686-pc-linux-gnu-3.3.6-hardened
 [3] i686-pc-linux-gnu-3.3.6-hardenednopie
 [4] i686-pc-linux-gnu-3.3.6-hardenednopiessp
 [5] i686-pc-linux-gnu-3.3.6-hardenednossp
 [6] i686-pc-linux-gnu-3.4.4 *
 [7] i686-pc-linux-gnu-3.4.4-hardened
 [8] i686-pc-linux-gnu-3.4.4-hardenednopie
 [9] i686-pc-linux-gnu-3.4.4-hardenednopiessp
 [10] i686-pc-linux-gnu-3.4.4-hardenednossp
Comment 1 Pawel Madej aka Nysander 2005-09-19 06:49:41 UTC
found solution:

Steps to reproduce
1. echo "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6" >> /etc/ld.so.conf
2. ldconfig
3. sunbird

Result:
Sunbird starts as i want to.

I've found that other binary packages like media-video/realplayer-10.0.5 when
installed in /opt are looking for this library.

Above resolution helps in both problems.
Comment 2 Pawel Madej aka Nysander 2005-09-21 03:28:33 UTC
I did not add it before i use for default gcc 3.4.4
above solution was buggy because after env-update added line was deleted.

I tried other solution:
1. edit /etc/env.d/05gcc
in line LDPATH add before last " this :/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6

2. run env-update

and it should be ok.
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-14 12:27:14 UTC
closing as you have probably solved it and sunbird has new versions now