Can't open libnative.so -- trace info on SunOS 4.1.3

Christopher X. Candreva chris at westnet.com
Fri Aug 14 05:23:18 PDT 1998


So now that I know how to do a trace . . . My old problem with the error:
Failed to locate native library in path:        
        /usr/local/lib:/usr/lib:/usr/openwin/lib
Aborting.                                       

gets weird.  First thing the trace tells me is it couldn't open
/etc/ls.so.cache  OK, that file is 600 root. Make it 644. 

The real problem is, though. Kaffe opens /usr/local/lib/libnative.so  just
fine it seems. THEN it tries to open /usr/lib/libnative.so and
/usr/openwin/lib/libnative.so, failes, and prints the above message.

I'm attaching the trace lines for this portion. Let me know if the team
could use the entire trace.


open ("/usr/local/lib/libnative.so", 0, 035740000420) = 3
read (3, "".., 32) = 32
mmap (0, 122968, 0x5, 0x80000002, 3, 0) = 0xef6f6000
mmap (0xef710000, 16384, 0x7, 0x80000012, 3, 106496) = 0xef710000
open ("/dev/zero", 0, 05000100021) = 4
mmap (0xef714000, 88, 0x7, 0x80000012, 4, 0) = 0xef714000
close (3) = 0
munmap (0xef6f6000, 122968) = 0
close (4) = 0
open ("/usr/lib/libnative.so", 0, 01) = -1 ENOENT (No such file or directory)
open ("/usr/openwin/lib/libnative.so", 0, 01) = -1 ENOENT (No such file or directory)
write (2, "Failed to locate native library ".., 41) = Failed to locate native library in path:
41
write (2, "\t/usr/local/lib:/usr/lib:/usr/op".., 42) = 	/usr/local/lib:/usr/lib:/usr/openwin/lib
42
write (2, "Aborting.\n", 10) = Aborting.
10
fcntl (0, 03, 0) = 16450
fcntl (0, 04, 0x42) = 0
fcntl (1, 03, 0) = 16449
fcntl (1, 04, 0x41) = 0
fcntl (2, 03, 0) = 65
fcntl (2, 04, 0x41) = 0
close (0) = 0
close (1) = 0
close (2) = 0
exit (1) = ?


==========================================================
Chris Candreva  -- chris at westnet.com -- (914) 967-7816
WestNet Internet Services of Westchester
http://www.westnet.com/



More information about the kaffe mailing list