[Asterisk-Users] Zaptel not compiling on lastest Centos 4.2 kernel.
Chuck Bunn
chuck.bunn at networkdoc.com
Mon Mar 13 10:33:18 MST 2006
Hi,
I made a big mistake on a Centos 4.2 box - I forgot to exclude the
kernel from updating. Now zaptel will not do a "make linux26" see below.
Is there a way to roll this back or is there a patch to get Zaptel to
compile? I have a link to the modules using 'ln -s /lib/modules/uname
-r/build linux-2.6" so that I did not have to specifiy the kernel
version directly.
....
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o fxotune.o fxotune.c
cc -o fxotune fxotune.o -lm
/lib/modules/2.6.9-34.ELsmp/build
make -C /lib/modules/2.6.9-34.ELsmp/build SUBDIRS=/usr/src/zaptel-1.2.4
XPPMOD= modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-34.EL-smp-i686'
CC [M] /usr/src/zaptel-1.2.4/zaptel.o
/usr/src/zaptel-1.2.4/zaptel.c:384: error: syntax error before "zone_lock"
/usr/src/zaptel-1.2.4/zaptel.c:384: warning: type defaults to `int' in
declaration of `zone_lock'
/usr/src/zaptel-1.2.4/zaptel.c:384: error: incompatible types in
initialization
/usr/src/zaptel-1.2.4/zaptel.c:384: error: initializer element is not
constant
/usr/src/zaptel-1.2.4/zaptel.c:384: warning: data definition has no type
or storage class
/usr/src/zaptel-1.2.4/zaptel.c:385: error: syntax error before "chan_lock"
/usr/src/zaptel-1.2.4/zaptel.c:385: warning: type defaults to `int' in
declaration of `chan_lock'
/usr/src/zaptel-1.2.4/zaptel.c:385: error: incompatible types in
initialization
/usr/src/zaptel-1.2.4/zaptel.c:385: error: initializer element is not
constant
/usr/src/zaptel-1.2.4/zaptel.c:385: warning: data definition has no type
or storage class
/usr/src/zaptel-1.2.4/zaptel.c: In function `free_tone_zone':
/usr/src/zaptel-1.2.4/zaptel.c:1034: warning: passing arg 1 of
`_write_lock' from incompatible pointer type
/usr/src/zaptel-1.2.4/zaptel.c:1037: warning: passing arg 1 of
`_write_unlock' from incompatible pointer type
/usr/src/zaptel-1.2.4/zaptel.c: In function `zt_register_tone_zone':
/usr/src/zaptel-1.2.4/zaptel.c:1047: warning: passing arg 1 of
`_write_lock' from incompatible pointer type
/usr/src/zaptel-1.2.4/zaptel.c:1054: warning: passing arg 1 of
`_write_unlock' from incompatible pointer type
/usr/src/zaptel-1.2.4/zaptel.c: In function `set_tone_zone':
/usr/src/zaptel-1.2.4/zaptel.c:1095: warning: passing arg 1 of
`_read_lock' from incompatible pointer type
/usr/src/zaptel-1.2.4/zaptel.c:1107: warning: passing arg 1 of
`_read_unlock' from incompatible pointer type
/usr/src/zaptel-1.2.4/zaptel.c: In function `zt_chan_reg':
/usr/src/zaptel-1.2.4/zaptel.c:1188: warning: passing arg 1 of
`_write_lock_irqsave' from incompatible pointer type
/usr/src/zaptel-1.2.4/zaptel.c:1211: warning: passing arg 1 of
`_write_unlock_irqrestore' from incompatible pointer type
/usr/src/zaptel-1.2.4/zaptel.c: In function `zt_chan_unreg':
/usr/src/zaptel-1.2.4/zaptel.c:1584: warning: passing arg 1 of
`_write_lock_irqsave' from incompatible pointer type
/usr/src/zaptel-1.2.4/zaptel.c:1620: warning: passing arg 1 of
`_write_unlock_irqrestore' from incompatible pointer type
/usr/src/zaptel-1.2.4/zaptel.c: In function `zt_ctl_ioctl':
/usr/src/zaptel-1.2.4/zaptel.c:3343: warning: passing arg 1 of
`_write_lock' from incompatible pointer type
/usr/src/zaptel-1.2.4/zaptel.c:3345: warning: passing arg 1 of
`_write_unlock' from incompatible pointer type
/usr/src/zaptel-1.2.4/zaptel.c: In function `zt_init':
/usr/src/zaptel-1.2.4/zaptel.c:6553: error: incompatible types in assignment
/usr/src/zaptel-1.2.4/zaptel.c: At top level:
/usr/src/zaptel-1.2.4/zaptel.c:188: warning: 'fcstab' defined but not used
make[2]: *** [/usr/src/zaptel-1.2.4/zaptel.o] Error 1
make[1]: *** [_module_/usr/src/zaptel-1.2.4] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-34.EL-smp-i686'
make: *** [linux26] Error 2
[root at turnip zaptel-1.2.4]#
Thanks
More information about the asterisk-users
mailing list