Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Java JDK(JRE)-1.3.1 from Compaq on FC2 Alpha
@ 2004-08-19  7:48 andrija.pantovic
  2004-08-19 20:37 ` adi
  0 siblings, 1 reply; 5+ messages in thread
From: andrija.pantovic @ 2004-08-19  7:48 UTC (permalink / raw)


Hello,

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):

- compile the attached file:  # gcc -O2 -shared -o libcwait.so -fpic -c 
libcwait.c
- copy libcwait.so to a proper place (/usr/local/lib for instance)
- put the following in the beginning of your /usr/java/jdk1.3.1/bin/java 
(or /usr/java/jre1.3.1/bin/java) or elsewhere depending on your needs:

LD_ASSUME_KERNEL=2.4.19
LD_PRELOAD=/usr/local/lib/libcwait.so
export LD_ASSUME_KERNEL LD_PRELOAD


So now we have Java available on FC2 for Alpha ! Java 1.3.1 from HP is already 
quite old and quite slow but is the best (and only) currently available on 
Linux/Alpha at the moment (I'd like so very much if somebody tells me I am 
wrong and if there is some work going on with newer Java releases for 
Linux/Alpha)

Regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libcwait.c
Type: text/x-csrc
Size: 196 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/axp-list/attachments/20040819/309a98fd/attachment.bin>
-------------- next part --------------

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Java JDK(JRE)-1.3.1 from Compaq on FC2 Alpha
  2004-08-19  7:48 andrija.pantovic
@ 2004-08-19 20:37 ` adi
  0 siblings, 0 replies; 5+ messages in thread
From: adi @ 2004-08-19 20:37 UTC (permalink / raw)



Quoting Andrija Pantovic <andrija.pantovic at ubs.com>:

> So now we have Java available on FC2 for Alpha ! Java 1.3.1 from HP is
Thank you!!

> Linux/Alpha at the moment (I'd like so very much if somebody tells me I am
> wrong and if there is some work going on with newer Java releases for
> Linux/Alpha)
Indeed. I wonder why a running, up-to-date Java for Linux-Alpha isn't a more
often heard wish, or do you all suffer in silence waiting for this? I dare to
express I really would be glad to see an ongoing Java development also for the
Alphas.

Regards, Adrian.






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Java JDK(JRE)-1.3.1 from Compaq on FC2 Alpha
@ 2004-08-30 21:44 adi
  2004-08-31  3:54 ` gatgul
  0 siblings, 1 reply; 5+ messages in thread
From: adi @ 2004-08-30 21:44 UTC (permalink / raw)


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):
[...]






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Java JDK(JRE)-1.3.1 from Compaq on FC2 Alpha
  2004-08-30 21:44 Java JDK(JRE)-1.3.1 from Compaq on FC2 Alpha adi
@ 2004-08-31  3:54 ` gatgul
  2004-09-01 14:10   ` adi
  0 siblings, 1 reply; 5+ messages in thread
From: gatgul @ 2004-08-31  3:54 UTC (permalink / raw)


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
> 
> 






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Java JDK(JRE)-1.3.1 from Compaq on FC2 Alpha
  2004-08-31  3:54 ` gatgul
@ 2004-09-01 14:10   ` adi
  0 siblings, 0 replies; 5+ messages in thread
From: adi @ 2004-09-01 14:10 UTC (permalink / raw)


Hello again

U. George wrote:

>> 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.
Does LD_LIBRARY_PATH change, if I insert LD_ASSUME_KERNEL and LD_PRELOAD
as Andrija writes?

Still, I don't have a clue how to proceed, any help would be appreciated
since Java isn't working for me (except java -version ...). Thank you!

Regards, Adrian.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-09-01 14:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-30 21:44 Java JDK(JRE)-1.3.1 from Compaq on FC2 Alpha adi
2004-08-31  3:54 ` gatgul
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox