Operating System - HP-UX
1753518 Members
4812 Online
108795 Solutions
New Discussion юеВ

linking problem in hpux11.11

 
Ravinder Kaul
Advisor

linking problem in hpux11.11

Hi,

I am trying to load a shared libary which is compiled with -lpthread.
The dlopen gives the below error .
/usr/lib/dld.sl:Can't shl_load() a library containing Thread Local Storage: /usr/lib/libpthread.1
/usr/lib/dld.sl: Exec format error

I exported LD_PRELOAD=/usr/lib/libpthread.1
it worked.
But the LD_PRELOAD causes bus error in some of the tools such as "clearcase" etc.

Can anybody suggest some ideas ?

Thanks
Praveen
3 REPLIES 3
Steve Steel
Honored Contributor

Re: linking problem in hpux11.11

Hi

For stuff like clearcase check with your supplier.If you are giving threaded libs to a non threaded application you may get odd results.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Steve Steel
Honored Contributor

Re: linking problem in hpux11.11

Hi


Do you have
s700_800/11.X/PHSS_28436


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Ravinder Kaul
Advisor

Re: linking problem in hpux11.11

Hi Steve

Thanks for the reply. This does not happen only with clearcase. From the other threads what I could gather was that this is a limitation of shl_load() system call. That patch is not installed on the system. The system may need to be patched