Problems Compiling Zaptel driver

Hi

here are my problems:

  1. not really a clue about linux.
  2. Zaptel driver runs in errors during compiling.

System:
Cent OS 4
linux kernel 2.6.3.-EL

i tryed to compile the zaptel driver and got the following error(s)

CC [M] /root/Asterisk/zaptel-1.2.5/zaptel.o /root/Asterisk/zaptel-1.2.5/zaptel.c:384: error: syntax error before "zone_lock" /root/Asterisk/zaptel-1.2.5/zaptel.c:384: warning: type defaults to `int' in dec laration of `zone_lock' /root/Asterisk/zaptel-1.2.5/zaptel.c:384: error: incompatible types in initializ ation /root/Asterisk/zaptel-1.2.5/zaptel.c:384: error: initializer element is not cons tant /root/Asterisk/zaptel-1.2.5/zaptel.c:384: warning: data definition has no type o r storage class /root/Asterisk/zaptel-1.2.5/zaptel.c:385: error: syntax error before "chan_lock" /root/Asterisk/zaptel-1.2.5/zaptel.c:385: warning: type defaults to `int' in dec laration of `chan_lock' /root/Asterisk/zaptel-1.2.5/zaptel.c:385: error: incompatible types in initializ ation /root/Asterisk/zaptel-1.2.5/zaptel.c:385: error: initializer element is not cons tant /root/Asterisk/zaptel-1.2.5/zaptel.c:385: warning: data definition has no type o r storage class /root/Asterisk/zaptel-1.2.5/zaptel.c:188: warning: 'fcstab' defined but not used make[2]: *** [/root/Asterisk/zaptel-1.2.5/zaptel.o] Error 1 make[1]: *** [_module_/root/Asterisk/zaptel-1.2.5] Error 2 make[1]: Leaving directory `/usr/src/kernels/2.6.9-34.EL-i686' make: *** [linux26] Error 2 :open_mouth:

Can somebody tell me what i have to do and in a way for a noob because i couldn’t figure out what the FAQ wanted from me. :question:

many Thanks

try following, it shpuld fix your problem.

cd /usr/src/kernels/2.6.9-34.EL-i686/include/linux
mv spinlock.h spinlock.h.old
wget nerdvittles.com/aah27/spinlock.h
shutdown -r now


无尽的思念,无限的情怀,http://Call2China.com 千言万语,任你倾诉。。。

thanks ill try it out

The same problem appears to affect RedHat Enterprise 4.x, and this fix solved the issue there as well.

I had the same problem after online updated the kernel. Thanks for your help. :smiley: