1833325 Members
2796 Online
110051 Solutions
New Discussion

SHLIB_PATH being ignored

 
Ashley Marcelline
New Member

SHLIB_PATH being ignored

We have an old HP4GL program that we need to keep going until it gets replaced.
When we upgraded to HP-UX 10 we created a version of libc.sl which had the procedures hp4glb wanted and set SHLIB_PATH to its location, we then used "chatr +s enable +b disable hp4glb" and it all worked.
When we upgraded to HP-UX 11 it would not work all avenues that we tried failed the dld.sl always seemed to get libc.sl from /lib.
After much searching we tried
"export LD_PRELOAD="/opt/HP4GL/lib/libc.sl"
and it worked.
What I want to know is why the SHLIB_PATH method won't work?
3 REPLIES 3
Vibert Hart
Occasional Advisor

Re: SHLIB_PATH being ignored

Did you try exporting the SHLIB_PATH? First you should simply try echo $SHLIB_PATH at the prompt and see what you get.
Sys Admin
Ashley Marcelline
New Member

Re: SHLIB_PATH being ignored

Yes I did export it. I used a script that works under HP-UX 10.20 which sets it up
A. Clay Stephenson
Acclaimed Contributor

Re: SHLIB_PATH being ignored

Hi Ashley,

I can only give you the same answer that I was given, the dynamic loader algorithms and shl_load functions were modified for thread local storage and that the dynamic loader behavior is different in the 32-bit and 64-bit versions.

Regards, Clay
If it ain't broke, I can fix that.