[Asterisk-Users] Zaptel will not build

Chris Mason (Lists) lists at masonc.com
Sun Mar 19 12:40:27 MST 2006


FYI:
I am trying to build zaptel-1.2.4 against the recently updated kernel  
version 2.6.9-34.EL on Centos 4.2. but I am getting errors and it will 
not build. This is apparently due to a typo in a kernel header 
spinlock.h although I have not successfully modified the kernel and 
built zaptel against it yet.

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=180568

This bug report has a typo as well.  It should read:

#define DEFINE_RWLOCK(x) rwlock_t x = RW__LOCK_UNLOCKED




make -C /lib/modules/2.6.9-34.EL/build SUBDIRS=/usr/src/zaptel-1.2.4 
XPPMOD= modules
make[1]: Entering directory `/usr/src/kernels/2.6.9-34.EL-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: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-i686'
make: *** [linux26] Error 2


-- 
Chris Mason
NetConcepts
(264) 497-5670 Fax: (264) 497-8463
Int:  (305) 704-7249 Fax: (815)301-9759 UK 44.207.183.0271
Cell: 264-235-5670
Yahoo IM: netconcepts_anguilla at yahoo.com 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the asterisk-users mailing list