Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

libstdc++.so.5 not found?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
15 posts • Page 1 of 1
Author
Message
blimpie151
n00b
n00b
Posts: 9
Joined: Mon Jun 13, 2005 3:51 pm

libstdc++.so.5 not found?

  • Quote

Post by blimpie151 » Mon Jun 20, 2005 3:04 pm

Ok, first, I have searched the forums, I have done the things listed in the posts. I'm still stumped.

I am running gentoo amd64 2005.0, with gcc 3.4.3. I have NOT upgraded my gcc, so its not just an 'upgrading' problem like many others have. I did a stage 3 install. I am trying to install PowerPanel-Plus-1.0.3 for our CyberPower UPS systems, when I intall, i get './upssrv: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory.

Ok, here are a few of the things i've tried:
gcc-config 1
fix_libtool_files.sh 3.4.3

I have tried putting symbolic links named 'libstdc++.so.5'in the /lib64, /lib32, /usr/lib32, /usr/lib64, /usr/local/lib64, /usr/local/lib32, and various other places linking to /usr/lib64/gcc/x86_64-pc-linux-gnu/3.4.3/32/libstdc++.so.6, and /usr/lib64/libstdc++-v3/libstdc++.so.5.0.6, none of which have worked. I have reinstalled many times, no such luck.

Anyone got more links for me to try?
So, far, i have done the things listed in these posts:
http://forums.gentoo.org/viewtopic-t-345446.html
http://forums.gentoo.org/viewtopic-t-35 ... bstdc.html
http://forums.gentoo.org/viewtopic-t-34 ... bstdc.html
http://forums.gentoo.org/viewtopic-t-34 ... rt-25.html
http://forums.gentoo.org/viewtopic-t-344998.html

None of which have worked for me.....

Thanks in advance,
Blimpie
Top
rusty
Apprentice
Apprentice
User avatar
Posts: 181
Joined: Fri May 07, 2004 3:58 am
Location: St.Louis

  • Quote

Post by rusty » Mon Jun 20, 2005 7:01 pm

did you try revdep-rebuild?
Top
Carlo
Developer
Developer
User avatar
Posts: 3356
Joined: Mon Aug 12, 2002 10:57 pm

  • Quote

Post by Carlo » Mon Jun 20, 2005 7:39 pm

libstdc++.so.5 is a gcc 3.3 library. The C++ ABI of gcc 3.3 and 3.4 are not compatible.
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Top
blimpie151
n00b
n00b
Posts: 9
Joined: Mon Jun 13, 2005 3:51 pm

  • Quote

Post by blimpie151 » Mon Jun 20, 2005 7:49 pm

Carlo wrote:libstdc++.so.5 is a gcc 3.3 library. The C++ ABI of gcc 3.3 and 3.4 are not compatible.
Ok, so what can I do, do I need to install a legacy gcc just to run this application, or is there some other solution


Thanks again in advance,
Blimpie
Top
Momo_CCCP
Tux's lil' helper
Tux's lil' helper
Posts: 141
Joined: Tue Oct 26, 2004 8:09 am

  • Quote

Post by Momo_CCCP » Mon Jun 20, 2005 7:51 pm

* sys-libs/lib-compat
Latest version available: 1.4
Latest version installed: 1.4
Size of downloaded files: 3,090 kB
Homepage: http://www.gentoo.org/
Description: Compatibility C++ and libc5 and libc6 libraries for programs new and old
License: GPL-2

I think this is what you are looking for.
Momo_CCCP
Top
blimpie151
n00b
n00b
Posts: 9
Joined: Mon Jun 13, 2005 3:51 pm

  • Quote

Post by blimpie151 » Mon Jun 20, 2005 8:49 pm

Well, I did an 'emerge lib-compat' and it did install a few things, but i still cannot find the libstdc++.so.5 file.... Is there something else I need to do after emerging this?
Top
Momo_CCCP
Tux's lil' helper
Tux's lil' helper
Posts: 141
Joined: Tue Oct 26, 2004 8:09 am

  • Quote

Post by Momo_CCCP » Mon Jun 20, 2005 9:03 pm

blimpie151 wrote:Well, I did an 'emerge lib-compat' and it did install a few things, but i still cannot find the libstdc++.so.5 file.... Is there something else I need to do after emerging this?
Well it should provide the said file I suppose. I did for me when I installed a binary-only game that wouldn't run on my libc (symlinking would lead to a segfault). This somehow fixed my problem. Maybe someone more experimented could help you ?
Momo_CCCP
Top
Rafal_Glazar
Apprentice
Apprentice
Posts: 167
Joined: Sat Jul 10, 2004 2:31 pm
Location: Rzeszow, Poland

  • Quote

Post by Rafal_Glazar » Mon Jun 20, 2005 11:09 pm

You need to emerge libstdc++-v3 package.
"All I ask for is choice. I want to be able to go into any store you can buy a computer in and say, "I want ______ OS on this computer." Is that too much to ask? We can't always be looking out Windows. We also need to get work done." - Bill Olson
Top
blimpie151
n00b
n00b
Posts: 9
Joined: Mon Jun 13, 2005 3:51 pm

  • Quote

Post by blimpie151 » Tue Jun 21, 2005 3:59 pm

Ok, I actually already had a 'libstdc++-v3' folder located in /usr/lib
But, I did as you said, and emerged it anyway, just for kicks. It went out and grabbed gcc v3.3.4 and installed it, and created a symbolic link from /usr/lib64/libstdc++-v3/libstdc++.so.5.0.6 to /lib/libstdc++.so.5
Still nothing. HOWEVER, I did create a symbolic link from /usr/lib64/gcc/x86_64-pc-linux-gnu/3.4.3/32/libstdc++.so.6.0.3 to /lib/libstdc++.so.5 and heres what i get now when i try to install and run the PowerPanel program:
"./upssrv: /lib/libstdc++.so.5: version 'CXXABI_1.2' not found (required by ./upssrv)"
"./upssrv: /lib/libstdc++.so.5: version 'GLIBCPP_3.2' not found (required by ./upssrv)"

There is no documentation on this program saying what version of gcc it requires, but I'm now assuming from this error that i need gcc v3.2 instead of gcc v3.4.3?

How would i go about installing a legacy gcc, on a 64bit system, and still be able to use the 64bit gcc?
Top
blimpie151
n00b
n00b
Posts: 9
Joined: Mon Jun 13, 2005 3:51 pm

  • Quote

Post by blimpie151 » Wed Jun 22, 2005 8:01 pm

No one else has any input on what this could be?
Top
elfo
n00b
n00b
Posts: 12
Joined: Mon Jun 30, 2003 3:12 pm

kick out your symlink!

  • Quote

Post by elfo » Thu Jun 23, 2005 3:08 pm

I'm having same problems....


what i did:

1. to have a python that RUNS, and so emerge:

Code: Select all

cd /usr/lib
ln -sf libstdc++.so.2.9.0 libstdc++.so.5
2. install the lib:

Code: Select all

emerge libstdc++-v3
3. kick out the symlink!

Code: Select all

cd /usr/lib
rm libstdc++.so.5
(because this lib is found in the libstdc++-v3 directory!)

4. Now i'm having problems cause i kicked out the old gcc-3.3.4 (and there is no more ebuild for it).. i'm trying with the lib-compat trick.
Top
delhomme
n00b
n00b
User avatar
Posts: 3
Joined: Tue Aug 02, 2005 12:30 pm
Location: germany

Having the same problem, did anybody find a solution?

  • Quote

Post by delhomme » Tue Aug 02, 2005 1:51 pm

I am running exactly the same setup (amd64 and gcc 3.4.3).

One of the program I want to run needs libstdc++.so.5.

Therefore I emerged :)
  1. lib-compat
  2. libstdc++-v3
But the program still does not work :( . If I use "ldd" on the "troubleshooting" library I got:

Code: Select all

>ldd bin/server_i486.so
        linux-gate.so.1 =>  (0xffffe000)
        libdl.so.2 => /lib32/libdl.so.2 (0x5614b000)        
        libstdc++.so.5 => not found
        libm.so.6 => /lib32/libm.so.6 (0x56193000)
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/32/libgcc_s.so.1 (0x561b6000)
        libc.so.6 => /lib32/libc.so.6 (0x561c0000)
        /lib/ld-linux.so.2 (0x56555000)
Obviously my problem is the libstdc++.so.5 => not found.
As said previously in the post, I can create as many symlink to the libstdc++.so.5 file from any of the dirs listed in the /etc/ld.so.conf, it remains not found.
And anyway libstdc++.so.5 is properly installed in the /usr/lib64/libstdc++-v3/ dir which is present in the /etc/ld.so.conf file...

Then, if I create a symlink from /usr/lib64/gcc/x86_64-pc-linux-gnu/3.4.3/32/libstdc++.so to /lib/libstdc++.so.5 then my "ldd" check returns :

Code: Select all

ldd bin/server_i486.so
bin/server_i486.so: /lib/libstdc++.so.5: version `GLIBCPP_3.2' not found (required by bin/server_i486.so)
        linux-gate.so.1 =>  (0xffffe000)
        libdl.so.2 => /lib32/libdl.so.2 (0x5614b000)
        tier0_i486.so => /lib/tier0_i486.so (0x5614f000)
        vstdlib_i486.so => /lib/vstdlib_i486.so (0x5617f000)
        libstdc++.so.5 => /lib/libstdc++.so.5 (0x56193000)
        libm.so.6 => /lib32/libm.so.6 (0x56261000)
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/32/libgcc_s.so.1 (0x56284000)
        libc.so.6 => /lib32/libc.so.6 (0x5628e000)
        /lib/ld-linux.so.2 (0x56555000)
Where i got libstdc++.so.5 => /lib/libstdc++.so.5 (0x56193000) but version `GLIBCPP_3.2' not found...

That was obvious that something like this would happend :roll: ... no surprise, but
  1. Does that mean that somehow gcc3.4.3 is "discarding" libstdc++.so.5 because it has libstdc++.so.6 ??
  2. Does anybody has an idea on how to resolve this conflict (downgrading to gcc 3.2 is not a solution :( )?
Top
delhomme
n00b
n00b
User avatar
Posts: 3
Joined: Tue Aug 02, 2005 12:30 pm
Location: germany

  • Quote

Post by delhomme » Wed Aug 03, 2005 5:45 pm

Yipee! Fixed it :D

PROBLEM
The problem was that my server is an amd64.
Therefore, I could not get either the libstdc++-v3 or the lib-compat package working properly. They were produced for "older" architecture.... i.e. : x*86

SOLUTION
Install the emul-linux-x86-compat package which emulate such an older architecture :-) and create the proper link

Code: Select all

emerge emul-linux-x86-compat
ln -s  /emul/linux/x86/usr/lib/libstdc++.so.5 /lib/libstdc++.so.5
And now my stuff is working!! :lol:
Top
merced
n00b
n00b
Posts: 24
Joined: Sun Nov 23, 2003 6:53 pm

Alternate fix

  • Quote

Post by merced » Fri Nov 18, 2005 4:33 pm

After reading all of the posts that this post alluded to, I was still unable to solve my issue with libstdc++.so.5 not being found.

I am trying to use a vendor provided software package that the company supports on RedHat only. :x

But that got me thinking...so I asked the company what version of RedHat they had compiled their binaries on. They said it was based on Fedora Core 3.

I then went and got the rpm from RedHat:

Code: Select all

http://download.fedora.redhat.com/pub/fedora/linux/core/3/x86_64/os/Fedora/RPMS/compat-libstdc++-8-3.3.4.2.x86_64.rpm
A quick rpm2targz of the file, and then tar -tzf to see where it wanted to be put. It wants /usr/lib64.

I then proceeded to untar it to /usr/lib64, and now my program works! :D

I'm not sure of the exact differences of the two files, the one from RedHat in /usr/lib64 and the one residing in /emul/linux/x86/usr/lib except that it makes everything work as it should.

I hope this helps someone else experiencing this issue.
Merced
Top
nellson
n00b
n00b
Posts: 66
Joined: Thu Jun 24, 2004 3:49 pm

Ebuild for PowerPanel Plus?

  • Quote

Post by nellson » Sun Dec 17, 2006 4:13 am

I saw this as the only post refering to PowerPanel Plus.

Is anyone aware of an ebuild in progress? I was thinking of trying it for my first shot.. looked like a simple script to stuff into the skel.ebuild...

Nick
Top
Post Reply

15 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic