Operating System - Linux
1825766 Members
2072 Online
109687 Solutions
New Discussion

Unable to Load JVM (1.4.2.18) on HP-UX 11iv1

 
sriramN
New Member

Unable to Load JVM (1.4.2.18) on HP-UX 11iv1

Hi
I am unable to load JVM 1.4.2.18 on my system. Finally, after some narrowing it down, it turns out that I am unable to load one of the dependent libraries (libverify.sl)


bash-2.05b# ldd -r /opt/java1.4/jre/lib/PA_RISC2.0/libverify.sl
/usr/lib/libc.2 => /usr/lib/libc.2
/usr/lib/libdld.2 => /usr/lib/libdld.2
/usr/lib/libc.2 => /usr/lib/libc.2
/CLO/Components/JAVA_12/Src/build/HP_UX/lib/PA_RISC2.0/server/libjvm.sl => /opt/java1.4/jre/lib/PA_RISC2.0/server/libjvm.sl
/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/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: _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: _end (/usr/lib/libc.2)


I have the latest patches

- latest quality pack from dec07
- following libc, linker and pthread patches installed
bash-2.05b# swlist -l product | egrep "linker|pthread|libc"
PHCO_31923 1.0 libc cumulative header file patch
PHCO_32544 1.0 libc manpage cumulative patch
PHCO_32719 1.0 cumulative 10.20 libc compatibility support
PHCO_35743 1.0 libc cumulative patch
PHCO_36229 1.0 pthread library cumulative patch
PHSS_37517 1.0 ld(1) and linker tools cumulative patch

any help or pointers on how to resolve this issue will be much appreciated
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: Unable to Load JVM (1.4.2.18) on HP-UX 11iv1

>it turns out that I am unable to load one of the dependent libraries (libverify.sl)

Where are your errors? Your list of symbols not found are all bogus, in that they all must be in your executable.

It does mean your executable may be linked improperly. What does ldd show for your executable?
sriramN
New Member

Re: Unable to Load JVM (1.4.2.18) on HP-UX 11iv1

hi
thanks for the pointer. i didn't realize that the missing symbol was just the noise.

now, after some more looking into, this is what i have come up with

if i use a older version of jre 1.4.2, stuff works for me. however, if I use jre 1.4.2, the same c code crashes.

bash-2.05b# /opt/java1.4/jre/bin/java -version
java version "1.4.2.00"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.00-031015-15:06)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.00-031015-16:52-PA_RISC2.0 PA2.0, mixed mode)
bash-2.05b# ./bean/j2re1.4.2_18
./bean/j2re1.4.2_18 ./bean/j2re1.4.2_18.ORIG
bash-2.05b# ./bean/j2re1.4.2_18.ORIG/bin/java -version
java version "1.4.2.18"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2.18-080401-04:44)
Java HotSpot(TM) Server VM (build 1.4.2 1.4.2.18-080401-06:27-PA_RISC2.0 PA2.0 (aCC_AP), mixed mode)


i am using gcc to compile and not hp's c compiler . will this be a problem ? is there some thing i need to do use jre 1.4.2.18 with gcc ?

do i need to link with libcsup when using with gcc as well.

thanks for the pointers again
thanks
Dennis Handly
Acclaimed Contributor

Re: Unable to Load JVM (1.4.2.18) on HP-UX 11iv1

>if I use jre 1.4.2, the same C code crashes.

What type of crash?

>will this be a problem?

Not as long as you use gcc and not g++.

>do i need to link with libCsup when using with gcc as well.

No, that is only needed for aC++.