[AsteriskBrasil] Erro compilacao ZAPTEL! Ajuda
Antonio José dos Santos Brandão
brandao em gmail.com
Segunda Agosto 14 11:37:14 BRT 2006
O codigo fonte do kernel vem com um erro e há um arquivo que vc
precisa editar para conseguir compilar
edite o /usr/src/kernels/2.6.9-34.EL-i686/include/linux/spinlock.h e
na linha 407 troque 'rw_lock_t' para 'rwlock_t'.
http://forums.whirlpool.net.au/forum-replies-archive.cfm/506177.html
--
Antonio J. S. Brandão
On 8/14/06, billrv <billrv em uol.com.br> wrote:
> Pessoal estou com erro na compilacao do zaptel...
>
> cc -o fxotune fxotune.o -lm
> /lib/modules/2.6.9-34.0.2.EL/build
> make -C /lib/modules/2.6.9-34.0.2.EL/build SUBDIRS=/usr/src/zaptel modules
> make[1]: Entering directory `/usr/src/kernels/2.6.9-34.0.2.EL-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: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-i686'
> make: *** [linux26] Error 2
>
>
> Alguem sabe o pq deste erro? Agrade'co a ajuda de todos!!
>
> Atenciosamente,
>
> Huander Le~ao
>
> _______________________________________________
> LIsta de discussões AsteriskBrasil.org
> AsteriskBrasil em listas.asteriskbrasil.org
> http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil
>
> _______________________________________________
> Acesse o wiki AsteriskBrasil.org:
> http://www.asteriskbrasil.org
>
Mais detalhes sobre a lista de discussão AsteriskBrasil