Help with trunk compile errors? (kernel 2.4.21, Redhat ES 3)

Since we plan to upgrade to Asterisk 1.4 when it?s available, I?ve downloaded the latest from the trunk and have been getting compilation errors in both zaptel and asterisk. If you see anything wrong either in what I’m doing, or in the configuration, please let me know

FYI: I had no problems at all downloading and compiling zaptel-1.2.6 and asterisk- from source.

Here?s the system information:

[root@annapolis asterisk]# uname -a
Linux annapolis 2.4.21-27.0.2.EL #1 Wed Jan 12 23:46:37 EST 2005 i686 i686 i386 GNU/Linux
[root@annapolis asterisk]# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 3 (Taroon Update 4)
[root@annapolis asterisk]#

The make fails on gendigits

[root@annapolis zaptel]# make clean
make[1]: Entering directory /data/asterisk-trunk/zaptel/menuselect' rm -f menuselect *.o make[1]: Leaving directory/data/asterisk-trunk/zaptel/menuselect’
rm -f torisatool makefw tor2fw.h radfw.h
rm -f fxotune ztcfg ztmonitor ztspeed zttest zttool
rm -f .o ztcfg tzdriver sethdlc sethdlc-new
rm -f zonedata.lo tonezone.lo .lo
rm -f xpp/
.ko xpp/
.mod.c xpp/.o.cmd
rm -f xpp/
.o xpp/.mod.o
rm -rf .tmp_versions
rm -f gendigits tones.h
rm -f libtonezone

rm -f tor2ee
rm -f fxotune
rm -f core
rm -f ztcfg-shared fxstest
rm -rf misdn*
rm -rf mISDNuser*
rm -f fw2h vpm450m_fw.h
[root@annapolis zaptel]# make
make[1]: Entering directory /data/asterisk-trunk/zaptel/menuselect' gcc -Wall -o menuselect.o -g -c -D_GNU_SOURCE -DMENUSELECT -I/usr/src/zaptel/ menuselect.c gcc -Wall -o menuselect_curses.o -g -c -D_GNU_SOURCE -DMENUSELECT -I/usr/src/zaptel/ menuselect_curses.c gcc -g -Wall -o menuselect menuselect.o menuselect_curses.o /usr/src/zaptel/mxml/libmxml.a -lncurses make[1]: Leaving directory/data/asterisk-trunk/zaptel/menuselect’
make[1]: Entering directory /data/asterisk-trunk/zaptel' gcc -lm gendigits.c -o gendigits make: expand.c:489: allocated_variable_append: Assertioncurrent_variable_set_list->next != 0’ failed.
make: *** [all] Aborted

When I type the command on the command-line directly, it succeeds

[root@annapolis zaptel]# gcc -lm gendigits.c -o gendigits
[root@annapolis zaptel]#

Then, when I try to continue the make, it fails on vpm450m.c, with errors spewing on just about every line:

make[1]: Entering directory `/data/asterisk-trunk/zaptel’
gcc -I/lib/modules/2.4.21-27.0.2.EL/build/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/lib/modules/2.4.21-27.0.2.EL/build/drivers/net -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/lib/modules/2.4.21-27.0.2.EL/build/drivers/net/wan -I/lib/modules/2.4.21-27.0.2.EL/build/include/net -DMODVERSIONS -include /lib/modules/2.4.21-27.0.2.EL/build/include/linux/modversions.h -DSTANDALONE_ZAPATA -I/include -I/include/oct6100api -o vpm450m.o -c vpm450m.c
vpm450m.c:34:20: octdef.h: No such file or directory
vpm450m.c:36:36: apilib/octapi_largmath.h: No such file or directory
vpm450m.c:38:40: oct6100api/oct6100_defines.h: No such file or directory
vpm450m.c:39:39: oct6100api/oct6100_errors.h: No such file or directory
vpm450m.c:40:38: oct6100api/oct6100_apiud.h: No such file or directory
vpm450m.c:42:33: apilib/octapi_llman.h: No such file or directory

The first file that it?s complaining about, octdef.h, is in ./include:

[root@annapolis zaptel]# ls -l include/octdef.h
-rw-r–r-- 1 root root 3201 Aug 11 09:43 include/octdef.h

I tried to make asterisk itself, but that also failed:
make[1]: Entering directory /data/asterisk-trunk/asterisk/res' make[1]: *** No rule to make’, needed by _all'. Stop. make[1]: Leaving directory/data/asterisk-trunk/asterisk/res’

In all cases, the initial make clean and make (config) completes without error.

psatcs (aka pssatcs)