- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Java1.5 on HP-UX 11.11: failed to load libjvm.sl e...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2005 03:40 PM
тАО05-15-2005 03:40 PM
Java1.5 on HP-UX 11.11: failed to load libjvm.sl even after LD_PRELOAD is defined
I am writing a native application that loads jvm library dynamically. It is working for jdk.1.4.2. However, when I try to port to java1.5, I got the following error even after I set the LD_PRELOAD (following the advice from: http://www.hp.com/products1/unix/java/java2/jdkjre5_0/infolibrary/jdk_rnotes_5.0.html#TLS)
>set LD_PRELOAD=/export/home/root/java1.5/jre/lib/PA_RISC20/server/libjvm.sl
>
.aCC runtime: Error 215 from shl_findsym(/export/home/root/java1.5/jre/lib/PA_RISC20/server/libjvm.sl,_shlInit)
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /export/home/root/java1.5/jre/lib/PA_RISC20/server/libjvm.sl
/usr/lib/dld.sl: Exec format error
Abort(coredump)
Another even more strange thing is, after I set the LD_PRELOAD, I will get the following error even for simple commands like ls:
/usr/lib/dld.sl: Unresolved symbol: _edata (data) from /export/home/root/java1.5/jre/lib/PA_RISC20/server/libjvm.sl
/usr/lib/dld.sl: Unresolved module for symbol: __shlinit (code) from /usr/lib/libCsup.2
When I run >ldd -r ./libjvm.sl
I got the following result:
/usr/lib/libCsup.2 => /usr/lib/libCsup.2
/usr/lib/libcl.2 => /usr/lib/libcl.2
/usr/lib/libisamstub.1 => /usr/lib/libisamstub.1
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/librt.2 => /usr/lib/librt.2
/usr/lib/libm.2 => /usr/lib/libm.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libpthread.1 => /usr/lib/libpthread.1
symbol not found: _SYSTEM_ID (/usr/lib/libc.2)
symbol not found: _end (/usr/lib/libc.2)
symbol not found: _SYSTEM_ID (/usr/lib/libCsup.2)
symbol not found: _SYSTEM_ID (/usr/lib/libcl.2)
symbol not found: __dld_loc (/usr/lib/libcl.2)
symbol not found: __dld_loc (/usr/lib/libdld.2)
symbol not found: _edata (./libjvm.sl)
>uname -a
HP-UX pompeii B.11.11 U 9000/785 2015658734 unlimited-user license
Any idea why this is happening?
Thanks in advance!
Yunshu
- Tags:
- Java
- LD_PRELOAD
- unsat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2005 08:29 PM
тАО05-15-2005 08:29 PM
Re: Java1.5 on HP-UX 11.11: failed to load libjvm.sl even after LD_PRELOAD is defined
There's lot of stories like yours on ITRC:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=749817
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=150094
And so one...
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2005 09:52 PM
тАО05-15-2005 09:52 PM
Re: Java1.5 on HP-UX 11.11: failed to load libjvm.sl even after LD_PRELOAD is defined
Thanks for the reply. In fact, I have no problem to load libjvm.sl for jdk1.4.2 and below. The problem only occured for java1.5.
Today, I tried to simplify the problem by using the sample problem and env setting provided by HP in:
http://www.hp.com/products1/unix/java/infolibrary/prog_guide/JNI_java2.html#DynamicHotspot
And I got the following error:
pompeii:/export/home/usr/dynlib> echo $LD_PRELOAD
/export/home/usr/java1.5/jre/lib/PA_RISC2.0/hotspot/libjvm.sl
pompeii:/export/home/usr/dynlib> echo $SHLIB_PATH
/export/home/usr/java1.5/jre/lib/PA_RISC2.0/hotspot:/export/home/usr/java1
.5/jre/lib/PA_RISC2.0
pompeii:/export/home/usr/dynlib> ./loadjvm
aCC runtime: Error 215 from shl_findsym(/export/home/usr/java1.5/jre/lib/PA_R
ISC2.0/hotspot/libjvm.sl,_shlInit)
/usr/lib/dld.sl: Can't shl_load() a library containing Thread Local Storage: /ex
port/home/usr/java1.5/jre/lib/PA_RISC2.0/hotspot/libjvm.sl
/usr/lib/dld.sl: Exec format error
Abort(coredump)
pompeii:/export/home/usr/dynlib> ls
/usr/lib/dld.sl: Unresolved symbol: _edata (data) from /export/home/usr/java
1.5/jre/lib/PA_RISC2.0/hotspot/libjvm.sl
/usr/lib/dld.sl: Unresolved module for symbol: __shlinit (code) from /usr/lib/l
ibCsup.2
Abort(coredump)
The error for "ls" only goes away after I unset the LD_PRELOAD.
Thanks!
Yunshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-15-2005 10:29 PM
тАО05-15-2005 10:29 PM
Re: Java1.5 on HP-UX 11.11: failed to load libjvm.sl even after LD_PRELOAD is defined
Did you checked for new patches for this new Java release? There is a new Pthread patch: PHCO_30544...
Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2005 04:11 PM
тАО05-16-2005 04:11 PM
Re: Java1.5 on HP-UX 11.11: failed to load libjvm.sl even after LD_PRELOAD is defined
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2005 07:53 PM
тАО05-16-2005 07:53 PM
Re: Java1.5 on HP-UX 11.11: failed to load libjvm.sl even after LD_PRELOAD is defined
Check this thread with a "aCC runtime: Error 215 from shl_findsym..." like yours:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=62633
Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2005 11:28 PM
тАО05-16-2005 11:28 PM
Re: Java1.5 on HP-UX 11.11: failed to load libjvm.sl even after LD_PRELOAD is defined
$ aCC -z -o prog prog.o -L$JAVA_HOME/jre/lib/PA_RISC2.0/hotspot -ljvm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-16-2005 11:32 PM
тАО05-16-2005 11:32 PM
Re: Java1.5 on HP-UX 11.11: failed to load libjvm.sl even after LD_PRELOAD is defined
One more thread with this "aCC runtime: Error 215 from shl_findsym " issue:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=698024
Regards,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-23-2005 02:46 PM
тАО05-23-2005 02:46 PM
Re: Java1.5 on HP-UX 11.11: failed to load libjvm.sl even after LD_PRELOAD is defined
Received an answer from HP support, it is a bug in java 1.5. They provided a workaround:
->chatr +s enable -B deferred -B nonfatal
I have tested the workaround, it works.
Thanks for the help.