Re: cant shl_load() a library...when looking at digital certificate (324 Views)
Reply
Trusted Contributor
Dave Chamberlin
Posts: 558
Registered: ‎04-10-2000
Message 1 of 6 (324 Views)

cant shl_load() a library...when looking at digital certificate

[ Edited ]

Hello,

I am running oracle 11i apps on a K460 running HPUX 11.0 (no - really!) and have rebuilt the digital certificate used by the apps. When I try to verify the certificate with javakey -l, I get:

/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage:
/u13/oracle11/dev7comn/util/jre/1.1.8/bin/../lib/PA_RISC/native_threads/libjava.sl
/usr/lib/dld.sl: Exec format error
Error shl_load failed for:
/u13/oracle11/dev7comn/util/jre/1.1.8/bin/../lib/PA_RISC/native_threads/libjava.sl,
[errno 8: Exec format error]
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage:
/u13/oracle11/dev7comn/util/jre/1.1.8/bin/../lib/PA_RISC/native_threads/libjava.sl
/usr/lib/dld.sl: Exec format error
Could not load runtime library:
/u13/oracle11/dev7comn/util/jre/1.1.8/bin/../lib/PA_RISC/native_threads/libjava.sl

The system is well patched. I have seen a posting on the ITRC that suggested installing PHSS 23440. I dont have this patch, but have a later patch 24303. Does anyone know what I have to do to be able to get javakey -l to run?

 

 

P.S. This thread has been moved from HP-UX > General to HP-UX > languages - HP Forums Moderator

Respected Contributor
Vijaya Kumar_3
Posts: 450
Registered: ‎09-29-2003
Message 2 of 6 (324 Views)

Re: cant shl_load() a library...when looking at digital certificate

I got the same error with this and it is purely, i hope a linking error.

Check the required libraries. You may need to check /lib/libjava.sl or /lib/libjvm.sl which may be linked to the system defaults.

Is it 11.11?

Vijay
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Esteemed Contributor
ranganath ramachandra
Posts: 375
Registered: ‎05-16-2003
Message 3 of 6 (324 Views)

Re: cant shl_load() a library...when looking at digital certificate

run javakey with LD_PRELOAD=/libjava.sl. if you have the latest loader patches it may be better to use LD_PRELOAD_ONCE=/libjava.sl. the command at the prompt would look like

LD_PRELOAD=/u13/oracle11/dev7comn/util/jre/1.1.8/lib/PA_RISC/native_threads/libjava.sl javakey -l

or

LD_PRELOAD_ONCE=/u13/oracle11/dev7comn/util/jre/1.1.8/lib/PA_RISC/native_threads/libjava.sl javakey -l
Esteemed Contributor
ranganath ramachandra
Posts: 375
Registered: ‎05-16-2003
Message 4 of 6 (324 Views)

Re: cant shl_load() a library...when looking at digital certificate

you need the linker/loader patch PHSS_28869(11.00) or PHSS_28871(11.11) for LD_PRELOAD/LD_PRELOAD_ONCE to work.
Trusted Contributor
Dave Chamberlin
Posts: 558
Registered: ‎04-10-2000
Message 5 of 6 (324 Views)

Re: cant shl_load() a library...when looking at digital certificate

Hello,

I applied the PHSS_28869 patch and tried the LD_PRELOAD_ONCE... command. I get the same error as before.
Esteemed Contributor
ranganath ramachandra
Posts: 375
Registered: ‎05-16-2003
Message 6 of 6 (324 Views)

Re: cant shl_load() a library...when looking at digital certificate

well there is some program there that is trying to shl_load some library which depends on libjava.sl ...

if its not javakey, it is some other program.
so javakey is either invoking another application or contacts another process, which does this. if javakey were invoking the "culprit", you can work around it with LD_PRELOAD (LD_PRELOAD_ONCE wont work then).

if that does not work, can you run javakey through tusc and post the output ? without LD_PRELOAD now:
"tusc -f -o tusc.out javakey -l"
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.