Kaffe 0.9.1 problem
Sandromar Ferreira
sandro at bbamerindus.com.br
Wed Jul 9 11:28:16 PDT 1997
Hi all,
If I attempt to compile a simple java program with kaffe, and the
following message is showed:
-------
kaffe: can't resolve symbol 'java_lang_reflect_Field_setShort'
kaffe: can't resolve symbol 'java_lang_reflect_Field_setByte'
kaffe: can't resolve symbol 'java_lang_reflect_Field_getByte'
kaffe: can't resolve symbol 'java_lang_reflect_Field_getDouble'
kaffe: can't resolve symbol 'java_lang_reflect_Field_getModifiers'
kaffe: can't resolve symbol 'java_lang_reflect_Field_getShort'
kaffe: can't resolve symbol 'java_lang_reflect_Field_setDouble'
kaffe: can't resolve symbol 'java_lang_reflect_Field_getFloat'
kaffe: can't resolve symbol 'java_lang_reflect_Field_getBoolean'
kaffe: can't resolve symbol 'java_lang_reflect_Field_setFloat'
kaffe: can't resolve symbol 'java_lang_reflect_Field_setBoolean'
kaffe: can't resolve symbol 'java_lang_reflect_Field_setLong'
kaffe: can't resolve symbol 'java_lang_reflect_Field_setChar'
kaffe: can't resolve symbol 'java_lang_reflect_Field_getInt'
kaffe: can't resolve symbol 'java_lang_reflect_Field_getChar'
kaffe: can't resolve symbol 'java_lang_reflect_Field_getLong'
kaffe: can't resolve symbol 'java_lang_reflect_Field_setInt'
Failed to locate native library in path:
/lib:/usr/lib
Aborting.
--
I executed the strace for linux, and the following log is showed:
----
execve("/usr/bin/kaffe", ["kaffe", "sun.tools.javac.Main", "test.java"],
[/* 23 vars */]) = 0
mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x50007000
mprotect(0x50000000, 24711, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x10000, 10904, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
stat("/etc/ld.so.cache", {st_mode=S_IFREG|0644, st_size=8076, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY) = 4
mmap(0, 8076, PROT_READ, MAP_SHARED, 4, 0) = 0x50008000
close(4) = 0
stat("/etc/ld.so.preload", 0xeffff8f8) = -1 ENOENT (No such file or
directory)
open("/usr/lib/libkaffe_vm.so", O_RDONLY) = 4
read(4, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
mmap(0, 344064, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x50017000
mmap(0x50017000, 218160, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4,
0) = 0x50017000
mmap(0x5005c000, 9936, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 4, 0x35000) = 0x5005c000
mmap(0x5005f000, 47368, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x5005f000
close(4) = 0
mprotect(0x50017000, 218160, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
open("/usr/lib/libc.so.5", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libc.so.5", O_RDONLY) = 4
read(4, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
mmap(0, 978944, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x5006b000
mmap(0x5006b000, 675744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4,
0) = 0x5006b000
mmap(0x5011f000, 36164, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 4, 0xa4000) = 0x5011f000
mmap(0x50128000, 203392, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x50128000
close(4) = 0
mprotect(0x5006b000, 675744, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
open("/usr/lib/libm.so.5", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libm.so.5", O_RDONLY) = 4
read(4, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
mmap(0, 110592, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x5015a000
mmap(0x5015a000, 35568, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4,
0) = 0x5015a000
mmap(0x50172000, 8952, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 4, 0x8000) = 0x50172000
close(4) = 0
mprotect(0x5015a000, 35568, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
open("/usr/lib/libc.so.5", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/libdl.so.1", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/libdl.so.1", O_RDONLY) = 4
read(4, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
mmap(0, 73728, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x50175000
mmap(0x50175000, 5471, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0)
= 0x50175000
mmap(0x50186000, 1796, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 4, 0x1000) = 0x50186000
close(4) = 0
mprotect(0x50175000, 5471, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x10000, 10904, PROT_READ|PROT_EXEC) = 0
mprotect(0x50017000, 218160, PROT_READ|PROT_EXEC) = 0
mprotect(0x5006b000, 675744, PROT_READ|PROT_EXEC) = 0
mprotect(0x5015a000, 35568, PROT_READ|PROT_EXEC) = 0
mprotect(0x50175000, 5471, PROT_READ|PROT_EXEC) = 0
mprotect(0x50000000, 24711, PROT_READ|PROT_EXEC) = 0
geteuid() = 0
getuid() = 0
getgid() = 0
getegid() = 0
brk(0x122cf0) = 0x122cf0
brk(0x24000) = 0x24000
brk(0x124000) = 0x124000
stat(".", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
stat("/usr/share/kaffe/classes.zip", {st_mode=S_IFREG|0644,
st_size=9328693, ...}) = 0
stat("/usr/share/kaffe/biss.zip", {st_mode=S_IFREG|0644, st_size=484303,
...}) = 0
open("/usr/lib/libkaffe_native.so", O_RDONLY) = 4
read(4, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
mmap(0, 126976, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x50187000
mmap(0x50187000, 53226, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4,
0) = 0x50187000
mmap(0x501a3000, 8200, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 4, 0xc000) = 0x501a3000
close(4) = 0
mprotect(0x50187000, 53226, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
brk(0x127000) = 0x127000
brk(0x128000) = 0x128000
brk(0x129000) = 0x129000
brk(0x12a000) = 0x12a000
open("/usr/lib/libm.so.5", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/libc.so.5", O_RDONLY) = -1 ENOENT (No such file or
directory)
write(2, "kaffe: can\'t resolve symbol \'j"..., 63) = 63
write(2, "kaffe: can\'t resolve symbol \'j"..., 62) = 62
write(2, "kaffe: can\'t resolve symbol \'j"..., 62) = 62
write(2, "kaffe: can\'t resolve symbol \'j"..., 64) = 64
write(2, "kaffe: can\'t resolve symbol \'j"..., 67) = 67
write(2, "kaffe: can\'t resolve symbol \'j"..., 63) = 63
write(2, "kaffe: can\'t resolve symbol \'j"..., 64) = 64
write(2, "kaffe: can\'t resolve symbol \'j"..., 63) = 63
write(2, "kaffe: can\'t resolve symbol \'j"..., 65) = 65
write(2, "kaffe: can\'t resolve symbol \'j"..., 63) = 63
write(2, "kaffe: can\'t resolve symbol \'j"..., 65) = 65
write(2, "kaffe: can\'t resolve symbol \'j"..., 62) = 62
write(2, "kaffe: can\'t resolve symbol \'j"..., 62) = 62
write(2, "kaffe: can\'t resolve symbol \'j"..., 61) = 61
write(2, "kaffe: can\'t resolve symbol \'j"..., 62) = 62
write(2, "kaffe: can\'t resolve symbol \'j"..., 62) = 62
write(2, "kaffe: can\'t resolve symbol \'j"..., 61) = 61
munmap(0x50187000, 123912) = 0
open("/lib/libkaffe_native.so", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/libkaffe_native.so", O_RDONLY) = 4
read(4, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
mmap(0, 126976, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x50187000
mmap(0x50187000, 53226, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4,
0) = 0x50187000
mmap(0x501a3000, 8200, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED, 4, 0xc000) = 0x501a3000
close(4) = 0
mprotect(0x50187000, 53226, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
open("/usr/lib/libm.so.5", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/usr/lib/libc.so.5", O_RDONLY) = -1 ENOENT (No such file or
directory)
write(2, "kaffe: can\'t resolve symbol \'j"..., 63) = 63
write(2, "kaffe: can\'t resolve symbol \'j"..., 62) = 62
write(2, "kaffe: can\'t resolve symbol \'j"..., 62) = 62
write(2, "kaffe: can\'t resolve symbol \'j"..., 64) = 64
write(2, "kaffe: can\'t resolve symbol \'j"..., 67) = 67
write(2, "kaffe: can\'t resolve symbol \'j"..., 63) = 63
write(2, "kaffe: can\'t resolve symbol \'j"..., 64) = 64
write(2, "kaffe: can\'t resolve symbol \'j"..., 63) = 63
write(2, "kaffe: can\'t resolve symbol \'j"..., 65) = 65
write(2, "kaffe: can\'t resolve symbol \'j"..., 63) = 63
write(2, "kaffe: can\'t resolve symbol \'j"..., 65) = 65
write(2, "kaffe: can\'t resolve symbol \'j"..., 62) = 62
write(2, "kaffe: can\'t resolve symbol \'j"..., 62) = 62
write(2, "kaffe: can\'t resolve symbol \'j"..., 61) = 61
write(2, "kaffe: can\'t resolve symbol \'j"..., 62) = 62
write(2, "kaffe: can\'t resolve symbol \'j"..., 62) = 62
write(2, "kaffe: can\'t resolve symbol \'j"..., 61) = 61
munmap(0x50187000, 123912) = 0
open("/usr/local/lib/libkaffe_native.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/share/kaffe/lib/libkaffe_native.so", O_RDONLY) = -1 ENOENT
(No such file or directory)
write(2, "Failed to locate native library "..., 41) = 41
write(2, "\t/usr/lib:/lib:/usr/lib:/usr/lo"..., 60) = 60
write(2, "Aborting.\n", 10) = 10
exit(1) = ?
----
Can you help me ?
Sandro.
---
CLASSPATH=.:/usr/share/kaffe/classes.zip:/usr/share/kaffe/biss.zip
LD_LIBRARY_PATH=/usr/lib:/lib:/usr/X11/lib:/usr/local/lib:/usr/share/kaffe/lib
KAFFEHOME=/usr/share/kaffe
$ cat /etc/ld.so.conf
/usr/X11R6.1/lib
/usr/local/lib
/usr/lib
/lib
/usr/X11/lib
/usr/X11R6/lib
O.S. = Linux-sparc RedHat - kernell 2.0.30
Machine = Sun SparcClassic - sun4m
More information about the kaffe
mailing list