build error (3)
Oskar Liljeblad
osk@hem.passagen.se
Fri Dec 1 02:39:00 GMT 2000
For some reason I thought I had compiled gcj with a stable gcc, but
I hadn't. That's the reason behind my last "build error" mail.
This time I got some warnings about different declarations when building
libgcj. The error appears when compiling libjava/java/lang/natMath.cc
with c++:
../../../libgcj-snapshot-2000年11月23日/libjava/java/lang/fdlibm.h:58: declaration
of `double acos(double)' throws different exceptions
/usr/include/bits/mathcalls.h:54: than previous declaration `double
acos(double) throw ()'
I could fix this by adding `throw ()' to all function declarations in
fdlibm.h. This seems strange considering that the include file is in
an `extern "C"' block...
Naturally this was not the correct fix, which was why the
compilation failed later on some .c file complaining about "throw".
This was fixed by removing the `throw ()', and running `make' again
completed the build.
I am using libc6 2.2, binutils 2.10.1.0.2, gcc 2.95.2 and
am compiling gcc 20001127 and libgcj 20001130.
Oskar (osk@hem.passagen.se)
More information about the Java
mailing list