Mailing List Archive

libstdc++.so.6
I just upgraded from gcc-3.4.1-r2 to 3.4.2-r1 tonight. After the upgrade, a lot
of programs started complaining about a missing libstdc++.so.6. I reemerged
gcc-3.4.1-r2 from a binary, and everything went back to normal. Has this
happened to anyone else? Will this happen if I upgrade it again?

--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548


--
gentoo-user@gentoo.org mailing list
Re: libstdc++.so.6 [ In reply to ]
Andrew Gaffney wrote:
> I just upgraded from gcc-3.4.1-r2 to 3.4.2-r1 tonight.

> lot of programs started complaining about a missing libstdc++.so.6.

> Has this happened to anyone else?

No.


> Will this happen if I upgrade it again?

It should not.

$ qpkg -I -v -l gcc | grep stdc++.so.6
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/libstdc++.so.6 -> libstdc++.so.6.0.2
1095049467
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/libstdc++.so -> libstdc++.so.6.0.2
1095049467
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/libstdc++.so.6.0.2
80ab6ea959bb14a00a83a048c585e339 1095049465


Could you please try again and in case programs complain about the missing
libstdc++.so.6, run ldconfig?

Regards,
Norberto

--
gentoo-user@gentoo.org mailing list
Re: libstdc++.so.6 [ In reply to ]
Andrew Gaffney wrote:
> I just upgraded from gcc-3.4.1-r2 to 3.4.2-r1 tonight. After the upgrade, a lot
> of programs started complaining about a missing libstdc++.so.6. I reemerged
> gcc-3.4.1-r2 from a binary, and everything went back to normal. Has this
> happened to anyone else? Will this happen if I upgrade it again?

Strange...

[08:02:44 alexander@server:~] $ ls -la /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/
insgesamt 3080
drwxr-xr-x 4 root root 4096 13. Sep 14:08 .
drwxr-xr-x 4 root root 30 13. Sep 14:10 ..
-rw-r--r-- 1 root root 1656 13. Sep 14:08 crtbegin.o
-rw-r--r-- 1 root root 2172 13. Sep 14:08 crtbeginS.o
-rw-r--r-- 1 root root 2056 13. Sep 14:08 crtbeginT.o
-rw-r--r-- 1 root root 1328 13. Sep 14:08 crtend.o
-rw-r--r-- 1 root root 1524 13. Sep 14:08 crtendS.o
drwxr-xr-x 5 root root 4096 13. Sep 14:08 include
drwxr-xr-x 3 root root 60 13. Sep 14:08 install-tools
-rw-r--r-- 1 root root 261250 13. Sep 14:08 libgcc.a
-rw-r--r-- 1 root root 96350 13. Sep 14:08 libgcc_eh.a
-rw-r--r-- 1 root root 37084 13. Sep 14:08 libgcov.a
-rw-r--r-- 1 root root 1712186 13. Sep 14:08 libstdc++.a
-rwxr-xr-x 1 root root 1197 13. Sep 14:08 libstdc++.la
lrwxrwxrwx 1 root root 18 13. Sep 14:08 libstdc++.so -> libstdc++.so.6.0.2
lrwxrwxrwx 1 root root 18 13. Sep 14:08 libstdc++.so.6 -> libstdc++.so.6.0.2
-rwxr-xr-x 1 root root 834572 13. Sep 14:08 libstdc++.so.6.0.2
-rw-r--r-- 1 root root 151896 13. Sep 14:08 libsupc++.a
-rwxr-xr-x 1 root root 1105 13. Sep 14:08 libsupc++.la
-rw-r--r-- 1 root root 4599 13. Sep 14:08 specs

Alexander Skwar
--
panic("aha1740.c"); /* Goodbye */
2.2.16 /usr/src/linux/drivers/scsi/aha1740.c
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯


--
gentoo-user@gentoo.org mailing list
Re: libstdc++.so.6 [ In reply to ]
Norberto Bensa wrote:
> Andrew Gaffney wrote:
>
>>I just upgraded from gcc-3.4.1-r2 to 3.4.2-r1 tonight.
>
>>lot of programs started complaining about a missing libstdc++.so.6.
>
>>Has this happened to anyone else?
>
> No.
>
>>Will this happen if I upgrade it again?
>
> It should not.
>
> $ qpkg -I -v -l gcc | grep stdc++.so.6
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/libstdc++.so.6 -> libstdc++.so.6.0.2
> 1095049467
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/libstdc++.so -> libstdc++.so.6.0.2
> 1095049467
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/libstdc++.so.6.0.2
> 80ab6ea959bb14a00a83a048c585e339 1095049465
>
> Could you please try again and in case programs complain about the missing
> libstdc++.so.6, run ldconfig?

I upgraded it again and ran into the same problem. The file does exist. I ran
ldconfig, then env-update, then 'source /etc/profile' and I still get the same
error when trying to run a program from the terminal I did all that in.

agaffney@kagome ~ $ ls -la /usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2/
total 3104
drwxr-xr-x 4 root root 4096 Sep 14 01:36 .
drwxr-xr-x 5 root root 4096 Sep 14 01:37 ..
-rw-r--r-- 1 root root 1656 Sep 14 01:36 crtbegin.o
-rw-r--r-- 1 root root 2172 Sep 14 01:36 crtbeginS.o
-rw-r--r-- 1 root root 2056 Sep 14 01:36 crtbeginT.o
-rw-r--r-- 1 root root 1328 Sep 14 01:36 crtend.o
-rw-r--r-- 1 root root 1524 Sep 14 01:36 crtendS.o
drwxr-xr-x 6 root root 4096 Sep 14 01:36 include
drwxr-xr-x 3 root root 4096 Sep 14 01:36 install-tools
-rw-r--r-- 1 root root 261250 Sep 14 01:36 libgcc.a
-rw-r--r-- 1 root root 96350 Sep 14 01:36 libgcc_eh.a
-rw-r--r-- 1 root root 37084 Sep 14 01:36 libgcov.a
-rw-r--r-- 1 root root 1712214 Sep 14 01:36 libstdc++.a
-rwxr-xr-x 1 root root 1197 Sep 14 01:36 libstdc++.la
lrwxrwxrwx 1 root root 18 Sep 14 01:36 libstdc++.so -> libstdc++.so.6.0.2
lrwxrwxrwx 1 root root 18 Sep 14 01:36 libstdc++.so.6 -> libstdc++.so.6.0.2
-rwxr-xr-x 1 root root 831276 Sep 14 01:36 libstdc++.so.6.0.2
-rw-r--r-- 1 root root 151896 Sep 14 01:36 libsupc++.a
-rwxr-xr-x 1 root root 1105 Sep 14 01:36 libsupc++.la
-rw-r--r-- 1 root root 4599 Sep 14 01:36 specs
agaffney@kagome ~ $ su -
Password:
kagome ~ # ldconfig
kagome ~ # env-update
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies...
kagome ~ # exit
logout
agaffney@kagome ~ $ source /etc/profile
agaffney@kagome ~ $ /usr/lib/MozillaFirefox/firefox-bin
/usr/lib/MozillaFirefox/firefox-bin: error while loading shared libraries:
libstdc++.so.6: cannot open shared object file: No such file or directory

WTF?

--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548


--
gentoo-user@gentoo.org mailing list
Re: libstdc++.so.6 [ In reply to ]
This happens regularly on multiple systems ive had that have gone
through many gcc versions and is a real pain - sometimes its difficult
to track down and fix.

re-emerge gcc and use "gcc-config -l" and see what profiles you have
available, then reset the profile. source /etc/profile before trying
again and see what happens

If this fails, try "/sbin/fix_libtool_files.sh" and tracking down fixed
paths in the libraries using ldd. This seems the most common cause, and
while the ebuilds should do this, I think that some in the past missed
it, and at some point it causes problems like this.

Have fun
BillK




On Tue, 2004-09-14 at 13:30, Andrew Gaffney wrote:
> I just upgraded from gcc-3.4.1-r2 to 3.4.2-r1 tonight. After the upgrade, a lot
> of programs started complaining about a missing libstdc++.so.6. I reemerged
> gcc-3.4.1-r2 from a binary, and everything went back to normal. Has this
> happened to anyone else? Will this happen if I upgrade it again?


--
gentoo-user@gentoo.org mailing list
Re: libstdc++.so.6 [ In reply to ]
Andrew Gaffney wrote:
> WTF?

Hmm... Try "gcc-config -l" and post results.

If that doesn't work (some file not found) go to /etc/env.d/gcc and remove
those profiles that are not in use anymore.

--
gentoo-user@gentoo.org mailing list
Re: libstdc++.so.6 [ In reply to ]
Norberto Bensa wrote:
> Andrew Gaffney wrote:
>
>>WTF?
>
>
> Hmm... Try "gcc-config -l" and post results.
>
> If that doesn't work (some file not found) go to /etc/env.d/gcc and remove
> those profiles that are not in use anymore.

I unmerged gcc-3.3.4 because I don't use it. After this, gcc-config still
worked. I upgraded to gcc-3.4.2-r1 again and now gcc-config doesn't work. The
same thing happened last night when I tried (before removing 3.3.4). WTF?

kagome gcc # pwd
/etc/env.d/gcc
kagome gcc # gcc-config -l
* /usr/bin/gcc-config: Profile does not exist!
kagome gcc # ls
config i686-pc-linux-gnu-3.4.2
kagome gcc # ls -l
total 8
-rw-r--r-- 1 root root 32 Aug 24 14:19 config
-rw-r--r-- 1 root root 294 Sep 14 18:08 i686-pc-linux-gnu-3.4.2
kagome gcc # cat *
CURRENT=i686-pc-linux-gnu-3.4.1
PATH="/usr/i686-pc-linux-gnu/gcc-bin/3.4"
ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/3.4"
LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2"
MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man"
INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info"
STDCXX_INCDIR="g++-v3"
CC="gcc"
CXX="g++"

--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548


--
gentoo-user@gentoo.org mailing list
Re: libstdc++.so.6 [ In reply to ]
Andrew Gaffney wrote:
> Norberto Bensa wrote:
>
>> Andrew Gaffney wrote:
>>
>>> WTF?
>>
>>
>>
>> Hmm... Try "gcc-config -l" and post results.
>>
>> If that doesn't work (some file not found) go to /etc/env.d/gcc and
>> remove those profiles that are not in use anymore.
>
>
> I unmerged gcc-3.3.4 because I don't use it. After this, gcc-config
> still worked. I upgraded to gcc-3.4.2-r1 again and now gcc-config
> doesn't work. The same thing happened last night when I tried (before
> removing 3.3.4). WTF?
>
> kagome gcc # pwd
> /etc/env.d/gcc
> kagome gcc # gcc-config -l
> * /usr/bin/gcc-config: Profile does not exist!
> kagome gcc # ls
> config i686-pc-linux-gnu-3.4.2
> kagome gcc # ls -l
> total 8
> -rw-r--r-- 1 root root 32 Aug 24 14:19 config
> -rw-r--r-- 1 root root 294 Sep 14 18:08 i686-pc-linux-gnu-3.4.2
> kagome gcc # cat *
> CURRENT=i686-pc-linux-gnu-3.4.1
> PATH="/usr/i686-pc-linux-gnu/gcc-bin/3.4"
> ROOTPATH="/usr/i686-pc-linux-gnu/gcc-bin/3.4"
> LDPATH="/usr/lib/gcc-lib/i686-pc-linux-gnu/3.4.2"
> MANPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man"
> INFOPATH="/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info"
> STDCXX_INCDIR="g++-v3"
> CC="gcc"
> CXX="g++"

I noticed after sending that the profile is still point to the now-uninstalled
gcc-3.4.1. I changed that and ran ldconfig and still got the errors. I ran
'ldconfig -v' and saw it was still looking the the old gcc profile dirs so I
modified /etc/ld.so.conf and ran ldconfig again. Everything now works. Any idea
what happened?

--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548


--
gentoo-user@gentoo.org mailing list