From mboxrd@z Thu Jan 1 00:00:00 1970 From: gatgul at gatworks.com (U. George) Date: Mon, 30 Aug 2004 23:54:57 -0400 Subject: Java JDK(JRE)-1.3.1 from Compaq on FC2 Alpha References: <1093902273.41339fc1d544b@www> Message-ID: <4133F691.108@gatworks.com> I suspect that the shell wrapper is trying to run some programs, where the dynamic linker is having problems with the shared library "libcwait.so" I think that you will find that "/usr/java/jdk1.3.1/bin/java" is a symbolic link to .java_wrapper - a shell script. Trace that ( sh -x /usr/java/jdk1.3.1/bin/java ) and you might see that the shell script tries to run "basename", but the dynamic linker barfs with the error: > basename: error while loading shared libraries: > /usr/local/lib/libcwait.so: ELF file's phentsize not the expected size I dont know what phentsize is, or how to correct that. But if the shell script wants to use "basename" then your LD_LIBRARY_PATH should point to where basename can find the libraries it was compiled against. theory is that one can replace dynamic libraries at whim, and everything should be A-OK. Its just not always true! /gat Adrian Zaugg wrote: > Hi Andrija > > Somehow, I have troubles using your workaround. Without inserting the > three lines in java, java -version works. As soon as I insert them, I > get the following errors: > > # /usr/java/jdk1.3.1/bin/java -version > basename: error while loading shared libraries: > /usr/local/lib/libcwait.so: ELF file's phentsize not the expected size > uname: error while loading shared libraries: /usr/local/lib/libcwait.so: > ELF file's phentsize not the expected size > uname: error while loading shared libraries: /usr/local/lib/libcwait.so: > ELF file's phentsize not the expected size > ls: error while loading shared libraries: /usr/local/lib/libcwait.so: > ELF file's phentsize not the expected size > expr: error while loading shared libraries: /usr/local/lib/libcwait.so: > ELF file's phentsize not the expected size > expr: error while loading shared libraries: /usr/local/lib/libcwait.so: > ELF file's phentsize not the expected size > dirname: error while loading shared libraries: > /usr/local/lib/libcwait.so: ELF file's phentsize not the expected size > dirname: error while loading shared libraries: > /usr/local/lib/libcwait.so: ELF file's phentsize not the expected size > Error: can't find libjava.so. > > > For the last error, it should find it: > > # ls -l /usr/lib/libjava.so > lrwxrwxrwx 1 root root 41 Aug 30 23:32 /usr/lib/libjava.so -> > ../java/jdk1.3.1/jre/lib/alpha/libjava.so > > and > > # dir ../java/jdk1.3.1/jre/lib/alpha/libjava.so > -rwxr-xr-x 1 root root 407428 Jul 20 2001 > ../java/jdk1.3.1/jre/lib/alpha/libjava.so > > The other errors are beyond my knowledge... Could you please give me a hint? > > Thank you! > > Regards, Adrian. > > Andrija Pantovic wrote: > > >>Here is a workarround for Java 1.3.1 from HP/Compaq/DEC that helps it working >>(you need to have latest glibc otherwise java crashes with segfault): > > [...] > > > > > _______________________________________________ > axp-list mailing list > axp-list at redhat.com > https://www.redhat.com/mailman/listinfo/axp-list > >