From: gatgul at gatworks.com (U. George)
Subject: Java JDK(JRE)-1.3.1 from Compaq on FC2 Alpha
Date: Mon, 30 Aug 2004 23:54:57 -0400 [thread overview]
Message-ID: <4133F691.108@gatworks.com> (raw)
In-Reply-To: 1093902273.41339fc1d544b@www
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
>
>
next prev parent reply other threads:[~2004-08-31 3:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-30 21:44 Java JDK(JRE)-1.3.1 from Compaq on FC2 Alpha adi
2004-08-31 3:54 ` gatgul [this message]
2004-09-01 14:10 ` adi
-- strict thread matches above, loose matches on Subject: below --
2004-08-19 7:48 andrija.pantovic
2004-08-19 20:37 ` adi
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox