Solaris 10 : libstdc++.so.3

Questions and Answers : Unix/Linux : Solaris 10 : libstdc++.so.3
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile davis@e-maxx.info

Send message
Joined: 2 May 00
Posts: 74
Credit: 3,895,817
RAC: 0
France
Message 171095 - Posted: 23 Sep 2005, 22:08:45 UTC

I am really new to Solaris. Just installed Solaris 10 on a Netra T1 200.
Got the lastest version of Seti

and I got this :
ld.so.1: ./boinc_4.19_sparc-sun-solaris2.7: fatal: libstdc++.so.3: open failed: No such file or directory
Killed

I did some googling, but I don't know enought about Linux / Solaris to get it to work.

Anyone has a step by step on how to fix this ?

thanks

davis


bi Xeon 3.06 2gig ram
bi AMD Opteron 2210 4gig ram
AMD X2 4200 2gig ram
AMD X2 4800 1gig ram
AMD Opteron 165 2gig ram
ID: 171095 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 171117 - Posted: 23 Sep 2005, 23:12:40 UTC

You need to install the gcc (3.3 or 3.4.x) libs. On www.sunfreeware.com you will get the needed libgcc.

You must install it, and set the LD_LIBRARY_PATH, if it is not include /usr/local/lib : "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ; export LD_LIBRARY_PATH"
ID: 171117 · Report as offensive
Profile davis@e-maxx.info

Send message
Joined: 2 May 00
Posts: 74
Credit: 3,895,817
RAC: 0
France
Message 171830 - Posted: 25 Sep 2005, 21:09:35 UTC - in response to Message 171117.  

You need to install the gcc (3.3 or 3.4.x) libs. On www.sunfreeware.com you will get the needed libgcc.

You must install it, and set the LD_LIBRARY_PATH, if it is not include /usr/local/lib : "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ; export LD_LIBRARY_PATH"




I went on www.sunfreeware.com, DL gcc-3.3.2-sol10-sparc-local and Install it.

I did then LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ; export LD_LIBRARY_PATH

But I still get
ld.so.1: ./boinc_4.19_sparc-sun-solaris2.7: fatal: libstdc++.so.3: open failed: No such fi
le or directory
Killed


Any advices ?

thanks

Davis (newbie on solaris)

bi Xeon 3.06 2gig ram
bi AMD Opteron 2210 4gig ram
AMD X2 4200 2gig ram
AMD X2 4800 1gig ram
AMD Opteron 165 2gig ram
ID: 171830 · Report as offensive
Profile Crunch3r
Volunteer tester
Avatar

Send message
Joined: 15 Apr 99
Posts: 1546
Credit: 3,438,823
RAC: 0
Germany
Message 171832 - Posted: 25 Sep 2005, 21:17:28 UTC - in response to Message 171830.  

You need to install the gcc (3.3 or 3.4.x) libs. On www.sunfreeware.com you will get the needed libgcc.

You must install it, and set the LD_LIBRARY_PATH, if it is not include /usr/local/lib : "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ; export LD_LIBRARY_PATH"




I went on www.sunfreeware.com, DL gcc-3.3.2-sol10-sparc-local and Install it.

I did then LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ; export LD_LIBRARY_PATH

But I still get
ld.so.1: ./boinc_4.19_sparc-sun-solaris2.7: fatal: libstdc++.so.3: open failed: No such fi
le or directory
Killed


Any advices ?

thanks

Davis (newbie on solaris)


I dont know much about solaris but you could try an
"ldd boinc_4.19_sparc-sun-solaris2.7" it will show you the needed libs and where to place them.

regards
Crunch3r



Join BOINC United now!
ID: 171832 · Report as offensive
Profile davis@e-maxx.info

Send message
Joined: 2 May 00
Posts: 74
Credit: 3,895,817
RAC: 0
France
Message 171833 - Posted: 25 Sep 2005, 21:22:57 UTC - in response to Message 171832.  


I dont know much about solaris but you could try an
"ldd boinc_4.19_sparc-sun-solaris2.7" it will show you the needed libs and where to place them.

regards
Crunch3r



this is what I get :
ldd boinc_4.19_sparc-sun-solaris2.7
libgen.so.1 => /lib/libgen.so.1
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libstdc++.so.3 => (file not found)
libm.so.1 => /lib/libm.so.1
libgcc_s.so.1 => (file not found)
libc.so.1 => /lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libmd5.so.1 => /lib/libmd5.so.1
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1
/platform/SUNW,UltraAX-i2/lib/libmd5_psr.so.1

This is more than I can understand.


bi Xeon 3.06 2gig ram
bi AMD Opteron 2210 4gig ram
AMD X2 4200 2gig ram
AMD X2 4800 1gig ram
AMD Opteron 165 2gig ram
ID: 171833 · Report as offensive
Profile Crunch3r
Volunteer tester
Avatar

Send message
Joined: 15 Apr 99
Posts: 1546
Credit: 3,438,823
RAC: 0
Germany
Message 171836 - Posted: 25 Sep 2005, 21:28:26 UTC - in response to Message 171833.  
Last modified: 25 Sep 2005, 21:31:43 UTC


I dont know much about solaris but you could try an
"ldd boinc_4.19_sparc-sun-solaris2.7" it will show you the needed libs and where to place them.

regards
Crunch3r



this is what I get :
ldd boinc_4.19_sparc-sun-solaris2.7
libgen.so.1 => /lib/libgen.so.1
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libstdc++.so.3 => (file not found)
libm.so.1 => /lib/libm.so.1
libgcc_s.so.1 => (file not found)
libc.so.1 => /lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libmd5.so.1 => /lib/libmd5.so.1
libscf.so.1 => /lib/libscf.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,UltraAX-i2/lib/libc_psr.so.1
/platform/SUNW,UltraAX-i2/lib/libmd5_psr.so.1

This is more than I can understand.


ok well.
fist you have to figure out where the gcc files have been installed to (
should be in /usr/lib/gcc/).
Then link the libstdc++.so.3 from the installed directory to /lib
the same for libgcc_s.so.1.

or simply copy those two files to /lib.
that should be it or if there is only a file called libstdc++.so copy it to /lib and rename it to libstdc++.so.3 same goes for the libgcc_s.so.1



regards
Crunch3r

Join BOINC United now!
ID: 171836 · Report as offensive
Profile davis@e-maxx.info

Send message
Joined: 2 May 00
Posts: 74
Credit: 3,895,817
RAC: 0
France
Message 171851 - Posted: 25 Sep 2005, 22:01:57 UTC - in response to Message 171836.  

Thanks, it is working

THANKS A MILLION

Davis

bi Xeon 3.06 2gig ram
bi AMD Opteron 2210 4gig ram
AMD X2 4200 2gig ram
AMD X2 4800 1gig ram
AMD Opteron 165 2gig ram
ID: 171851 · Report as offensive
Profile Crunch3r
Volunteer tester
Avatar

Send message
Joined: 15 Apr 99
Posts: 1546
Credit: 3,438,823
RAC: 0
Germany
Message 171858 - Posted: 25 Sep 2005, 22:16:24 UTC - in response to Message 171851.  

Thanks, it is working

THANKS A MILLION

Davis


Nice to hear. Keep on crunching :)
But you should do the same procedure for the seti app.
Just try a "ldd" against the seti app. to make sure all libs are there.

regards
Crunch3r


Join BOINC United now!
ID: 171858 · Report as offensive
Dotsch
Volunteer tester
Avatar

Send message
Joined: 9 Jun 99
Posts: 2422
Credit: 919,393
RAC: 0
Germany
Message 171936 - Posted: 26 Sep 2005, 6:20:01 UTC - in response to Message 171836.  
Last modified: 26 Sep 2005, 6:22:29 UTC


Then link the libstdc++.so.3 from the installed directory to /lib
the same for libgcc_s.so.1.

or simply copy those two files to /lib.
that should be it or if there is only a file called libstdc++.so copy it to /lib and rename it to libstdc++.so.3 same goes for the libgcc_s.so.1

It is not the usual/good way. Normal you can install the packages via packagemanager. If you copy the libs to different directories, you must handle it by hand on updates, or other things. For this is LD_LIBRARY_PATH thought !

Freeware from sunfreeware mostly installs to /opt/sfw or /usr/local.
Then set/expand the LD_LIBRARY_PATH to /opt/sfw/lib and /usr/local/lib in the file /etc/profile.

If you wan't to attach more than one project, you must eventualy increase shared memory.

ID: 171936 · Report as offensive
Profile Curt Steger

Send message
Joined: 2 Oct 05
Posts: 4
Credit: 4,446
RAC: 0
United States
Message 183756 - Posted: 29 Oct 2005, 21:07:22 UTC
Last modified: 29 Oct 2005, 21:07:57 UTC

The fastest & easiest way to solve this problem, even after installing GCC is the following.

ln -s /opt/sfw/lib/libstdc++.so.(whatever your version is) /usr/lib/ libstdc++.so.3

Boinc will recognize the library, and all is well. (It works on my ULTRA 10 w/Solaris 10 just fine)

The Solaris GCC package will default to /opt/sfw using pkgadd in Solaris 10.

If you don't like modifyint your LD_PATH env, you can do the same for all the others as well.

ln -s /opt/sfw/bin/* /usr/bin
ln -s /opt/sfw/lib/* /usr/lib
HAL 9000:
What are you doing with that Windo$e CD Dave?
Dave??????
DAVE!!!!!!!!!
ID: 183756 · Report as offensive
Profile Curt Steger

Send message
Joined: 2 Oct 05
Posts: 4
Credit: 4,446
RAC: 0
United States
Message 183757 - Posted: 29 Oct 2005, 21:07:37 UTC

The fastest & easiest way to solve this problem, even after installing GCC is the following.

ls -s /opt/sfw/lib/libstdc++.so.(whatever your version is) /usr/lib/ libstdc++.so.3

Boinc will recognize the library, and all is well. (It works on my ULTRA 10 w/Solaris 10 just fine)

The Solaris GCC package will default to /opt/sfw using pkgadd in Solaris 10.

If you don't like modifyint your LD_PATH env, you can do the same for all the others as well.

ln -s /opt/sfw/bin/* /usr/bin
ln -s /opt/sfw/lib/* /usr/lib
HAL 9000:
What are you doing with that Windo$e CD Dave?
Dave??????
DAVE!!!!!!!!!
ID: 183757 · Report as offensive
Profile Stefan Urbat
Volunteer tester

Send message
Joined: 26 Sep 99
Posts: 24
Credit: 924,339
RAC: 0
Germany
Message 186258 - Posted: 6 Nov 2005, 7:38:43 UTC - in response to Message 171117.  

You need to install the gcc (3.3 or 3.4.x) libs. On www.sunfreeware.com you will get the needed libgcc.

You must install it, and set the LD_LIBRARY_PATH, if it is not include /usr/local/lib : "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ; export LD_LIBRARY_PATH"


On Solaris 10 you need usually not at all to install any gcc from sunfreeware or the companion CD (distribution).

If you install a Solaris 10 completely (not a reduced minimum cluster package version, but with development tools), you will find a Sun adapted gcc 3.4.3 branch sol10 (this was necessary primarily for AMD64 systems, but is there too on SPARC systems)
in /usr/sfw (unfamiliar location, I know), so /usr/sfw/bin/gcc resp. /usr/sfw/bin/g++ and the /usr/sfw/lib and sub directory amd64 or sparcv9 (depends on architecture) contains the required libs of gcc/g++ (libgcc, which is essentially compatible at least between all 3 and 4 versions of gcc, and libstc++, which is essentially incompatible for any different g++ version). My advice is using a softlink, if you happen to get a dated, dynamically linked Solaris binary against an older version, for example libstdc++.so.3 -> libstdc++.so.6, reverse this will never work anyway.

On older Solaris versions you have indeed to install a gcc from sunfreeware, the companion or compile it yourself.
ID: 186258 · Report as offensive

Questions and Answers : Unix/Linux : Solaris 10 : libstdc++.so.3


 
©2025 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.