still libstdc++ problem


advanced search

Questions and Answers : Unix/Linux : still libstdc++ problem

Reply to this thread
Subscribe to this thread
Sort
AuthorMessage
kurt.donkers
private message
Joined: Mar 3, 2006
Posts: 2
ID: 604
Credit: 42,449
RAC: 8
Message 1625 - Posted 10 May 2007 12:30:15 UTC

Hi,

I noticed a few threads about some incorrect shared libraries for this project.
The problem I'm running into now, is that all my workunits fail because it tries to find libstdc++.so.5, while I'm using libstdc++.so.6

I just hooked up to the project via this machine today, so I got the latest version.

I'm running Linux Fedora Core 5.

Running ldd gives:
bash-3.1$ ldd classical_5.46_i686-pc-linux-gnu.exe
linux-gate.so.1 => (0x002a3000)
libglut.so.3 => /usr/lib/libglut.so.3 (0x00967000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0x05690000)
libGL.so.1 => /usr/lib/libGL.so.1 (0x0562d000)
libXmu.so.6 => /usr/lib/libXmu.so.6 (0x00da6000)
libXt.so.6 => /usr/lib/libXt.so.6 (0x0072e000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00b48000)
libXi.so.6 => /usr/lib/libXi.so.6 (0x00ce7000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x00df5000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x00712000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00a00000)
libstdc++.so.5 => not found
libm.so.6 => /lib/libm.so.6 (0x00925000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00de7000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00c67000)
libc.so.6 => /lib/libc.so.6 (0x007f0000)
libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x054fd000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x05b5c000)
libdl.so.2 => /lib/libdl.so.2 (0x0094c000)
libdrm.so.2 => /usr/lib/libdrm.so.2 (0x05617000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x009fb000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00aff000)
/lib/ld-linux.so.2 (0x007d3000)

Any help is appreciated.

Thanks,

Kurt
____________

Ageless User profile image
Forum moderator
Avatar
private message
Joined: Feb 15, 2006
Posts: 88
ID: 183
Credit: 27,416
RAC: 79
Message 1627 - Posted 11 May 2007 17:00:31 UTC

Just so you don't think anyone ever comes here in this dust infested corner of the forums... I asked Mark to come take a look. My knowledge of Linux and Leiden goes as far as that. :-)
____________
Jord

Dotsch
private message
Joined: Jan 3, 2007
Posts: 21
ID: 2780
Credit: 221
RAC: 2
Message 1628 - Posted 11 May 2007 20:06:24 UTC

You could also intall a additional libstdc++.so.5 (libgcc package from/for gcc 3.3), or make an link from libstdc++.so.6 to libstdc++.so.5.
____________

m.somers User profile image
Forum moderator
Project administrator
Project developer
Project tester
Volunteer developer
Volunteer tester
Project scientist
Avatar
private message
Joined: Nov 14, 2005
Posts: 662
ID: 1
Credit: 1,417,572
RAC: 2
Message 1629 - Posted 12 May 2007 8:07:54 UTC

Like Dotch said, you could just symlink to the libstdc++.so.6 like "ln -s libstdc++.so.6 libstdc++.so.5" in the /lib directory. The reason why the client is compiled against stdc++.so.5 (because we used g++ 3.2) is because not all linux clients have the 'latest' (less than a year old I mean ;-) distro installed on servers...

m.


____________
M.F. Somers

kurt.donkers
private message
Joined: Mar 3, 2006
Posts: 2
ID: 604
Credit: 42,449
RAC: 8
Message 1658 - Posted 21 May 2007 8:42:39 UTC - in response to Message ID 1629.

Like Dotch said, you could just symlink to the libstdc++.so.6 like "ln -s libstdc++.so.6 libstdc++.so.5" in the /lib directory. The reason why the client is compiled against stdc++.so.5 (because we used g++ 3.2) is because not all linux clients have the 'latest' (less than a year old I mean ;-) distro installed on servers...

m.



Thanks for your time. Tried symlinking the new lib into an old one, as you proposed, then I got however a:
bash-3.1$ ./classical_5.46_i686-pc-linux-gnu.exe
./classical_5.46_i686-pc-linux-gnu.exe: /home/kd75324/lib/libstdc++.so.5: version `CXXABI_1.2' not found (required by ./classical_5.46_i686-pc-linux-gnu.exe)
./classical_5.46_i686-pc-linux-gnu.exe: /home/kd75324/lib/libstdc++.so.5: version `GLIBCPP_3.2' not found (required by ./classical_5.46_i686-pc-linux-gnu.exe)
bash-3.1$

Then I looked for a compat-libstdc++ of which some rpms existed. Installing this worked.

Thanks again for your time.

Kurt

____________

Skip Da Shu
Avatar
private message
Joined: Apr 29, 2007
Posts: 23
ID: 5991
Credit: 857,469
RAC: 56
Message 1938 - Posted 12 Nov 2007 0:22:55 UTC
Last modified: 12 Nov 2007 0:27:42 UTC

ditto on 64 bit and I'm a linux noob. Any chance somebody could provide me some sort of step by step to fix this in my fresh Ubuntu 7.10 install?

skip@crunch8s33:/var/lib/boinc-client/projects/boinc.gorlaeus.net$
sudo ldd classical_5.49_x86_64-pc-linux-gnu.exe

libglut.so.3 => /usr/lib/libglut.so.3 (0x00002ac0dda22000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00002ac0ddc66000)
libGL.so.1 => /usr/lib/libGL.so.1 (0x00002ac0ddeea000)
libXmu.so.6 => /usr/lib/libXmu.so.6 (0x00002ac0de08b000)
libXt.so.6 => /usr/lib/libXt.so.6 (0x00002ac0de2a5000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x00002ac0de509000)
libXi.so.6 => /usr/lib/libXi.so.6 (0x00002ac0de71a000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x00002ac0de924000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x00002ac0deb2c000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00002ac0ded48000)
libstdc++.so.5 => not found
libm.so.6 => /lib/libm.so.6 (0x00002ac0df05a000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00002ac0df2db000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00002ac0df4ea000)
libc.so.6 => /lib/libc.so.6 (0x00002ac0df705000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00002ac0dfa60000)
libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x00002ac0dfd6c000)
libnvidia-tls.so.1 => /usr/lib/tls/libnvidia-tls.so.1 (0x00002ac0e0550000)
libdl.so.2 => /lib/libdl.so.2 (0x00002ac0e0651000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00002ac0e0856000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00002ac0e0a58000)
/lib64/ld-linux-x86-64.so.2 (0x00002ac0dd804000)

Skip Da Shu
Avatar
private message
Joined: Apr 29, 2007
Posts: 23
ID: 5991
Credit: 857,469
RAC: 56
Message 1939 - Posted 12 Nov 2007 0:32:56 UTC - in response to Message ID 1629.

Like Dotch said, you could just symlink to the libstdc++.so.6 like "ln -s libstdc++.so.6 libstdc++.so.5" in the /lib directory. The reason why the client is compiled against stdc++.so.5 (because we used g++ 3.2) is because not all linux clients have the 'latest' (less than a year old I mean ;-) distro installed on servers...

m.



6 months later... is this still true? Is this why ya'll are still using the v5 std c++ libs?

Skip Da Shu
Avatar
private message
Joined: Apr 29, 2007
Posts: 23
ID: 5991
Credit: 857,469
RAC: 56
Message 1950 - Posted 24 Nov 2007 0:05:56 UTC

From QMC forums post:

For those of you who are running Ubuntu, Kubuntu or Xubuntu Gutsy (v7.10) from a fresh install (not upgrade) you will get this error on both QMC and Lieden apps. Gutsy installs v6 of these libs.

To be quite frank, I'm not up to these guys speed in Linux and have next to no x86 programming background so while they described the problem and told us what the solution was, implementing the solution was over my head.

I got lucky and found somebody with essentially the same problem for another app and pretty much followed those directions and resolved this.

My noob level post with those directions and my one deviation is posted in the Ubuntu forums HERE.


____________
- da shu @ HeliOS,
"La carencia de recursos no debe de ser impedimento para que un niño tenga acceso a la tecnología."

Reply to this thread

Questions and Answers : Unix/Linux : still libstdc++ problem



Return to Leiden Classical main page


Copyright © 2017 Leiden University - Leiden Institute of Chemistry - Theoretical Chemistry Department