Operating System - HP-UX
1751699 Members
5023 Online
108781 Solutions
New Discussion юеВ

Re: Can't open shared library

 
SOLVED
Go to solution
bivian
Advisor

Re: Can't open shared library

I am setting SHLIB_PATH properly. It does not work even if i create the soft links to libraries under "/usr/lib".

Is there a known issue with PHSS_39821?

I will try to install PHSS_40537.
bivian
Advisor

Re: Can't open shared library

Installed patch PHSS_40537. But still there is a problem.
Dennis Handly
Acclaimed Contributor

Re: Can't open shared library

>It does not work even if I create the soft links to libraries under "/usr/lib".

Doh, that will catch the culprit red handed and removes SHLIB_PATH settings from any problem.
Now please provide a tusc output to see why the open fails.
Can you do:
file /home/prash/lib32/libnmemso.sl
file /home/prash/newdb/bin/emagent

Hmm, tusc says the latter is 32 bit.
And the former has /usr/lib/libc.2.

>Is there a known issue with PHSS_39821?

Not that I know of.
bivian
Advisor

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. But, this is just a work around. I am curious to know why SHLIB_PATH is not working.

> file libnmemso.sl
libnmemso.sl: PA-RISC1.1 shared library -not
> file emagent
PA-RISC1.1 shared executable dynamically linked -not stripped dynamically linked

> file /usr/lib/libc.2
PA-RISC2.0 shared library -not stripped

Dennis Handly
Acclaimed Contributor

Re: Can't open shared library

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

I don't think we'll ever know until you get out your debugger. And be able to follow the process from the start.
The only trouble areas I know are:
1) SHLIB_PATH not set correctly before process start.
2) SETUID processes.
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?