zaptel installation error

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

zaptel installation error

Postby kafnir » Wed Apr 05, 2006 4:41 pm

would anyone please help solve this error.
I try to compile zaptel on CENTOS4.3 and I get this error message.

[root@server01 src]# cd zaptel-1.2.5
[root@server01 zaptel-1.2.5]# make clean
rm -f torisatool makefw tor2fw.h radfw.h
rm -f ztcfg torisatool makefw ztmonitor ztspeed zttool zttest fxotune
rm -f *.o ztcfg tzdriver sethdlc sethdlc-new
rm -f zonedata.lo tonezone.lo libtonezone.so *.lo
rm -f *.ko *.mod.c .*o.cmd
rm -f xpp/*.ko xpp/*.mod.c xpp/.*o.cmd
rm -f xpp/*.o xpp/*.mod.o
rm -rf .tmp_versions
rm -f gendigits tones.h
rm -f libtonezone*
rm -f tor2ee
rm -f fxotune
rm -f core
rm -f ztcfg-shared fxstest
[root@server01 zaptel-1.2.5]# make
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o gendigits.o gendigits.c
cc -o gendigits gendigits.o -lm
./gendigits
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" makefw.c -o makefw
./makefw tormenta2.rbt tor2fw > tor2fw.h
Loaded 69900 bytes from file
./makefw pciradio.rbt radfw > radfw.h
Loaded 42096 bytes from file
ZAPTELVERSION="1.2.5" build_tools/make_version_h > version.h.tmp
if cmp -s version.h.tmp version.h ; then echo; else \
mv version.h.tmp version.h ; \
fi
rm -f version.h.tmp
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o ztcfg.o ztcfg.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DBUILDING_TONEZONE -o zonedata.lo zonedata.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DBUILDING_TONEZONE -o tonezone.lo tonezone.c
ar rcs libtonezone.a zonedata.lo tonezone.lo
cc -o ztcfg ztcfg.o libtonezone.a -lm
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o torisatool.o torisatool.c
cc -o torisatool torisatool.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o ztmonitor.o ztmonitor.c
cc -o ztmonitor ztmonitor.o
cc -o ztspeed.o -c ztspeed.c
cc -o ztspeed ztspeed.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -c -o zttool.o zttool.c
cc -o zttool zttool.o -lnewt
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\" zttest.c -o zttest
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.EL/build
make -C /lib/modules/2.6.9-34.EL/build SUBDIRS=/usr/src/zaptel-1.2.5 XPPMOD= modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-34.EL-i686'
CC [M] /usr/src/zaptel-1.2.5/zaptel.o
/usr/src/zaptel-1.2.5/zaptel.c:384: error: syntax error before "zone_lock"
/usr/src/zaptel-1.2.5/zaptel.c:384: warning: type defaults to `int' in declaration of `zone_lock'
/usr/src/zaptel-1.2.5/zaptel.c:384: error: incompatible types in initialization
/usr/src/zaptel-1.2.5/zaptel.c:384: error: initializer element is not constant
/usr/src/zaptel-1.2.5/zaptel.c:384: warning: data definition has no type or storage class
/usr/src/zaptel-1.2.5/zaptel.c:385: error: syntax error before "chan_lock"
/usr/src/zaptel-1.2.5/zaptel.c:385: warning: type defaults to `int' in declaration of `chan_lock'
/usr/src/zaptel-1.2.5/zaptel.c:385: error: incompatible types in initialization
/usr/src/zaptel-1.2.5/zaptel.c:385: error: initializer element is not constant
/usr/src/zaptel-1.2.5/zaptel.c:385: warning: data definition has no type or storage class
/usr/src/zaptel-1.2.5/zaptel.c:188: warning: 'fcstab' defined but not used
make[2]: *** [/usr/src/zaptel-1.2.5/zaptel.o] Error 1
make[1]: *** [_module_/usr/src/zaptel-1.2.5] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-34.EL-i686'
make: *** [linux26] Error 2
kafnir
Newsterisk
 
Posts: 12
Joined: Thu Dec 21, 2006 10:56 pm
Location: Miami, Florida

Postby jbachman » Wed Apr 05, 2006 6:29 pm

This was addressed several times. There is a typo in the kernel source code for Kernel-2.6.9-34EL. There is a patch, or, what I did was download the patched kernel and kernel source from redhat. If you do a search for Zaptel in the Centos help forums you will find links to the fixes.
jbachman
Newsterisk
 
Posts: 4
Joined: Sun Dec 03, 2006 8:58 pm

Postby achu_sab » Wed Oct 18, 2006 4:19 am

Edit /usr/src/kernels/2.6.9-34.0.1.EL-smp-i686/include/linux/spinlock.h,
you need to change "rw_lock_t" to "rwlock_t" on line 407(CentOS 4.3 error)

also make sure that you have installed these packages :
# yum install automake gcc-c++ autoconf libtool
# yum install kernel-devel kernel-smp-devel isdn4k-utils isdn4k-utils-devel
achu_sab
Newsterisk
 
Posts: 5
Joined: Thu Dec 21, 2006 10:56 pm


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 1 guest