Operating System - HP-UX
1834952 Members
2324 Online
110071 Solutions
New Discussion

Static TLS reference in libcl.2

 
Michal Plandor
Occasional Advisor

Static TLS reference in libcl.2

Hello,
I've successfully compiled apache_1.3.36 with HP-UX GCC 4.0.3 and installed my application.

After execution of 'bin/apachectl configtest' following error occurs:
/usr/lib/pa20_64/dld.sl: '/usr/lib/pa20_64/libcl.2' contains a static TLS reference to '__thread_specific_seg' defined in a dynamically loaded library '/usr/lib/pa20_64/libcl.2'. Use +tls=dynamic to re-compile '/usr/lib/pa20_64/libcl.2'.
/usr/lib/pa20_64/dld.sl: '/usr/lib/pa20_64/libcl.2' contains a static TLS reference to '__thread_specific_seg' defined in a dynamically loaded library '/usr/lib/pa20_64/libcl.2'. Use +tls=dynamic to re-compile '/usr/lib/pa20_64/libcl.2'.
Cannot load libexec/mod_sapcs.so into server: Invalid argument

libcl.2 specs:
$ what /usr/lib/pa20_64/libcl.2
/usr/lib/pa20_64/libcl.2:
libIO77 HP HPUX [ Release B.11.01.15 PA 64bit ]
(hp700:hp/ux) Jan 7 2003
Copyright (c) 2001 Hewlett Packard.
libcl.sl version B.11.01.18 - Jan 3 2003
Trap Library version UX.11.01.06 - 02/04/16
Unwind Library version UX.11.01.05 - 00/08/15

$ file /usr/lib/pa20_64/libcl.2
/usr/lib/pa20_64/libcl.2: ELF-64 shared object file - PA-RISC 2.0 (LP64)


Any idea how can I get it work please?

Thanks in advance.

Cheers,
Miso
2 REPLIES 2
Michal Plandor
Occasional Advisor

Re: Static TLS reference in libcl.2

OK, no answer, but anyway, i've solved it in the meantime
for future generations:
export LD_PRELOAD="/usr/lib/pa20_64/libcl.2"

cheers,
miso
Michal Plandor
Occasional Advisor

Re: Static TLS reference in libcl.2

solution above