Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]system crash causing libstdc++.so.6 to not be found?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
phsdv
Guru
Guru


Joined: 13 Mar 2005
Posts: 372
Location: Europe

PostPosted: Mon Jun 05, 2006 7:24 pm    Post subject: [solved]system crash causing libstdc++.so.6 to not be found? Reply with quote

During an emerge -e my hardware went down with a kernel panic. Probably overheated or a memory issue. Unfortunatley the system is almost useless now due to folowing errors:
Code:
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
This, I think, is different then all the gcc upgrade issues where libstdc++.so.5 can not be found, there I have a libstdc++.so.6 on my system, I even added an extra link to it. This I have now:
Code:
$ find /usr -iname "libstdc++.so*" -exec ls -l {} \;

lrwxrwxrwx 1 root root 18 Feb 26 12:45 /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/libstdc++.so -> libstdc++.so.6.0.3
lrwxrwxrwx 1 root root 18 Jun  4 15:22 /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so -> libstdc++.so.6.0.3
lrwxrwxrwx 1 root root 18 Jun  4 15:22 /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6 -> libstdc++.so.6.0.3
-rwxr-xr-x 1 root root 833988 Jun  4 15:22 /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6.0.3
lrwxrwxrwx 1 root root 18 May 20 15:06 /usr/lib/libstdc++-v3/libstdc++.so.5 -> libstdc++.so.5.0.6
-rwxr-xr-x 1 root root 728120 May 20 15:06 /usr/lib/libstdc++-v3/libstdc++.so.5.0.6
lrwxrwxrwx 1 root root 55 Jun  4 20:30 /usr/lib/libstdc++-v3/libstdc++.so.6 -> /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/libstdc++.so.6.0.3
The last line is the link I made myself. The question is now: why can it not find the lib?

I have noticed that the file /etc/profile.env was corrupt, and I replaced it by hand from another machine. But I can not find a path in here that points to libstdc++. Is there an other file that holds this info? Of cource more files can be corrupt. The files system is JFS and a fsck dit not help.

thank you in advance for your help,
Paul

some system info: gcc-config -l
Code:
 [1] arm-unknown-linux-gnu-3.4.6 *
 [2] arm-unknown-linux-gnu-3.4.6-hardenednopiessp
 [3] i686-pc-linux-gnu-3.4.6 *
 [4] i686-pc-linux-gnu-3.4.6-hardened
 [5] i686-pc-linux-gnu-3.4.6-hardenednopie
 [6] i686-pc-linux-gnu-3.4.6-hardenednopiessp
 [7] i686-pc-linux-gnu-3.4.6-hardenednossp

gcc -v
Code:
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/specs
Configured with: /var/tmp/portage/gcc-3.4.6-r1/work/gcc-3.4.6/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.6 --includedir=/usr/lib/gcc/i686-pc-linux-gn
6/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.6
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-include
ext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --e
threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9)

make.conf:
Code:
CFLAGS="-O3 -march=pentium3 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
http_proxy="http://192.168.0.3:8080"
GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://pandemonium.tiscali.de/pub/gento
o/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
USE=" -ldap -kde -qt -arts -eds -esd -ipv6 -esound kdeenablefinal unicode fam win32codecs v4l mozilla ffmpeg tcltk directfb svga a52 sqlite bzip2 bash-completion mythtv tiff postgre
s exif gimp nptl aac lcms alsa oss apache2 mysql pam ssl xml xml2 gif jpg png flac faad2 dvd network live cups foomaticdb ppds usb mmxext real hal fbcon bitmap-fonts truetype-fonts
type1-fonts"
ALSA_CARDS="via82xx"
VIDEO_CARDS="matrox"
INPUT_DEVICES="keyboard mouse"
MAKEOPTS="-j2"
PORTAGE_NICENESS=5
AUTOCLEAN="yes"
FEATURES="ccache distlocks sandbox userpriv usersandbox parallel-fetch"
CCACHE_SIZE="1024M"
CCACHE_DIR="/var/tmp/ccache/"
PORTDIR_OVERLAY="/usr/local/portage"
PORTDIR_OVERLAY="${PORTDIR_OVERLAY} /usr/local/initng-portage"
SANE_BACKENDS="epson coolscan coolscan2"
LINGUAS="en"
USE_EXPAND="INITNG_PLUGINS"
INITNG_PLUGINS="also bash_launcher chdir chroot conflict cpout critical cron daemon dev dllaunch envparser find fstat history idleprobe initctl interactive iparser last limit logfil
e netprobe ngc4 pause pidfile reload renice rlparser simple_launcher stcmd stdout suid syncron syslog unneeded provide"


Last edited by phsdv on Tue Jun 06, 2006 4:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580
Location: Salt Spring Island, BC, Canada

PostPosted: Mon Jun 05, 2006 10:38 pm    Post subject: Reply with quote

could you run env-update and re-source your /etc/profile and try that operation again...
post your results...

Code:
# env-update && source /etc/profile


from man env-update
Code:
NAME
       env-update - updates environment settings automatically

SYNOPSIS
       env-update [options]

DESCRIPTION
       env-update  reads  the  files  in  /etc/env.d and automatically generates /etc/profile.env and /etc/ld.so.conf.  Then ldconfig(8) is run to update /etc/ld.so.cache.  env-update is run by emerge(1)
       automatically after each package merge.  Also, if you make changes to /etc/env.d, you should run env-update yourself for changes to take effect immediately.  Note that this would only  affect  new
       processes.  In order for the changes to affect your active shell, you will probably have to run source /etc/profile first.

OPTIONS
       --no-ldconfig
              Do not run ldconfig (and thus skip rebuilding the ldso cache, updating the links in library paths, etc...).

REPORTING BUGS
       Please report bugs via http://bugs.gentoo.org/

AUTHORS
       Daniel Robbins <drobbins@gentoo.org>

SEE ALSO
       emerge(1), ldconfig(8)

_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
phsdv
Guru
Guru


Joined: 13 Mar 2005
Posts: 372
Location: Europe

PostPosted: Tue Jun 06, 2006 5:22 am    Post subject: Reply with quote

TheRAt wrote:
could you run env-update and re-source your /etc/profile and try that operation again...
No that does not work, env-update is a python program and python is complaining that libstdc++.so.6 can not be found.

But I will check /etc/env.d if I missed anything. And I will try to run ldconfig. I'll post results later.
Back to top
View user's profile Send private message
phsdv
Guru
Guru


Joined: 13 Mar 2005
Posts: 372
Location: Europe

PostPosted: Tue Jun 06, 2006 4:25 pm    Post subject: Reply with quote

running ldconfig did the trick! I can use the system again. Thanks to TheRAt for pointing me into the correct direction!
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580
Location: Salt Spring Island, BC, Canada

PostPosted: Wed Jun 07, 2006 11:21 pm    Post subject: Reply with quote

phsdv wrote:
running ldconfig did the trick! I can use the system again. Thanks to TheRAt for pointing me into the correct direction!

and thanks to you, i have learnt something also.. :)
enjoy..
_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum