Zaptel will not compile after CentOS 4 updates


#1

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

#2

Never mind. I found it. There is a bug in the spinlock.h file in the latest kernel.

bugzilla.redhat.com/bugzilla/sh … ?id=180568

Why is it that you google and search and only after you post a question do you find the answer? Grr…