1753259 Members
6453 Online
108792 Solutions
New Discussion юеВ

Re: shl_load error

 
michi79
Frequent Advisor

shl_load error

Hello,

I've got the following error message in a
installation routine.

/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl
/usr/lib/dld.sl: Exec format error
Cannot open library /opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl

Has anybody an idea what might be the reason ?

Regards
Michi
Ludwig Wahl
6 REPLIES 6
Dennis Handly
Acclaimed Contributor

Re: shl_load error

It means what it says. You can't dynamically load your jvm. You must link it into your application.
Only on Integrity can you dynamically load shlibs with TLS.
michi79
Frequent Advisor

Re: shl_load error

Hello,

because the error occurs in the installation routine of a cmmercial application I think
that a patch in HP-UX is missing or maybe old
Unfortunatley I get no support from the supplier.


Regards
Michi

Ludwig Wahl
Dennis Handly
Acclaimed Contributor

Re: shl_load error

>I think that a patch in HP-UX is missing or maybe old

I'm not aware of any. They may have assumed if it worked on Integrity, it would work on PA?
You could try installing the latest linker patch. What HP-UX version are you using?
michi79
Frequent Advisor

Re: shl_load error

Hi Dennis,

I've a little more information for you.
The HP-UX version is 11.11 64bit.
There seems to be the problem. As far as
I know the application is coded an linkend in 32-bit mode. And I assume there is a java
library mismatch beetween 32bit and 64bit. Unfortunatly I'm no specialist for java.
My question is what must be set that
HP-UX only uses 32bit java library's or
only 64bit librarys ?

Regards
Michi
Ludwig Wahl
Dennis Handly
Acclaimed Contributor

Re: shl_load error

>As far as I know the application is coded and linked in 32-bit mode.

That's what the error said.

>And I assume there is a java library mismatch between 32bit and 64bit.

I don't see that. libjvm.sl above is 32 bit.
You don't have some SHLIB_PATH setting to point to some java1.4 shlibs do you?

>My question is what must be set to only use 32bit java libraries or only 64bit libraries?

The default is 32. If you want 64, you need to use -d64.
Dennis Handly
Acclaimed Contributor

Re: shl_load error

>ME: You must link it into your application.

I forgot the one other way to get it to work:
LD_PRELOAD=/opt/java1.5/jre/lib/PA_RISC2.0/server/libjvm.sl \
executable parms ...