[asterisk-users] Zaptel Compilation Error

RR ranjtech at gmail.com
Wed Jul 19 01:10:59 MST 2006


Think this has been covered several times on the list. Sounds like the
spinlock.h issue. You need to go into the kernel directory, for you it
seems like the /usr/src/kernels/2.6.9-34.0.2.EL-smp-i686/include/linux/spinlock.h
file and replace anywhere you see 'rw_lock' with 'rwlock', make clean,
make

On 7/19/06, leonimar cape <leo_mac_ph at yahoo.com> wrote:
> Hi to all,
>
> Has anybody in this group encounter this kind of error
> in their recompilation of zaptel. My asterisk box has
> a for E1/T1 digium card with echo cancellation. I want
> to upgrade the zaptel driver. So I downloaded the new
> driver from digium and recompile it but I got errors.
>
> Please the errors below:
> ZAPTELVERSION="1.2.7" 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
> /lib/modules/2.6.9-34.0.2.ELsmp/build
> make -C /lib/modules/2.6.9-34.0.2.ELsmp/build
> SUBDIRS=/usr/src/zaptel modules
> make[1]: Entering directory
> `/usr/src/kernels/2.6.9-34.0.2.EL-smp-i686'
>   CC [M]  /usr/src/zaptel/zaptel.o
> /usr/src/zaptel/zaptel.c:384: error: syntax error
> before "zone_lock"
> /usr/src/zaptel/zaptel.c:384: warning: type defaults
> to `int' in declaration of `zone_lock'
> /usr/src/zaptel/zaptel.c:384: error: incompatible
> types in initialization
> /usr/src/zaptel/zaptel.c:384: error: initializer
> element is not constant
> /usr/src/zaptel/zaptel.c:384: warning: data definition
> has no type or storage class
> /usr/src/zaptel/zaptel.c:385: error: syntax error
> before "chan_lock"
> /usr/src/zaptel/zaptel.c:385: warning: type defaults
> to `int' in declaration of `chan_lock'
> /usr/src/zaptel/zaptel.c:385: error: incompatible
> types in initialization
> /usr/src/zaptel/zaptel.c:385: error: initializer
> element is not constant
> /usr/src/zaptel/zaptel.c:385: warning: data definition
> has no type or storage class
> /usr/src/zaptel/zaptel.c: In function
> `free_tone_zone':
> /usr/src/zaptel/zaptel.c:1034: warning: passing arg 1
> of `_write_lock' from incompatible pointer type
> /usr/src/zaptel/zaptel.c:1037: warning: passing arg 1
> of `_write_unlock' from incompatible pointer type
> /usr/src/zaptel/zaptel.c: In function
> `zt_register_tone_zone':
> /usr/src/zaptel/zaptel.c:1047: warning: passing arg 1
> of `_write_lock' from incompatible pointer type
> /usr/src/zaptel/zaptel.c:1054: warning: passing arg 1
> of `_write_unlock' from incompatible pointer type
> /usr/src/zaptel/zaptel.c: In function `set_tone_zone':
> /usr/src/zaptel/zaptel.c:1095: warning: passing arg 1
> of `_read_lock' from incompatible pointer type
> /usr/src/zaptel/zaptel.c:1107: warning: passing arg 1
> of `_read_unlock' from incompatible pointer type
> /usr/src/zaptel/zaptel.c: In function `zt_chan_reg':
> /usr/src/zaptel/zaptel.c:1188: warning: passing arg 1
> of `_write_lock_irqsave' from incompatible pointer
> type
> /usr/src/zaptel/zaptel.c:1211: warning: passing arg 1
> of `_write_unlock_irqrestore' from incompatible
> pointer type
> /usr/src/zaptel/zaptel.c: In function `zt_chan_unreg':
> /usr/src/zaptel/zaptel.c:1584: warning: passing arg 1
> of `_write_lock_irqsave' from incompatible pointer
> type
> /usr/src/zaptel/zaptel.c:1620: warning: passing arg 1
> of `_write_unlock_irqrestore' from incompatible
> pointer type
> /usr/src/zaptel/zaptel.c: In function `zt_ctl_ioctl':
> /usr/src/zaptel/zaptel.c:3343: warning: passing arg 1
> of `_write_lock' from incompatible pointer type
> /usr/src/zaptel/zaptel.c:3345: warning: passing arg 1
> of `_write_unlock' from incompatible pointer type
> /usr/src/zaptel/zaptel.c: In function `zt_init':
> /usr/src/zaptel/zaptel.c:6553: error: incompatible
> types in assignment
> /usr/src/zaptel/zaptel.c: At top level:
> /usr/src/zaptel/zaptel.c:188: 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.0.2.EL-smp-i686'
> make: *** [linux26] Error 2
>
> Did I miss something? Please help.
>
> Regards,
>
> Leonimar
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list