Operating System - HP-UX
1832275 Members
1825 Online
110041 Solutions
New Discussion

HPUX Java not loading ELF32 shareable libraries

 
hfraser1
Frequent Visitor

HPUX Java not loading ELF32 shareable libraries

The host is HP-UX 11.31 on ia64. I am trying to run Eclipse using java 8, installed from Itanium_JDK_JRE_8.0.04_Dec_2015_Z7550-63333_java8_18004_ia.depot.

When I run eclipse, I get an error stating that it cannot find libgdk-x11-2.0.so, libgtk-x11-2.0.so, libgobject-2.0.so, and libgdk_pixbuf-2.0.so. These 4 libraries are elf32 libraries, and the "file" command returns "ELF-32 shared object file - IA64"

Paths are correct and the file does in fact exist. When I run eclipse under tusc, I can see the access to the library, but the header indicates it's an elf32 library, not elf64, and it's immediately closed instead of being mapped.

open("/opt/gtk2.6/lib/libgdk-x11-2.0.so", O_RDONLY|0x800, 0) = 4
fstat(4, 0x9fffffffffffe6e0) ............................. = 0
read(4, "7fE L F 0102010101\0\0\0\0\0\0\0".., 64) ........ = 64
close(4) ................................................. = 0

I've tried running eclipse with the -d32 options, but no luck.

java version "1.8.0.04-hp-ux"
Java(TM) SE Runtime Environment (build 1.8.0.04-hp-ux-b2)
Java HotSpot(TM) Server VM (build 25.04-b2, mixed mode)

The elf64 libraries seem to be loading correctly.

open("/lib/hpux64/librt.so.1", O_RDONLY|0x800, 0) ........ = 4
fstat(4, 0x9fffffffffffed00) ............................. = 0
read(4, "7fE L F 0202010101\0\0\0\0\0\0\0".., 64) ........ = 64
pread(4, "7fE L F 0202010101\0\0\0\0\0\0\0".., 1024, 0) .. = 1024
mmap(NULL, 30416, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 4, 0) = 0xc000000000218000
mmap(NULL, 260, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_SHLIB, 4, 65536) = 0x9fffffffbf7fe000
close(4) ................................................. = 0

Any suggestions? I am stumped.

5 REPLIES 5
Dennis Handly
Acclaimed Contributor

Re: HP-UX Java not loading ELF32 shared libraries

What does tusc(1) say is the bit-ness of the process trying to load those shlibs?

 

>The elf64 libraries seem to be loading correctly.

 

This indicates a 64 bit process.

hjfraser
Frequent Visitor

Re: HP-UX Java not loading ELF32 shared libraries

execve("./eclipse", 0x9ffffffffffff2d0, 0x9ffffffffffff2f0) .......................................................... = 0 [64-bit]

Tusc shows it's a 64-bit version.

ranganath ramachandra
Esteemed Contributor

Re: HP-UX Java not loading ELF32 shared libraries

ELF-32 libraries cannot be used in a process with an ELF-64 executable, you will have to find the ELF-64 version of that library and use that.

 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

Alex19
New Member

Re: HP-UX Java not loading ELF32 shared libraries

I am having similar problem . Where can we find 64 bit version of libgtk-x11-2.0.so library? Thanks!

ranganath ramachandra
Esteemed Contributor

Re: HP-UX Java not loading ELF32 shared libraries

It seems that the gtk packages available at HP-UX connect contain only 32-bit binaries. You can contact HP-UX connect by e-mail to request a 64-bit build or try to build the 64-bit version yourself with the source bundle available there.

 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo