Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39803 - emerge gcc (gcc 3.3.2) installed GCC but failed to update library paths in ld.so.conf
Summary: emerge gcc (gcc 3.3.2) installed GCC but failed to update library paths in ld...
Status: RESOLVED DUPLICATE of bug 40694
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-29 14:55 UTC by Jonathan Jaloszynski
Modified: 2005-07-17 13:06 UTC (History)
2 users (show)

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 Jonathan Jaloszynski 2004-01-29 14:55:54 UTC
I tried to update GCC to the latest version (3.3.2) from 3.2(.2?).  So I did an "emerge gcc".  After this completed, several things stopped working, notably python, KDE, and the gentoo tools that require python (emerge, /etc-update).  Trying to run python produced a message stating that libstdc++.so.5 could not be found, even though it was located in /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2.  I looked at /etc/ld.so.conf and it had a reference to /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.1, even though I had not had 3.3.1 previously installed on my machine.  I was unable to find any references to 3.3.1 in /etc/env.d, they were all to 3.3.2.  ld.so.conf states that it is automatically updated by etc-update, but this would not run because it uses python.  

To resolve the problem, I edited /etc/ld.so.conf and added the correct gcc lib directory (/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.2) and ran ldconfig.  After this python was able to find the necessary library and worked fine, so I ran etc-update, which also worked fine (and removed the references to the old library directories).  

This sounds a lot like bug 15288, but that involved updating to a previous version of gcc (3.2) and was over a year old (and resolved).  



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



Expected Results:  
 

X was starting on bootup then the system was falling back to a command prompt, as I had KDM 
configured as my display manager.  "startx" would bring up X with a non-KDE window manager. 
python, emerge, etc-update, gcc-config would not work.
Comment 1 David D. Huff Jr. 2004-02-07 08:59:37 UTC
This same problem happened to me on all my frontline servers. The /etc/ld.so.conf file had the old libstc* path before the new one so when env-update/ldconfig ran the old information was used and is incorrect. 

This bug currently could hit all systems that are setup to do daily updates via "emerge -DU world"

My solution was to remove the depricated path from /etc/ld.so.conf and run ldconfig.
Comment 2 Helmar Wieland 2004-02-07 09:29:35 UTC
Same here, but on my box simply running ldconfig solved it, since the (in /etc/ld.so.conf) still existing path /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3 was no longer existant (thanks to autoclean).

I think the problem is that env-update sorts the lines of /etc/ld.so.conf alphabetically (ending up with the old version in front of the new one), since in /etc/env.d/05gcc LDPATH has both paths (/foo/3.3.2:/foo/3.2.3) in the right order.
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-08 01:52:54 UTC

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