[Asterisk-Users] Zaptel won't compile under Fedora Core 4

Eric Bullen barnabus.pinklehorn at gmail.com
Mon Jul 11 17:29:37 MST 2005


I hope someone can offer me some help with this. Basically, the current CVS 
version of Zaptel will not compile under Fedora Core 4. I have closely 
followed the directions in 
http://www.voip-info.org/tiki-index.php?page=Asterisk+Fedora+Core+3 using 
the versions given in the FC4 distro with no luck. Here's the output when I 
run "make linux26". Any help would be great. TIA.


orion:/asterisk_source/zaptel# make clean
rm -f torisatool makefw tor2fw.h
rm -f zttool
rm -f *.o ztcfg tzdriver sethdlc sethdlc-new
rm -f zonedata.lo tonezone.lo libtonezone.so.1.0 *.lo
rm -f *.ko *.mod.c .*o.cmd
rm -f gendigits tones.h
rm -f libtonezone*
rm -f tor2ee
rm -f core

orion:/asterisk_source/zaptel# make linux26
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
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 -lm -L. libtonezone.a
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 -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
make -C /lib/modules/`uname -r`/build SUBDIRS=/asterisk_source/zaptel 
modules
make[1]: Entering directory `/usr/src/kernels/2.6.12-1.1390_FC4-i686'

WARNING: Symbol version dump /usr/src/kernels/2.6.12-
1.1390_FC4-i686/Module.symvers
is missing; modules will have no dependencies and modversions.

CC [M] /asterisk_source/zaptel/zaptel.o
In file included from /asterisk_source/zaptel/zaptel.c:40:
/asterisk_source/zaptel/zconfig.h:10:27: error: linux/version.h: No such 
file or directory
/asterisk_source/zaptel/zconfig.h:66:41: error: missing binary operator 
before token "("
In file included from /asterisk_source/zaptel/zaptel.c:82:
/asterisk_source/zaptel/zaptel.h:47:41: error: missing binary operator 
before token "("
/asterisk_source/zaptel/zaptel.c: In function 'zt_chan_write':
/asterisk_source/zaptel/zaptel.c:1737: warning: ignoring return value of 
'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c: In function 'zt_ctl_open':
/asterisk_source/zaptel/zaptel.c:1766: error: 'MOD_INC_USE_COUNT' undeclared 
(first use in this function)
/asterisk_source/zaptel/zaptel.c:1766: error: (Each undeclared identifier is 
reported only once
/asterisk_source/zaptel/zaptel.c:1766: error: for each function it appears 
in.)
/asterisk_source/zaptel/zaptel.c: In function 'zt_chan_open':
/asterisk_source/zaptel/zaptel.c:1775: error: 'MOD_INC_USE_COUNT' undeclared 
(first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_ctl_release':
/asterisk_source/zaptel/zaptel.c:1784: error: 'MOD_DEC_USE_COUNT' undeclared 
(first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_chan_release':
/asterisk_source/zaptel/zaptel.c:1793: error: 'MOD_DEC_USE_COUNT' undeclared 
(first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_timing_open':
/asterisk_source/zaptel/zaptel.c:2122: error: 'MOD_INC_USE_COUNT' undeclared 
(first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_timer_release':
/asterisk_source/zaptel/zaptel.c:2159: error: 'MOD_DEC_USE_COUNT' undeclared 
(first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_specchan_open':
/asterisk_source/zaptel/zaptel.c:2190: error: 'MOD_INC_USE_COUNT' undeclared 
(first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'zt_specchan_release':
/asterisk_source/zaptel/zaptel.c:2214: error: 'MOD_DEC_USE_COUNT' undeclared 
(first use in this function)
/asterisk_source/zaptel/zaptel.c: In function 'ioctl_load_zone':
/asterisk_source/zaptel/zaptel.c:2384: warning: ignoring return value of 
'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c: In function 'zt_common_ioctl':
/asterisk_source/zaptel/zaptel.c:2736: warning: ignoring return value of 
'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:2796: warning: ignoring return value of 
'copy_to_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:2799: warning: ignoring return value of 
'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:2881: warning: ignoring return value of 
'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:2911: warning: ignoring return value of 
'copy_to_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c: In function 'zt_chanandpseudo_ioctl':
/asterisk_source/zaptel/zaptel.c:3633: warning: ignoring return value of 
'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:3643: warning: ignoring return value of 
'copy_to_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:3646: warning: ignoring return value of 
'copy_from_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:3705: warning: ignoring return value of 
'copy_to_user', declared with attribute warn_unused_result
/asterisk_source/zaptel/zaptel.c:3709: warning: ignoring return value of 
'copy_from_user', declared with attribute warn_unused_result
make[2]: *** [/asterisk_source/zaptel/zaptel.o] Error 1
make[1]: *** [_module_/asterisk_source/zaptel] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.12-1.1390_FC4-i686'
make: *** [linux26] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050711/afad51c8/attachment.htm


More information about the asterisk-users mailing list