Operating System - HP-UX
1837338 Members
3470 Online
110116 Solutions
New Discussion

Re: /usr/lib/dld.sl: Can't find path for shared library: libgcc_s.sl

 
simons_4
Occasional Contributor

/usr/lib/dld.sl: Can't find path for shared library: libgcc_s.sl

Hi,

I have the following code:

#include
using namespace std;
int main() {
cout << "Hello CXX!!!" << endl;
}

1) the above code is compiled on server A and works fine on that server
2) if I try to run the binary on server B I get the error "/usr/lib/dld.sl: Can't find path for shared library: libgcc_s.sl"

Now how can I compile the above code so that works on both servers!!

Any Ideas please!!

Regards

Simon
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: /usr/lib/dld.sl: Can't find path for shared library: libgcc_s.sl

Hi Simon:

Do you have 'libgcc_s.sl' on server-B?

If so, does SHLIB_PATH contain the directory in which the library resides?

Regards!

...JRF...
Dennis Handly
Acclaimed Contributor

Re: /usr/lib/dld.sl: Can't find path for shared library: libgcc_s.sl

>JRF: Do you have 'libgcc_s.sl' on server-B?

This is the correct way to do it. Trying to make your application all archive so you don't have to ship shared libs is not so good.

Of course if you used aC++, the needed libs would already be there. (At least for -AA, you could get a patch for 11.11.)
V. Nyga
Honored Contributor

Re: /usr/lib/dld.sl: Can't find path for shared library: libgcc_s.sl

HI,

have you done a find for this library on both servers?
Do you have the same lib-patch on both?
And last: check /etc/SHLIB_PATH on both.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***