[asterisk-dev] Centos4 Linux and zaptel compile problem

Ove Aursand ove at tellix.no
Mon Apr 10 04:47:03 MST 2006


Jeyadev (JD) Sreedharan wrote:
> I have been trying to compile the zaptel driver on an  Intel SMP box 
> using CentOS 4 with very little success. Unfortunately, I am not at 
> the asterisk box right now and can't get the exact messages, but I 
> would be reaaly grateful if someone could point me in the right 
> direction.
>
> When I do a 'make linux26', the  make chokes at line 384 and 385  of 
> zaptel.c.The rest of the messages seems to be related to the error 
> here. Looks like there is a casting problem with:
>
> static DEFINE_RWLOCK(zone_lock);
> static DEFINE_RWLOCK(chan_lock);
>
> I have succesfully compiled asterisk and zaptel on the same hardware 
> using Fedora Core 5.Does any one have any ideas?
>
> Sorry for the brevity. Too many hours trying to debug and too little 
> sleep.
>
> Cheers...
>
> JD
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>
If you are using the 2.6.9-34 kernel, it is because of a bug in the 
kernel source package.

The error is in the file 
/usr/src/kernels/2.6.9-34.EL-smp-i686/include/linux/spinlock.h

Search for rw_lock_t in that file, and change it to rwlock_t

Ove




More information about the asterisk-dev mailing list