I had a perfectly good system running until the updates got installed. Now I can not compile Zaptel. This is what I’m getting now.
CentOS 4.2
Asterisk-1.2.5
libpri-1.2.2
zaptel-1.2.4
/lib/modules/2.6.9-34.EL/build
make -C /lib/modules/2.6.9-34.EL/build SUBDIRS=/usr/local/src/zaptel-1.2.4 XPPMOD= modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-34.EL-i686'
CC [M] /usr/local/src/zaptel-1.2.4/zaptel.o
/usr/local/src/zaptel-1.2.4/zaptel.c:384: error: syntax error before "zone_lock"
/usr/local/src/zaptel-1.2.4/zaptel.c:384: warning: type defaults to `int' in declaration of `zone_lock'
/usr/local/src/zaptel-1.2.4/zaptel.c:384: error: incompatible types in initialization
/usr/local/src/zaptel-1.2.4/zaptel.c:384: error: initializer element is not constant
/usr/local/src/zaptel-1.2.4/zaptel.c:384: warning: data definition has no type or storage class
/usr/local/src/zaptel-1.2.4/zaptel.c:385: error: syntax error before "chan_lock"
/usr/local/src/zaptel-1.2.4/zaptel.c:385: warning: type defaults to `int' in declaration of `chan_lock'
/usr/local/src/zaptel-1.2.4/zaptel.c:385: error: incompatible types in initialization
/usr/local/src/zaptel-1.2.4/zaptel.c:385: error: initializer element is not constant
/usr/local/src/zaptel-1.2.4/zaptel.c:385: warning: data definition has no type or storage class
/usr/local/src/zaptel-1.2.4/zaptel.c:188: warning: 'fcstab' defined but not used
make[2]: *** [/usr/local/src/zaptel-1.2.4/zaptel.o] Error 1
make[1]: *** [_module_/usr/local/src/zaptel-1.2.4] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-34.EL-i686'
make: *** [linux26] Error 2