Blackdown java run-time link problems on sarge
I am having run-time link problems with my java app. I am using the
Blackdown 1.4 Java SDK on testing. When I try to run my app, I get:
$ ./jvm_dump_system_property
./jvm_dump_system_property: error while loading shared libraries: libjava.so: cannot open shared object file: No such file or directory
So the first step is to see what ldd says:
$ ldd jvm_dump_system_property
libjava.so => not found
libjvm.so => /usr/lib/j2se/1.4/jre/lib/i386/server/libjvm.so (0x40023000)
libverify.so => not found
libc.so.6 => /lib/libc.so.6 (0x4068c000)
libnsl.so.1 => /lib/libnsl.so.1 (0x407bb000)
libm.so.6 => /lib/libm.so.6 (0x407d0000)
libdl.so.2 => /lib/libdl.so.2 (0x407f2000)
libpthread.so.0 => /lib/libpthread.so.0 (0x407f5000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Where we can see that libjava.so cannot be found.
I have modified the ld configuration file (and I am not sure why the
package install did not do so):
$ cat /etc/ld.so.conf
/usr/X11R6/lib
/usr/lib/atlas
/usr/lib/j2se/1.4/jre/lib/i386
/usr/lib/j2se/1.4/jre/lib/i386/server
We can see that ldconfig seems to know where libjava.so is (as well as
libjvm.so, which ldd did find):
$ ldconfig -p | grep 'libjava.so\|libjvm.so'
libjvm.so (libc6) => /usr/lib/j2se/1.4/jre/lib/i386/server/libjvm.so
libjava.so (libc6, hwcap: 0x1000000000000) => /usr/lib/j2se/1.4/jre/lib/i386/libjava.so
The only suspicious part is the hwcap value.
Here are the java packages that I have installed:
$ dpkg -l 'j2*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
pn j2re1.3 <none> (no description available)
ii j2re1.4 1.4.0.99beta-1 Blackdown Java(TM) 2 Runtime Environment, St
rc j2sdk1.3 1.3.1.02b-2 Blackdown Java(TM) 2 SDK, Standard Edition
rc j2sdk1.3-doc 1.3.1.02b-2 Java(TM) 2 SDK, Standard Edition -- Document
ii j2sdk1.4 1.4.0.99beta-1 Blackdown Java(TM) 2 SDK, Standard Edition
ii j2sdk1.4-doc 1.4.0.99beta-1 Java(TM) 2 SDK, Standard Edition -- Document
ii j2sdk1.4-src 1.4.0.99beta-1 Blackdown Java(TM) 2 SDK, Standard Edition,
ii j2se-common 1.1 Common facilities for all Java2 Standard Edi
Some messages I have seen on the net hint that the version of libc may
be important as well, although they seem to refer to libc6-2.2 and
j2re-1.3:
$ dpkg -l libc6-dev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii libc6-dev 2.3.2-7 GNU C Library: Development Libraries and Hea
And here is where I am getting them from:
$ cat /etc/apt/sources.list
# Debian testing
deb http://debian.fifi.org/debian/ testing main contrib non-free
deb http://debian.teleglobe.net/non-US/ testing/non-US main contrib non-free
# Debian testing security updates
deb http://security.debian.org/ testing/updates main contrib non-free
# Debian unstable
deb http://http.us.debian.org/debian unstable main non-free contrib
deb http://non-us.debian.org/debian-non-US unstable/non-US main contrib non-free
# Blackdown Java
deb ftp://ftp.tux.org/pub/java/debian testing main non-free
And I am at testing:
$ cat /etc/apt/apt.conf
APT::Default-Release "testing";
Any help would be appreciated.
Thanks
--
Tom Schutter
t.schutter@att.net
Reply to: