1846628 Members
2319 Online
110256 Solutions
New Discussion

Re: shl_load problems

 
ajay Kushwah
Occasional Contributor

shl_load problems

I have a shl_load problem that says "can,t sh_load a shared library containing thread local storage" .I checked up on this discussion forums for a possible workaround for the limitation of shl_load.

I tried the workaround of explictly linking the required threaded library directly (libpthread) with the executable to supress this error message during shl_load.
(with linker flag -a shared_archive -lpthread to make it explicit) and it seems to have resolved for one of the dll.
The other dll still give the problem of "can,t sh_load a shared library containing thread local storage". This library only have as an extra dependency a libdld.sl (required by libcl) so I tried liking with -lc and -ldld (with and without explicit -shared_archive) with the executable but the error doesen't go away.

I read somewhere that a patch is avialbe from HP that resloves the limitation of shl_load. I guess it was mentioned as PHSS_24303. I just want to know if anybody has sucessfuly used this patch to overcome this problem and whether this patch is part of the latest cumulative patche avialable from Hp for 11.0 (Server class 64 bit ) or any other info that can help me resolve this problem.

Any help would be highly appreciated.

Best regards,
-Ajay

Today is the day
1 REPLY 1
Schelstraete Bart_1
Frequent Advisor

Re: shl_load problems

Did you already tried this before running that program:

export LD_PRELOAD=/usr/lib/libcl.2