Operating System - HP-UX
1829404 Members
1545 Online
109991 Solutions
New Discussion

Can't open shared library

 
SOLVED
Go to solution
bivian
Advisor

Re: Can't open shared library

Which is the recommended debugger on HPUX PARISC64
Dennis Handly
Acclaimed Contributor

Re: Can't open shared library

>Which is the recommended debugger?

gdb/wdb: http://www.hp.com/go/wdb
Horia Chirculescu
Honored Contributor

Re: Can't open shared library

>It seems that i missed out few libraries while adding soft links to "/usr/lib". After adding all of them it works fine.

This is a step forward.

>I am curious to know why SHLIB_PATH is not working.

Start by removing the duplicates from that variable. Then move the path we are talking about at the beginning of the string.


Horia.
Best regards from Romania,
Horia.
bivian
Advisor

Re: Can't open shared library

No, it does not work by removing duplicates or keeping the required path in the beginning.
bivian
Advisor

Re: Can't open shared library

Probably there is a bug in the linker. Can we use any other linker?
Dennis Handly
Acclaimed Contributor

Re: Can't open shared library

>Probably there is a bug in the linker. Can we use any other linker?

You mean the dynamic loader? No, there is only one.
If you think there is a problem, you'll need to come up with a small test case (that aborts on the first bad load) and contact the Response Center.
They may have a debuggable dld that may help find any user problem.
Dennis Handly
Acclaimed Contributor

Re: Can't open shared library

Oh, is your executable linked with +s to enable SHLIB_PATH?
How are you dynamically loading that shlib? What shl_load or dlopen parms?
bivian
Advisor

Re: Can't open shared library

Yes it is linked with +s option.
BTW, i tied to add all the required shared libraries to LD_PRELOAD env variable. This works.
But, i don't understand why SHLIB_PATH does not work.
Dennis Handly
Acclaimed Contributor

Re: Can't open shared library

>I don't understand why SHLIB_PATH does not work.

If you want to pursue this, you'll need to talk to the Response Center.