Odd (perhaps) problem with Kaffe 0.9.2 on SunOS

Joe Hartley jh at metheny.brainiac.com
Wed Dec 24 13:07:54 PST 1997


Sorry for dropping in like this, but this wasn't answered in the FAQ nor 
in the list archives (that I could find).

The system: SunOS 4.1.3, gcc 2.7.2.2, GNU make 3.75, kaffe 0.9.2.

The system configured, built and appeared to install OK.  When I
try to run an "make test", though, I keep getting the following error:

metheny:~/source/kaffe-0.9.2% gmake test
gmake[1]: Entering directory `/usr2/source/kaffe-0.9.2/test'
*** Running tests
error running
  Should have got:
Hello World!
  But got instead:
Failed to locate native library in path:
        /usr/local/lib:/usr/lib:/usr/local/X11/lib:/usr/local/lib:
Aborting.

But in /usr/local/lib, I have:

metheny:/usr/local/lib% ls -l | grep "Dec 24"
lrwxrwxrwx  1 root           16 Dec 24 10:14 libagent.so -> libagent.so.0.92
-rw-r--r--  1 root        32768 Dec 24 10:14 libagent.so.0.92
lrwxrwxrwx  1 root           18 Dec 24 10:14 libkaffevm.so -> libkaffevm.so.0.92
-rw-r--r--  1 root       720896 Dec 24 10:14 libkaffevm.so.0.92
lrwxrwxrwx  1 root           17 Dec 24 10:14 libnative.so -> libnative.so.0.92
-rw-r--r--  1 root       516096 Dec 24 10:14 libnative.so.0.92
lrwxrwxrwx  1 root           14 Dec 24 10:14 libnet.so -> libnet.so.0.92
-rw-r--r--  1 root       106496 Dec 24 10:14 libnet.so.0.92
lrwxrwxrwx  1 root           14 Dec 24 10:14 libzip.so -> libzip.so.0.92
-rw-r--r--  1 root        40960 Dec 24 10:14 libzip.so.0.92

/usr/local/lib has been in my LD_LIBRARY_PATH for a loooong time now :)

What I did next was to do a "make distclean" and reconfigure with the
--enable-staticlib option.  I first installed the 2 patches listed at
rufus.w3.org (BTW, the 2nd patch - patch.nosharedlib.tim - did not install
properly with patch.  I had to manually edit slib.h).

It then built OK, but when I ran the "gmake test", it failed:
KaffeVerifyBug ... error running
  Should have got:
okay
  But got instead:
java.lang.UnsatisfiedLinkError: no net in shared library path
        at java/lang/Throwable.<init>(line unknown, pc 170764)
        at java/lang/Error.<init>(line unknown, pc 17597c)
        at java/lang/LinkageError.<init>(line unknown, pc 175904)
        at java/lang/UnsatisfiedLinkError.<init>(line unknown, pc 17588c)
        at java/lang/Runtime.loadLibrary(line unknown, pc 16bbe0)
        at java/lang/System.loadLibrary(line unknown, pc 175118)
        at java/net/InetAddress.<clinit>(line unknown, pc 177194)
        at java/net/Socket.<init>(97)
        at KaffeVerifyBug.doit(21)
        at KaffeVerifyBug.main(9)

Arrgh!  OK, I have the patches in place - they say they're for the unshared
libs, but....

Reconfigure for shared libs, build - so far so good... Woo-hoo! the "gmake
test" completely succeeds!  Time for a "gmake install".  That goes just fine!
Time for the real challenge...

metheny:~/aim% kaffe -classpath AIM.jar main.Oscar
Failed to locate native library in path:
        /usr/lib:/usr/local/X11/lib:/usr/local/lib:
Aborting.

Wha???  OK, try the tests again...

metheny:~/source/kaffe-0.9.2/test% gmake test
*** Running tests
error running
  Should have got:
Hello World!
  But got instead:
Failed to locate native library in path:
        /usr/local/lib:/usr/lib:/usr/local/X11/lib:/usr/local/lib:
Aborting.


Doh!  That's it - I give up.  What the fsck is up with this software and the
SunOS platform?  Any tips from folks who have successfully installed this
on SunOS *greatly* appreciated!!

PS - my sub to the list doesn't appear to have been processed yet - CC: to
me if you'er going to respond, please.


========================================================================
        Joe Hartley - jh at brainiac.com - brainiac services, inc
 PO Box 5069 : Greene, RI : 02827 - vox 401.539.9050 : fax 401.539.2070
  Without deviation from the norm, "progress" is not possible. - FZappa



More information about the kaffe mailing list