Re: java.lang.UnsatisfiedLinkError

2000-06-19 Thread Euisung Kang




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:[EMAIL PROTECTED]

"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




Re: java.lang.UnsatisfiedLinkError

2000-06-19 Thread Edouard G. Parmelan


Euisung Kang wrote:

 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.
 
 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)
 
 Is there any patch to solve this problem?

I hope you could add in config/arm/linux/config.frag

  ac_cv_func_mmap_fixed_mapped={$ac_cv_func_mmap_fixed_mapped=yes}

Said me if it solve your problem.
-- 
Edouard G. Parmelan
http://egp.free.fr



Re: java.lang.UnsatisfiedLinkError

2000-06-19 Thread Euisung Kang




"Edouard G. Parmelan" wrote:

  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)
 
  Is there any patch to solve this problem?

 I hope you could add in config/arm/linux/config.frag

   ac_cv_func_mmap_fixed_mapped={$ac_cv_func_mmap_fixed_mapped=yes}

I added the following line in config.frag.

   ac_cv_func_mmap_fixed_mapped=${ac_cv_func_mmap_fixed_mapped='yes'}

 Said me if it solve your problem.

Now, I have no error messages while compiling kaffe with --enbable-debug.
Thank you so much.





java.lang.UnsatisfiedLinkError

2000-06-16 Thread Euisung Kang



Hi,

I cross-compiled kaffe on to arm-linux. Now, I am verifying whether
kaffe was successfully built or not. It works nicely when I compile
hello.java and execute hello.class. However, it seems that kaffe has
trouble with jar program. How can I fix the following error?

# jar cf t1.jar *.class
java.lang.UnsatisfiedLinkError: Failed to locate native
function:java/util/zip/Deflater.init(Z)V
at java.util.zip.Deflater.init(Deflater.java:48)
at java.util.zip.Deflater.init(Deflater.java:58)
at
java.util.zip.DeflaterOutputStream.init(DeflaterOutputStream.java:24)
at java.util.zip.ZipOutputStream.init(ZipOutputStream.java:90)
at java.util.jar.JarOutputStream.init(JarOutputStream.java:22)
at kaffe.tools.jar.Jar.createJar(Jar.java:950)
at kaffe.tools.jar.Jar.processJar(Jar.java:399)
at kaffe.tools.jar.Jar.start(Jar.java:60)
at kaffe.tools.jar.Jar.main(Jar.java:39)

#jar xvf test.jar
java.lang.UnsatisfiedLinkError: Failed to locate native
function:java/util/zip/Inflater.init(Z)V
at java.util.zip.Inflater.init(Inflater.java:33)
at kaffe.util.zip.SwitchInflater.init(SwitchInflater.java:23)
at java.util.zip.ZipInputStream.init(ZipInputStream.java:26)
at kaffe.tools.jar.Jar.extractFilesInJar(Jar.java:696)
at kaffe.tools.jar.Jar.processJar(Jar.java:405)
at kaffe.tools.jar.Jar.start(Jar.java:60)
at kaffe.tools.jar.Jar.main(Jar.java:39)

Thanks in advance.

--
Euisung Kang





Re: java.lang.UnsatisfiedLinkError

2000-06-16 Thread Edouard G. Parmelan


Euisung Kang wrote:

 I cross-compiled kaffe on to arm-linux. Now, I am verifying whether
 kaffe was successfully built or not. It works nicely when I compile
 hello.java and execute hello.class. However, it seems that kaffe has
 trouble with jar program. How can I fix the following error?
 
 # 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