Operating System - HP-UX
1820592 Members
1748 Online
109626 Solutions
New Discussion юеВ

Can't shl_load() a library containing Thread local storage

 
SOLVED
Go to solution
sachin_39
New Member

Can't shl_load() a library containing Thread local storage

Hi all,
I am installing a visibroker 6 trial version on my HPUX 11.11 system. After successful installation when I run lmadm for registration, I get the following error.

/usr/lib/dld.sl: Can't shl_load() a library containing Thread local storage : /export/tools/java/1.4.2/jre/lib/PA_RISK2.0/server/libjvm.sl
/usr/lib/dld.sl: Exec format error
Error loading Java VM library: libjvm.sl [Exec format error]

I looked anrd the list,some of them talked abt exporting LD_PRELOAD variable , but that didn't help me..
Also most of them are talking abt these patches. I have June 2003 Gold application and Base patches installed on my system.

Why is this happening ? Do I need any specific patches to be installed ? Any sugegstions would be of great help.

Thanks in advance.
-Sachin
6 REPLIES 6
Ermin Borovac
Honored Contributor
Solution

Re: Can't shl_load() a library containing Thread local storage

I think LD_PRELOAD functionality was implemented in

PHSS_22535 s700_800 11.11 ld(1) and linker tools cumulative patch

Check if you have any linker patches installed

$ /usr/sbin/swlist -l product | grep linker

Make sure you have PHSS_22535 or later installed.

Then try running your program as follows

$ LD_PRELOAD=/export/tools/java/1.4.2/jre/lib/PA_RISK2.0/server/libjvm.sl

Steven E. Protter
Exalted Contributor

Re: Can't shl_load() a library containing Thread local storage

Make sure /usr/lib is part of the SHLIB_PATH variable.

Consider teh patches as well. You are a year out of date on patches. Thats not where you want to be.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
sachin_39
New Member

Re: Can't shl_load() a library containing Thread local storage

Thanks folks,
Installing PHSS_22535 patch worked.
Prabu_3
Frequent Advisor

Re: Can't shl_load() a library containing Thread local storage

Hi,

I am also facing similar problem with Java1.5 Beta version. I am having
PHSS_30966 patch installed on my server. I tried setting the LD_PRELOAD but the java crashes. Any suggetions for this?.

Thanks
Prabu
santi_7
New Member

Re: Can't shl_load() a library containing Thread local storage

I have installed PHSS_22535 patch and tried exporting the LD_PRELOAD path , but apache is getting crashed, Any suggestions please let me know.
Sandman!
Honored Contributor

Re: Can't shl_load() a library containing Thread local storage

The path to the shared lib looks messed up...

/export/tools/java/1.4.2/jre/lib/PA_RISK2.0/server/libjvm.sl

...since it should be PA_RISC not PA_RISK. Does the path to Java VM library exist on your machine using the correct string i.e.

# ll /export/tools/java/1.4.2/jre/lib/PA_RISC2.0/server/libjvm.sl

cheers!