Failed to compile MAXIMA!



I downloaded 

gcl-2.4.0.tgz
maxima-5.6.tgz

I compiled gcl successfully and installed.
But when I edited maxima's configure script and correct the paths:

GCLDIR=/usr3/software/math/gcl-2.4.0
MAXDIR=`pwd`  

./configure
 makefile,
 src/makefile,
 info/makefile,
 elisp/makefile,

succeed.

make............ It takes a long time. When I come back from outside, I found the following error. compile failed:

In file included from /usr3/software/math/maxima-5.6/src/zero.c:2:
/usr3/software/math/gcl-2.4.0/o/cmpinclude.h:2787:8: warning: extra tokens at end of #endif directive
In file included from /usr3/software/math/maxima-5.6/src/zero.c:3:
/usr3/software/math/maxima-5.6/src/zero.h:26:27: warning: no newline at end of file
/usr3/software/math/maxima-5.6/src/zero.c: In function `LI1':
/usr3/software/math/maxima-5.6/src/zero.c:20: `LnkLI19' undeclared (first use in this function)
/usr3/software/math/maxima-5.6/src/zero.c:20: (Each undeclared identifier is reported only once
/usr3/software/math/maxima-5.6/src/zero.c:20: for each function it appears in.)
/usr3/software/math/maxima-5.6/src/zero.c:22: `LnkLI20' undeclared (first use in this function)
/usr3/software/math/maxima-5.6/src/zero.c:29: `LnkLI21' undeclared (first use in this function)
/usr3/software/math/maxima-5.6/src/zero.c:40: `LnkLI22' undeclared (first use in this function)
/usr3/software/math/maxima-5.6/src/zero.c:41: `LnkLI23' undeclared (first use in this function)
......................
......................
.....................

make[2]: *** [/usr3/software/math/maxima-5.6/src/zero.o] Error 1
make[2]: Leaving directory `/usr3/software/math/gcl-2.4.0/unixport'
make[1]: *** [saved_maxima] Error 2
make[1]: Leaving directory `/usr3/software/math/maxima-5.6/src'
make: *** [all] Error 2

What's wrong? I'm a definite newbie to MAXIMA and this is my first compilation of a lisp program.

Please give me some help. Thanks.


-- 
Wang Yin
DA Lab, Tsinghua University,
100084
Beijing China