java.lang.UnsatisfiedLinkError

Euisung Kang e.kang at ieee.org
Mon Jun 19 03:24:04 PDT 2000




java.lang.UnsatisfiedLinkError problem was solved. Thanks for your help!!
And I tried to  build kaffe with --with-debug but I had the error message
as seen below.

....
....
arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include
-I../../kaffe/kaffevm/systems/unix-jthreads -Iintrp -I./intrp
-I../../libltdl -DINTERPRETER -DKVER=\"1.0.5\"
-I/root/kaffe/kaffe-1.0.5/./kaffe/kaffevm
-I/root/kaffe/kaffe-1.0.5/./kaffe/kaffevm/systems/unix-jthreads
-I../../config -I../../include -I/usr/local/include -DDEBUG -g -O2 -Wall
-Wstrict-prototypes -fsigned-char -c gc-mem.c  -fPIC -DPIC
-Wp,-MD,.deps/gc-mem.TPlo -o gc-mem.lo
In file included from gc-mem.c:1:
mem/gc-mem.c: In function `gc_block_add':
mem/gc-mem.c:611: warning: implicit declaration of function `mprotect'
mem/gc-mem.c:611: `PROT_READ' undeclared (first use in this function)
mem/gc-mem.c:611: (Each undeclared identifier is reported only once
mem/gc-mem.c:611: for each function it appears in.)
mem/gc-mem.c:611: `PROT_WRITE' undeclared (first use in this function)
mem/gc-mem.c:611: `PROT_EXEC' undeclared (first use in this function)
make[3]: *** [gc-mem.lo] Error 1
make[3]: Leaving directory `/root/kaffe/kaffe-1.0.5/kaffe/kaffevm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/kaffe/kaffe-1.0.5/kaffe/kaffevm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/kaffe/kaffe-1.0.5/kaffe'
make: *** [all-recursive] Error 1


Is there any patch to solve this problem?
Thanks.

--
Euisung Kang,
mailto:e.kang at ieee.org

"Edouard G. Parmelan" wrote:

> >
> > # jar cf t1.jar *.class
> > java.lang.UnsatisfiedLinkError: Failed to locate native
> > function:java/util/zip/Deflater.init(Z)V
>
> I guest configure was unable to detect libz :(
> Check in config.cache these values
>
>     ac_cv_header_zlib_h
>     ac_cv_lib_z_deflate
>
> If they does not set to `yes', cross-compile libz.
>
> Also, read FAQ/FAQ.requirelibraries for others missing libraries.
>
> If configure have find libz, it could be nother problem.  I hope you
> have enable debuging (configure --enable-debug).  If so, you could run:
>
>     $ kaffe -vmdebug NATIVELIB kaffe.tools.jar.Jar cf t1.jar *.class
>
> to trace native methods lookup.
> --
> Edouard G. Parmelan
> http://egp.free.fr



More information about the kaffe mailing list