Languages and Scripting
cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Unable to find library 'libgcc_s.so.0'.

 
Symantec
Occasional Contributor

Unable to find library 'libgcc_s.so.0'.

I am using native hp compile (CC64) to compile and link my c files with some of shared libraries.

Compiling and linking happens fine, but when i try to execute the binary, i get this error.

/>./test

/usr/lib/hpux64/dld.so: Unable to find library 'libgcc_s.so.0'.

I am not fining this library on my system. I installed libgcc-4.2.3-ia64-11.31.depot and gcc-4.2.3-ia64-11.31.depot on my 11.31-ia system but it's not part of the infrastructure.

I have seen some old posts where they were found in /opt/hp-gcc-4.0.3/lib/libgcc_s.so.0 with gcc-4.0.3 installed.

 

Can somebody please suggest or let me know where can i get gcc-4.0.3/libgcc_s.so.0

3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: Unable to find library 'libgcc_s.so.0'.

>I am using native hp compile (CC64)

 

This compiler wouldn't be referencing libgcc_s.so.0.

 

You can download gcc at: http://www.hp.com/go/gcc

But I only see 4.5.3 and 4.6.0.

Symantec
Occasional Contributor

Re: Unable to find library 'libgcc_s.so.0'.

I have shared libraries which are compiled with gcc,  they will be referring it. I am asking for gcc4.0.3 so that i can get libgcc_s.so.0. I dont think the libgcc which you are referring can provide me with this library.

Dennis Handly
Acclaimed Contributor

Re: Unable to find library 'libgcc_s.so.0'.

>I have shared libraries which are compiled with gcc,

 

Then you are also responsible for also having the gcc runtime libs that match.

Have you looked here: /usr/local/lib/libgcc_s.so.0

 

>I am asking for gcc4.0.3 so that I can get libgcc_s.so.0.

 

What lib comes with your libgcc-4.2.3-ia64-11.31.depot?

If you didn't save that version away, you'll need to recompile with 4.2.3, 4.5.3 or 4.6.0.

 

I was told that you should be able to get libgcc_s.so.0 out of the 4.5.3 and 4.6.0 depots I mentioned above.