[Asterisk-Users] Zaptel compile errors on x86_64

Walter Klomp walter at aglow.com.sg
Wed Mar 15 02:49:59 MST 2006


Hi,

Just downloaded the latest cvs from zaptel on my sparking new Athlon64
Centos4.2 system, but hitting a stumbling block... (sorry for the long post)

#make
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   -m64 -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   -m64 -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
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   -m64 -DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c -o ztcfg.o ztcfg.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE   -m64 -DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\"/etc/zaptel.conf\" -DBUILDING_TONEZONE -o zonedata.lo
zonedata.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE   -m64 -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   -m64 -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   -m64 -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   -m64 -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   -m64 -DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\"/etc/zaptel.conf\"    zttest.c   -o zttest
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   -m64 -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 modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-34.EL-x86_64'
  CC [M]  /usr/src/zaptel/zaptel.o
/usr/src/zaptel/zaptel.c:372: error: syntax error before "zone_lock"
/usr/src/zaptel/zaptel.c:372: warning: type defaults to `int' in declaration
of `zone_lock'
/usr/src/zaptel/zaptel.c:372: error: incompatible types in initialization
/usr/src/zaptel/zaptel.c:372: error: initializer element is not constant
/usr/src/zaptel/zaptel.c:372: warning: data definition has no type or
storage class
/usr/src/zaptel/zaptel.c:373: error: syntax error before "chan_lock"
/usr/src/zaptel/zaptel.c:373: warning: type defaults to `int' in declaration
of `chan_lock'
/usr/src/zaptel/zaptel.c:373: error: incompatible types in initialization
/usr/src/zaptel/zaptel.c:373: error: initializer element is not constant
/usr/src/zaptel/zaptel.c:373: warning: data definition has no type or
storage class
/usr/src/zaptel/zaptel.c:176: warning: 'fcstab' defined but not used
make[2]: *** [/usr/src/zaptel/zaptel.o] Error 1
make[1]: *** [_module_/usr/src/zaptel] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.9-34.EL-x86_64'
make: *** [linux26] Error 2
[root at asterisk64 zaptel]# uname -a
Linux asterisk64 2.6.9-34.EL #1 Thu Mar 9 06:03:30 GMT 2006 x86_64 x86_64
x86_64 GNU/Linux


Any ideas what I can do to fix this, or what I am doing wrong?

Assistance appreciated.

Thanks

Warmest Regards,

Walter.




More information about the asterisk-users mailing list