cannot build 0.92 on linux 2.0.30

Glynn Clements glynn at sensei.co.uk
Wed Oct 8 18:56:24 PDT 1997


Stewart Allen wrote:

>  About 3 seconds into the build I get:
> 
> 
> make[4]: Entering directory
> `/local/hd1/home/stewart/build/kaffe-0.9.2/packages/tjwassoc.co.uk/APIcore/lib'
> gcc -g -O2 -I. -I../../../../include -I./../../../../include
> -I../../../../config -I./../../../../config -c -fPIC ./java.lang/Math.c
> In file included from ./java.lang/Math.c:16:
> .../../../../config/config-math.h:24: #error "Need some form of remainder"
> make[4]: *** [Math.o] Error 1
> make[4]: Leaving directory
> `/local/hd1/home/stewart/build/kaffe-0.9.2/packages/tjwassoc.co.uk/APIcore/lib'
> 
> 
>  Which I traced down to the fact that Configure incorrectly determines
>  that the system doesn't support "fmod" or "drem" (both of which are
>  present). I can correct these settings in config.h at which point the
>  entire thing builds until the kaffevm link which gives:
> 
> 
> gcc -g -O2  -I. -I./../kaffevm -I../../config -I./../../config
> -I../../include -I./../../include -o kaffe main.o -L../kaffevm -lkaffevm
> .../kaffevm/libkaffevm.so: undefined reference to `remainder'
> make[2]: *** [kaffe] Error 1

This indicates that remainder isn't being replaced with fmod.

Make sure that HAVE_REMAINDER is undefined and HAVE_FMOD is defined,
e.g. insert

	#undef HAVE_REMAINDER
	#define HAVE_FMOD 1

at the top of config-math.h.

I'm running Linux 2.0.30 with libc 5.4.23, and it compiled out of the
box for me.

-- 
Glynn Clements <glynn at sensei.co.uk>


More information about the kaffe mailing list