Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95050 - upgrade of gcc 3.3.5-r1 to 3.3.6 removed libstdc++.so.5, breaking at least including python and groff
Summary: upgrade of gcc 3.3.5-r1 to 3.3.6 removed libstdc++.so.5, breaking at least i...
Status: RESOLVED DUPLICATE of bug 94959
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-04 12:35 UTC by Sam Kahl
Modified: 2005-06-05 11:37 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 Sam Kahl 2005-06-04 12:35:26 UTC
I think the summary pretty much describes the problem.

Reproducible: Didn't try
Steps to Reproduce:
1.
2.
3.

Actual Results:  
libstdc++.so.5 exists nowhere, so groff and python (and thus emerge), and
anything else built against it is broken.  Had to workaround by manually
rebuilding python against libstdc++.so.6 and re-merging the rest.

Expected Results:  
If gcc-3.3.5-r1 is the last version of gcc that has libstdc++.so.5, it should
have extra logic upon its unmerging: the ebuild should refuse to unmerge on the
grounds that all the programs built to link against libstdc++.so.5 still do so,
and print a diagnostic telling the user which programs these are so the user may
remerge them to link to the new version of libstdc++. At that point, a depclean
should suffice to get rid of the old gcc.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-06-04 12:54:03 UTC
Ouch! Why is libstdc++-v3 missing in PDEPEND then? 
Comment 2 Francesco R. (RETIRED) gentoo-dev 2005-06-04 13:58:59 UTC
same for libstdc++.so.6 upgrading to 3.4.4 on ~x86
Comment 3 Peter S. Mazinger 2005-06-04 14:28:47 UTC
The actual problem is, that some time ago python got removed nocxx from ebuild
thus depending on the installed c++ library. This dependency is no good for
recovery and the user has no chance to recover due to the fact that emerge is 
nuked. My proposal is generally to keep emerge system at least nocxx where
possible (it is no problem w/ db/ncurses, where only separate libs are created
 for cxx, not like python)
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-06-04 14:40:27 UTC
(In reply to comment #2)
> same for libstdc++.so.6 upgrading to 3.4.4 on ~x86

Not possible. Your problem sound more like Bug 94959. 
Comment 5 Mark Knecht 2005-06-04 18:03:43 UTC
Hi,
   Absolutely brand new system today. Built it this afternoon from 2005.0. After
getting the system up and running, I created my user account, I did an emerge
sync and then kicked off an emerge --update --deep --newuse system. Now it seems
to be completely dead:

localhost root # emerge -pv system
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot
open shared object file: No such file or directory
localhost root # emerge sync
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot
open shared object file: No such file or directory
localhost root # emerge info
/usr/bin/python: error while loading shared libraries: libstdc++.so.5: cannot
open shared object file: No such file or directory
localhost root #

Is there any known fix for this? I don't mind starting over but I bet I'll hit
the same problem again without some guidance on what emerge really caused this.

Thanks all.
Comment 6 Mark Knecht 2005-06-04 19:28:37 UTC
OK, I edited my /etc/ld.so.conf file to look like this:

localhost root # 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/i686-pc-linux-gnu/lib
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130
localhost root #

Then I ran ldconfig and after that and env-update and things seem to be working.
I don't know whether that last line was supposed to be added and wasn't, or
whether I should take it out later. Anyway, this seems to work for me.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-06-04 23:44:55 UTC
(In reply to comment #6)
> OK, I edited my /etc/ld.so.conf file to look like this:
> Then I ran ldconfig and after that and env-update and things seem to be working.

Guys, are you really MISSING libstdc++.so.5, or is it just out of path in
/etc/ld.so.conf? The latter problem is dupe of Bug 94959.
Comment 8 Mark Knecht 2005-06-05 10:53:32 UTC
Jakub,
   I thought that was clear from my response at 2005-06-04 19:28 PDT. The file
existed but it's path was not in ld.so.conf. However more than that was required
to get running again. I also had to figure out about gcc-config stuff. I'm not a
programmer or system administrator so it's incorrect in my case to think that
all Gentoo users know about this stuff. I read a couple of posts about this sort
of problem last evening on Gentoo-user and pieced together enough info to get my
machine limping again but now I have hand edited files that I've never touched
before so I'm concerned that it will break again.

   Also I'm not doing updates on 5 Gentoo machines for our family until I get
some confidence again in portage. This really bothered me. I do not understand
how htis can happen on stable machine. I thought this gets worked out on ~x86
first?!?

- Mark
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2005-06-05 11:37:36 UTC
OK, marking this one as duplicate.

*** This bug has been marked as a duplicate of 94959 ***