[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

JRE won't work as my cpml_ev5.so is zero size :-(



Gustaf Erikson <gustafe@home.se> wrote on Date: 20 Mar 2001 

> I've downloaded the Compaq beta SDK from
> I converted the RPM's to debs with alien, and installed them in the   
> However, when I try checking if java works, I get:

> [ger@rhino:~ ]$ /usr/java/jdk1.3.1/bin/java -version
> /usr/java/jdk1.3.1/bin/alpha/native_threads/java: error in loading
> shared
> +libraries: libcpml.so: cannot read file data: No such file or
> directory

I have exactly the same problem: Gustaf later mentioned that Per Wigren
said there was a bug in aliens rpm2cpio, the relevant .so file is of
size 0 so my JRE won't run.

Yep thats what I have:
/usr/lib/compaq/cpml-5.1.0 $ ls -l
total 1244
-rwxr-xr-x    1 307      root         5000 Apr 18  2000 cpml.h
-rw-r--r--    1 307      root      1260596 Mar 29  2001 libcpml_ev5.a
-rw-r--r--    1 307      root            0 Mar 30  2001 libcpml_ev5.so

Bernard Hugueney the next day suggested converting rpm to a tgz and I
have tried that but that also has a zero sized .so
I tried using rpm directly but it won't run as I dont have a 
/var/lib/rpm/packages.rpm so it won't cooperate with me :-)

*** I presume that IF I get a non-zero "libcpml_ev5.so" and   ***
*** place it in the /usr/lib/compaq/cpml-5.1.0 directory then *** 
*** run ldconfig all will be OK ?                             ***

I found the FAQ on Compaq which said to rm the .so file and create it
thus:
ld -shared -o libcpml_ev5.so -soname libcpml.so \
                -whole-archive libcpml_ev5.a -no-whole-archive -lots
             strip libcpml_ev5.so

but there is no command option -lots strip (or similar) in ld's man
page.

What should be that last option to ld?

Mike
-- 
--------------------------------------------------------------------
Michael Lake
Active caver, Linux enthusiast and interested in anything technical.
Safety Convenor, Australian Speleological Federation
Owner, Speleonics (Australia)  <^~^::^~^>
--------------------------------------------------------------------



Reply to: