Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
X crashed -> libstdc++.so.5 cannot open shared object fil
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
chomber
n00b
n00b


Joined: 18 Aug 2003
Posts: 35

PostPosted: Mon Aug 18, 2003 7:47 pm    Post subject: X crashed -> libstdc++.so.5 cannot open shared object fil Reply with quote

Hi,

I think I am in big troubles. X crashed and I could only press reset button. In boot, system starts normal fsck but could'nt complited. Then I manually e2fsck that hda. Then after reboot I tried to start x again but it is missing some library and then I tried to get system back to normal but almoust everything emerge, env-update, etc is complaining about python2.2: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory.

I have one file in lost+found directory. Can I still recover that system or do I need to reinstall it?
If so what is easiest way to do that?

Thanks for your advice. - Chomber -
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Mon Aug 18, 2003 8:48 pm    Post subject: Reply with quote

The file in lost+found may be the file you are missing, but it may also be any other file that was renamed by fsck.

The libstdc++.so.5 file is part of GCC and it is important that you use the file from the same version of GCC as you have installed.

If you are running the same version as on the LiveCD, you can:

1. Boot the machine with your LiveCD
2. Mount the harddrives as during install
3. copy libstdc++.so.5 from the LiveCD to your harddisk (The file is located under /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3 or another version number if you are using a different version of GCC)
4. Reboot back into your normal setup

This should take care of this problem, but there may be other issues surfacing once this problem has been fixed.

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
chomber
n00b
n00b


Joined: 18 Aug 2003
Posts: 35

PostPosted: Tue Aug 19, 2003 7:35 pm    Post subject: Reply with quote

actually that file is in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3 directory and symlink seems to ok also pointing to libstdc++.so.5.0.3 . so it must be something else.

Is it possible to do somekind of recovery installation?

EDIT: it seems to python2.2 problem itm can't find those libraries.
That file in lost+found is contaning first some binary and then lots of (maybe all the library files) different paths to libraries. I am trying to get it here but I am missing network connection at a moment, because I tried to build kernel again but because I can't emerge anything so network is down. So I might need to boot from livecd.
Back to top
View user's profile Send private message
chomber
n00b
n00b


Joined: 18 Aug 2003
Posts: 35

PostPosted: Tue Aug 19, 2003 8:32 pm    Post subject: Reply with quote

This is just part of the fiile:
Code:
cat lost_found
ld.so-1.7.0?PI^IuI?I?I?I?I?IJJ+J3JDJZJ?J?J?J?J?J?J K#KC
KXK┴K?K?K?K?K?K?K?KLL/LBL°L⎼L?L?L?L?L?L?L?L?L
MM4M>MQM^M├MM?M?M?M?MNN6NMN└N?N?N?N?N?N?N?N   
...
OO,O7OKOZO⎼OO?O?O?O?O?O?OPP1PBP\P┼P?P?P?P?P?
P?PQQ)Q7QNQZQ⎺QπQ?Q?Q?Q?Q RR'R4RFRQR␊R┤R?R?R
?R?R?R?RUUTU␊UU?U?U?U?U?UV5VWV⎻V?V?V?V?VW'W
;WFW␉W⎼W?W?W
?W?W?W?W?W?W?WXX&X9XGX^X┘XX?X?X?X?X?X?X?XY'YDYV
Y─Y?Y?Y?Y?Y?YZ%ZEZUZ┼Z≠Z?Z^^6^D^[^─^?^?^?^?^?^?^_
%_A_M_±_─_?_?_?_?_?_?_◆◆5◆D◆▒◆┼◆?◆?◆?◆?◆?◆?
◆?◆     %▒1▒K▒X▒┘▒┤▒?▒?▒?S?k?z????????????'?:?E?Y?d?????
????????????#?;?H?^?s?????????lib3dkit.so.1/usr/lib/lib3dkit.so.1lib3dkit.so/
usr/lib/lib3dkit.solibzvt.so.2/usr/lib/libzvt.so.2libzvt.so/usr/lib/libzvt.solibzip.so/opt/blackdown-jdk-1.4.1/jre/lib/i386/libzip.solibz.so.1/
...
/usr/lib/libBrokenLocale.sold-linux.so.2/lib/ld-linux.so.2


so it contains lots of different libraries and paths...so could I use ldconfig or some other tool to get those libraries regognized?

ldconfig is complaining about /usr/lib/libstdc++-libc6.1-1.so.2 is not a symbolic link
Back to top
View user's profile Send private message
chomber
n00b
n00b


Joined: 18 Aug 2003
Posts: 35

PostPosted: Tue Aug 19, 2003 8:43 pm    Post subject: Reply with quote

After ldconfig and reboot it seems to be ok so I can use emerge etc. jippiii ! !!
But now I want to make sure that I have everything ok so should I "emerge system" again?
Back to top
View user's profile Send private message
Safrax
Guru
Guru


Joined: 23 Apr 2002
Posts: 422

PostPosted: Tue Aug 19, 2003 9:00 pm    Post subject: Reply with quote

Just emerge gcc. That missing file is part of GCC.
Back to top
View user's profile Send private message
chomber
n00b
n00b


Joined: 18 Aug 2003
Posts: 35

PostPosted: Wed Aug 20, 2003 9:41 am    Post subject: Reply with quote

double

Last edited by chomber on Wed Aug 20, 2003 9:45 am; edited 1 time in total
Back to top
View user's profile Send private message
chomber
n00b
n00b


Joined: 18 Aug 2003
Posts: 35

PostPosted: Wed Aug 20, 2003 9:42 am    Post subject: Reply with quote

Safrax wrote:
Just emerge gcc. That missing file is part of GCC.

well file was not missing.

I think it was because of ld.cache was corrupted or something but it seems that running ldconfig fixed everything.
Back to top
View user's profile Send private message
squanto
Guru
Guru


Joined: 20 Apr 2002
Posts: 524
Location: Rochester, NY, USA

PostPosted: Sat Aug 30, 2003 1:48 am    Post subject: Reply with quote

I had a very similar problem, X crashed, and when I rebooted I couldn't run X because of a lib problem, and got the python error of missing libstdc++.so.5
What I found out, was that ldconfig didn't do anything to solve my problem, as my ld.so.conf file was destroyed.
I grabbed a stage3 ld.so.conf off of a stage 3 tarball and placed it into /etc.
ran this script:
Code:
#!/bin/tcsh
foreach DIR (`cat /etc/ld.so.conf | grep -v "#"`)
foreach OLDNAME (`find $DIR -name "*.so*" -print`)
setenv NEWNAME /lib/`echo $OLDNAME | awk -F/ '{print $NF}'`
echo ln -s $OLDNAME $NEWNAME
ln -s $OLDNAME $NEWNAME
end
end
ldconfig

that I got from a bug report on a similar topic, which fixes the lost libstdc++.so.5 problem, but not all the missing libs problem. Then re-emerged gcc, and problem fixed itself.

When X crashed, I was emerging icewm and trying to set up my handspring with evolution 1.4, if that means anything to anyone who experiences this problem.

-Andrew

EDIT: I am unsure what my ld.so.conf file was before the crash, but now it looks like this:
Code:
$ cat /etc/ld.so.conf
# ld.so.conf autogenerated by env-update; make all changes to
# contents of /etc/env.d directory
/usr/local/lib
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1
/usr/lib/opengl/nvidia/lib
/usr/lib/mozilla
/usr/X11R6/lib
/opt/blackdown-jdk-1.4.1/jre/lib/i386/
/opt/blackdown-jdk-1.4.1/jre/lib/i386/native_threads/
/usr/qt/3/lib
/usr/kde/3.1/lib
/usr/qt/2/lib
/usr/games/lib
/usr/lib/fltk-1.1
/opt/insight/lib
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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