Hi Andrew, On Thu, 2008-02-28 at 22:43 +0000, Andrew John Hughes wrote: > 2008-02-28 Andrew John Hughes <[EMAIL PROTECTED]> > > * include/Makefile.am: > Add generation of header file java_math_VMBigInteger.h > * java/math/BigInteger.java: Separate NativeMPI into > VMBigInteger. > * native/jni/Makefile.am: Add java-math. > * native/jni/java-math/java_math_VMBigInteger.c: > Renamed from java_math_BigInteger.c. > * vm/reference/java/math/VMBigInteger.java: > Former NativeMPI class from java.math.BigInteger. > > 2006-11-28 Raif S. Naffah <[EMAIL PROTECTED]> > Jeroen Frijters <[EMAIL PROTECTED]> > > PR classpath/28664 > * configure.ac: Add support for configuring GNU MP. > * native/jni/Makefile.am: Include java-math directory if required. > * native/jni/java-math/.cvsignore: New file. > * native/jni/java-math/Makefile.am: Likewise. > * native/jni/java-math/java_math_BigInteger.c: Likewise. > * java/math/BigInteger.java: Added support for native methods. > * gnu/classpath/Configuration.java.in (WANT_NATIVE_BIG_INTEGER): New > field.
This breaks the build when gmp isn't installed (see below). Could you look into that? Thanks, Mark gcc -DHAVE_CONFIG_H -I. -I../../../include -I../../../include -I../../../native/jni/classpath -I../../../native/jni/native-lib -W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long -Werror -g -O2 -MT java_math_VMBigInteger.lo -MD -MP -MF .deps/java_math_VMBigInteger.Tpo -c java_math_VMBigInteger.c -fPIC -DPIC -o .libs/java_math_VMBigInteger.o java_math_VMBigInteger.c:55:2: error: #warning GNU MP not available or wanted! java_math_VMBigInteger.c:56:2: error: #warning Invocation of natXXX() methods will raise an exception java_math_VMBigInteger.c: In function 'Java_java_math_VMBigInteger_natFromLong': java_math_VMBigInteger.c:221: error: 'r' undeclared (first use in this function) java_math_VMBigInteger.c:221: error: (Each undeclared identifier is reported only once java_math_VMBigInteger.c:221: error: for each function it appears in.) cc1: warnings being treated as errors java_math_VMBigInteger.c:185: warning: unused parameter 'this' java_math_VMBigInteger.c: In function 'Java_java_math_VMBigInteger_natAbsIntValue': java_math_VMBigInteger.c:491: error: 's' undeclared (first use in this function) java_math_VMBigInteger.c:481: warning: unused parameter 'this' java_math_VMBigInteger.c: In function 'Java_java_math_VMBigInteger_natCompare': java_math_VMBigInteger.c:546: error: 'y' undeclared (first use in this function) java_math_VMBigInteger.c:526: warning: unused parameter 'this' java_math_VMBigInteger.c: In function 'Java_java_math_VMBigInteger_natModInverse': java_math_VMBigInteger.c:891: error: 'x' undeclared (first use in this function) java_math_VMBigInteger.c:866: warning: unused parameter 'm' java_math_VMBigInteger.c: In function 'Java_java_math_VMBigInteger_natSetBitCount': java_math_VMBigInteger.c:1144: warning: overflow in implicit constant conversion make[3]: *** [java_math_VMBigInteger.lo] Error 1 make[3]: Leaving directory `/home/mark/src/classpath/native/jni/java-math'