Keffe/CVS doesn't compile

Edouard G. Parmelan Edouard.Parmelan at quadratec.fr
Mon Jul 26 06:40:46 PDT 1999


Pavel Roskin wrote:

> 
> Hello!
> 
> Something is wrong with the current Kaffe.
Tim just merge ``JIT3 not yet finish'' in CVS Tree.

> There are errors while compiling soft.c
> 
> Firstly, soft_divzero should return void.
> Secondly, NoSuchMethodError is not defined.
> If I fix soft_divzero, there is still an error while linking:
> 
> ../kaffevm/.libs/libkaffevm.so: undefined reference to `NoSuchFieldError'

Try the following patch
-- 
Edouard G. Parmelan                         Ingenieur Developpeur
Quadratec - Parc Club "Orsay Universite" - 14/16,rue Jean Rostand
91893 Orsay Cedex - FRANCE               Phone (+33)1 69 33 20 80
Email: edouard.parmelan at quadratec.fr http://membres.tripod.fr/egp
-------------- next part --------------
Index: kaffe/kaffevm/soft.c
===================================================================
RCS file: /home/cvspublic/kaffe/kaffe/kaffevm/soft.c,v
retrieving revision 1.25
diff -u -r1.25 soft.c
--- soft.c	1999/07/25 00:18:08	1.25
+++ soft.c	1999/07/26 13:48:42
@@ -459,6 +459,7 @@
 /*
  * soft_divzero.
  */
+void
 soft_divzero(void)
 {
 	throwException(ArithmeticException);
Index: kaffe/kaffevm/errors.h
===================================================================
RCS file: /home/cvspublic/kaffe/kaffe/kaffevm/errors.h,v
retrieving revision 1.10
diff -u -r1.10 errors.h
--- errors.h	1999/06/28 23:50:30	1.10
+++ errors.h	1999/07/26 13:48:43
@@ -75,6 +75,7 @@
   (struct Hjava_lang_Throwable*)execute_java_constructor("java.io." #NAME, \
 	0, "(Ljava/lang/String;)V", stringC2Java(MESS))
 
+#define NoSuchFieldError(M) NEW_LANG_EXCEPTION_MESSAGE(NoSuchFieldError, M)
 #define NoSuchMethodError(M) NEW_LANG_EXCEPTION_MESSAGE(NoSuchMethodError, M)
 #define LinkageError NEW_LANG_EXCEPTION(LinkageError)
 #define OutOfMemoryError NEW_LANG_EXCEPTION(OutOfMemoryError)


More information about the kaffe mailing list