I have problems compiling zaptel 1.2.6 on my CentOS 4.3. CentOS is updated and I believe I have installed all the dependencies.
The error seems to be a syntax error and I don’t now what to do with it, Can someone please give me some idea of what’s wrong?
/lib/modules/2.6.9-34.0.1.EL/build
make -C /lib/modules/2.6.9-34.0.1.EL/build SUBDIRS=/usr/src/zaptel-1.2.6 modules
make[1]: Entering directory /usr/src/kernels/2.6.9-34.0.1.EL-i686' CC [M] /usr/src/zaptel-1.2.6/zaptel.o /usr/src/zaptel-1.2.6/zaptel.c:384: error: syntax error before "zone_lock" /usr/src/zaptel-1.2.6/zaptel.c:384: warning: type defaults toint’ in declaration of zone_lock' /usr/src/zaptel-1.2.6/zaptel.c:384: error: incompatible types in initialization /usr/src/zaptel-1.2.6/zaptel.c:384: error: initializer element is not constant /usr/src/zaptel-1.2.6/zaptel.c:384: warning: data definition has no type or storage class /usr/src/zaptel-1.2.6/zaptel.c:385: error: syntax error before "chan_lock" /usr/src/zaptel-1.2.6/zaptel.c:385: warning: type defaults toint’ in declaration of chan_lock' /usr/src/zaptel-1.2.6/zaptel.c:385: error: incompatible types in initialization /usr/src/zaptel-1.2.6/zaptel.c:385: error: initializer element is not constant /usr/src/zaptel-1.2.6/zaptel.c:385: warning: data definition has no type or storage class /usr/src/zaptel-1.2.6/zaptel.c:188: warning: 'fcstab' defined but not used make[2]: *** [/usr/src/zaptel-1.2.6/zaptel.o] Error 1 make[1]: *** [_module_/usr/src/zaptel-1.2.6] Error 2 make[1]: Leaving directory/usr/src/kernels/2.6.9-34.0.1.EL-i686’
make: *** [linux26] Error 2
Thank you, you saved my day. Compiled without problems. I am so grateful.
I new about this issue when I test installed trixbox, but tout it was a minor bug for sound quality, read it on kennonsoft.org.
to update Steve’s situation (he gave me access to SSH into his box) :
the /usr/src directory was missing symlinks to his kernel source directoryln -s /usr/src/kernels/<insert appropriate directory here> /usr/src/linux-2.6
ln -s /usr/src/kernels/<insert appropriate directory here> /usr/src/linux
that allowed zaptel to compile.
i then “cleaned” /etc/modprobe.conf, /etc/init.d/zaptel and /etc/sysconfig/zaptel removing all the additional modules he wasn’t going to use.
/etc/zaptel.conf was missing an “fxsks=1” statement for his X100P clone.
/etc/asterisk/zapata.conf was missing a “channel => 1” definition.
I do a yum -y update
I reboot
I download packages from svn
I attempt to compile zaptel, I get the linux sources error as above. So I use the fix recommended by baconbuttie this lets me compile zaptel and install. I then compile asterisk etc and reboot.
I get an error: Fatal: Module Zaptel not found
But zaptel compiled without any errors.
I have tried not using yum update, I have trield ‘yum remove kernel-devel’ then ‘yum install kernel-devel’ Still same issues.
I have searched non stop for two days, I have never had an issue like this compiling asterisk. The only difference I can see is the CPU is a PentiumD.
If anybody has any hints please let me know, thanks in advance!
EDIT: I noticed this time when CentOS boots it boots the 2.6.9-42.0.3.ELsmp kernel, but when I download the kernel soruce using :yum install kernel-devel" it downloads 2.6.9-42.0.3.EL (ie no “smp”)