"Failed to locate native library" on SunOS 4.1.3

Kiyo Inaba inaba at src.ricoh.co.jp
Thu Jul 16 11:50:29 PDT 1998


>the kaffe shell script adds /usr/local/lib to LD_LIBRARY_PATH. Since it's
>already in my path, it showed up twice. I commented that out of
>/usr/local/bin/kaffe

That should not be a problem.
But if you think it introduces some new problem, just use Kaffe
rather than kaffe with proper LD_LIBRARY_PATH.

>I change the permissions on all the *.so.1.00 files to 755 (since most of my
>other .so files seem to be execute).

It need not to be. You can see my environment attached.

>No luck. I still get 
>Failed to locate native library in path:        
>        /usr/local/lib:/usr/lib:/usr/openwin/lib
>Aborting.                                       
>
>I'm assuming now this message refers to libnative.so.1.00 ?

I don't think so.
I attached what happens when Kaffe can not find this library.
The major difference between your config and mine is OS
minor revision, I mean mine is 4.1.4 rather than 4.1.3.
But I hope it should not make big difference.

If you need some more info like config.cache, please let me
know. I can even send you working binary if you want ;-)

# For the time being, I use interpreter rather than jit but
# I've tested jit also works.

Kiyo

------------ Here, I provide some execution profile ----------
snoopy/test> cat /etc/motd
SunOS Release 4.1.4 (SNOOPY) #7: Fri May 26 18:37:20 JST 1995
snoopy/test> ls -l /usr/local/lib/*.so.1.00
-rw-r--r--   1 inaba    fsadm      770048 Jul 16 16:18 /usr/local/lib/libkaffevm.so.1.00
-rw-r--r--   1 inaba    fsadm       24576 Jul 16 16:18 /usr/local/lib/libmanagement.so.1.00
-rw-r--r--   1 inaba    fsadm       49152 Jul 16 16:18 /usr/local/lib/libmath.so.1.00
-rw-r--r--   1 inaba    fsadm      466944 Jul 16 16:18 /usr/local/lib/libnative.so.1.00
-rw-r--r--   1 inaba    fsadm       98304 Jul 16 16:18 /usr/local/lib/libnet.so.1.00
-rw-r--r--   1 inaba    fsadm       57344 Jul 16 16:18 /usr/local/lib/libzip.so.1.00
snoopy/test> ls -l /usr/local/bin/Kaffe
-rwxr-xr-x   1 inaba    fsadm       98304 Jul 16 16:18 /usr/local/bin/Kaffe
snoopy/test> Kaffe -version
Kaffe Virtual Machine
Copyright (c) 1996, 1997, 1998
Transvirtual Technologies, Inc.  All rights reserved
Engine: Interpreter   Version: 1.00   Java Version: 1.1
snoopy/test> echo $LD_LIBRARY_PATH
/usr/local/MF/lib:/usr/local/TeX/lib:/usr/local/X11R5/lib:/usr/local/GNU/lib:/usr/local/lib:/usr/lib
snoopy/test> echo $CLASSPATH
.:/usr/src/local/Lang/Java/Kaffe/kaffe-snap-dii/test:/usr/local/share/kaffe/Klasses.jar:/usr/local/share/kaffe/pizza.jar:/usr/local/share/java-1.1.6/classes.zip
snoopy/test> Kaffe HelloWorldApp
Hello World!
snoopy/lib> mv /usr/local/lib/libkaffevm.so.1.00 /usr/local/lib/libkaffevm.so.1.00.save
snoopy/test> Kaffe HelloWorldApp
ld.so: libkaffevm.so.1: not found


More information about the kaffe mailing list