Operating System - HP-UX
1834149 Members
2333 Online
110064 Solutions
New Discussion

Re: /usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libpthread.1

 
PAUL CHEN_2
Occasional Advisor

/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libpthread.1

I'm running a third pary software, and getting the following error
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libpthread.1. Any recommandations to fix it?
3 REPLIES 3
Mike Stroyan
Honored Contributor

Re: /usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libpthread.1

Thread Local Storage is a mechanism that gives every thread its own copy of a particular global symbol. 11 and 11.11 require that the total amount of thread local storage is know at the start of the first thread, so shared libraries that contain TLS need to be linked into the program or forced to load at startup with
LD_PRELOAD=libA.1 a.out
or something similar. The particular case of libpthread is not a very good candidate for LD_PRELOAD. You really shouldn't be loading a threaded shared library into a non-threaded a.out. The code in the a.out will not be able to cope with becoming multi-threaded.
By the way, the 11.22 release and later have been adding the ability to dynamically load TLS symbols with a more sophisticated way to allocate TLS storage.
Adam J Markiewicz
Trusted Contributor

Re: /usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libpthread.1

Hi

I've seen this before.
However I have no idea how that turned out at the end.
Mayby try to contact the guy.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x9a5a35a43b46d71190080090279cd0f9,00.html


Good luck
Adam
I do everything perfectly, except from my mistakes
Michael Steele_2
Honored Contributor

Re: /usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /usr/lib/libpthread.1

Latest 11.00 patches for libpthread.

s700_800 11.00 libc cumulative man page patch PHCO_24904
s700_800 11.00 Pthread library cumulative patch PHCO_23792
PHCO_26960
s700_800 11.00 libc cumulative patch PHCO_27731
s700_800 11.00 POSIX AIO;getdirentries;MVFS;rcp;mmap/IDS; PHKL_27813
Notes: PHKL_28202
s700_800 11.00 PTHREAD_PROCESS_SHARED mutexes enhancement PHKL_28314
s700_800 11.00 OTS/9000 C.09.0[0123] Cumulative Patch PHNE_27889
s700_800 11.00 OpenMail B.05.10 December 00 Periodic Patch PHSS_22698
s700_800 11.00 linker startup code / SLLIC ELF support PHSS_26557
s700_800 11.00 ld(1) and linker tools cumulative patch PHSS_24303
PHSS_26559
s700_800 11.X HP aC++ -AA runtime libraries (aCC A.03.37) PHSS_16587
PHSS_26945
s700_800 11.00 HP DCE/9000 1.7 Server/DevTools cum. patch PHSS_20446
Notes: PHSS_27964
Support Fatherhood - Stop Family Law