FS#814 - gcc-compat problem

Attached to Project: Arch Linux
Opened by Lukas Sabota (punkrockguy318) - Thursday, 22 April 2004, 02:13 GMT
Last edited by Judd Vinet (judd) - Thursday, 22 April 2004, 16:15 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity High
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Many programs look for libstdc++.so.5 in /lib, instead of /usr/lib. Making a symbolic link from /lib/libstdc++.so.5 to /usr/lib/libstdc++.so.5 will solve some problems (like in mozilla-firefox and other programs)
This task depends upon

Closed by  Judd Vinet (judd)
Friday, 23 April 2004, 17:01 GMT
Reason for closing:  Not a bug
Comment by Judd Vinet (judd) - Thursday, 22 April 2004, 16:29 GMT
The location of a library shouldn't matter, as long as it's in ld.so.cache correctly.

[jvinet@mars jvinet]$ ldconfig -p | grep libstdc++
libstdc++.so.6 (libc6) => /usr/lib/libstdc++.so.6
libstdc++.so.5 (libc6) => /usr/lib/libstdc++.so.5
libstdc++.so (libc6) => /usr/lib/libstdc++.so

If you have the latest gcc and gcc-compat packages installed, you should have output like mine above. If not, try removing any libstdc++ links from /lib and re-running ldconfig.
Comment by Lukas Sabota (punkrockguy318) - Thursday, 22 April 2004, 21:52 GMT
[root@arch lib]# ldconfig -p | grep libstdc++
libstdc++.so.6 (libc6) => /usr/lib/libstdc++.so.6
libstdc++.so (libc6) => /usr/lib/libstdc++.so

I removed all symlinks and that's my output. Still problems.
Comment by Lukas Sabota (punkrockguy318) - Thursday, 22 April 2004, 21:54 GMT
When I add the symlink (/lib/libstdc++.so.5 -> /usr/lib/libstdc++.so.5) everything works, and I get the same output as you.
Comment by Judd Vinet (judd) - Friday, 23 April 2004, 00:20 GMT
I won't add that (redundant) symlink unless I can reproduce the error myself.

What does this display for you?

[jvinet@mars jvinet]$ ldd /opt/mozilla-firefox/lib/mozilla-1.6/firefox-bin | grep libstdc
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x404f8000)
Comment by Judd Vinet (judd) - Friday, 23 April 2004, 00:21 GMT
And what error does firefox spit out when you try to run it?
Comment by Lukas Sabota (punkrockguy318) - Friday, 23 April 2004, 11:12 GMT
Funny.. My symlink dissappeared and everything works now... Sorry for an invalid bug report!
Comment by Judd Vinet (judd) - Friday, 23 April 2004, 17:01 GMT
No worries, glad it fixed itself! :)

On a side note, the gcc-compat package will likely be disappearing soon. I'll include the old libstdc++ libs in the gcc package itself.

Loading...