[AsteriskBrasil] Erro compilacao ZAPTEL! Ajuda

Bernardo Vieira bernardo.vieira em terra.com.br
Segunda Agosto 14 11:32:46 BRT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

É um erro no source do Centos, é só editar o arquivo
/usr/src/kernels/{versao do kernel}/include/linux/spinlock.h

e sair substituindo rw_lock por rwlock. Ou do jeito fácil:

sed -i s/rw_lock/rwlock/ /usr/src/kernels/`uname -r`-`uname
- -m`/include/linux/spinlock.h



billrv 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
> 
> 

- --
"What most profoundly divides two men is a different sense and degree of
cleanliness. What help is all honesty and mutual utility, what help is
all the good will for each other: in the end the fact remains-they can't
stand each other?s smell!"

- - Nietzsche
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE4ImO2QVs8jsa1mQRAjyLAJ40IFIXnkHZ9na2BmotEEOVaLkWaACgpget
jzkzCS8+tU20RAfaaH+9cTU=
=RCZ6
-----END PGP SIGNATURE-----


Mais detalhes sobre a lista de discussão AsteriskBrasil