Re: [AsteriskBrasil] Zaptel x Debian - Problemas na compilação

Andre Souza andre.souza em gmail.com
Segunda Fevereiro 26 14:42:24 BRT 2007


no primeiro cenario. antes de testar o zztool voce deve "subir" o modulo da
sua placa tipo: modprobe wctdm.

benflodin.

On 2/23/07, Sadi Nogueira <forums em sadi.eti.br> wrote:
>
>  Obrigado Josué e Rdo...
> eu já havia visto esse tuto, mas não tentado... Touché! Funciona quase
> tudo perfeitamente (quase tudo porque até o final dessa resposta, eu estava
> apanhando com os codecs) ...
>
> Obrigado mesmo. Faltava tentar esse, mas agora foi.
>
>
>  ------------------------------
>  *De:* asteriskbrasil-bounces em listas.asteriskbrasil.org [mailto:
> asteriskbrasil-bounces em listas.asteriskbrasil.org] *Em nome de *Rdo
> *Enviada em:* quinta-feira, 22 de fevereiro de 2007 17:57
> *Para:* asteriskbrasil em listas.asteriskbrasil.org
> *Assunto:* Re: [AsteriskBrasil] Zaptel x Debian - Problemas na compilação
>
> http://clx.digi.com.br/wiki/bin/view/Asterisk/TutorialAsteriskUnicallFax
>
>
>
> On 2/22/07, Josué Conti <josueconti em gmail.com> wrote:
> >
> > Olá, veja se as bibliotecas abaixo estão instaladas:
> >
> > apt-get install libnewt-dev libssl0.9.7 libssl-dev zlib1g-dev libncurses5-dev libeditline0 libeditline-dev libedit2 libedit-dev libreadline4-dev libreadline4 kernel-headers-`uname -r' mpg123 libmysqlclient15-dev libtiff4 libtiff4-dev libxml2 libxml2-dev
> >
> > Abraço e boa sorte.
> >
> > 2007/2/22, Sadi Nogueira <forums em sadi.eti.br >:
> > >
> > >  Pessoal, não sei se já passou por aqui uma dúvida parecida e
> > > desculpem pelo tamanho do post...
> > >
> > >     Já consegui instalar e fazer funcionar o ASTERISK no FreeBSD por
> > > completo, mas por razões neo-politico-sócio-agropecuária , tenho que manter
> > > no ambiente o Debian.
> > > Se eu instalar o Asterisk pelo apt-get do Debian 3.1 r5 (P-III 600,
> > > 256MB, 3C905C-TX), tudo instala normalmente, o Zaptel não dá erro mas também
> > > não funciona.
> > >
> > > servidor:~# apt-get install zaptel
> > > Reading Package Lists... Done
> > > Building Dependency Tree... Done
> > > The following NEW packages will be installed:
> > >   zaptel
> > > 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> > > Need to get 0B/39.6kB of archives.
> > > After unpacking 311kB of additional disk space will be used.
> > > Selecting previously deselected package zaptel.
> > > (Reading database ... 28758 files and directories currently
> > > installed.)
> > > Unpacking zaptel (from .../zaptel_1%3a1.0.7-4.1_i386.deb) ...
> > > Setting up zaptel (1.0.7-4.1) ...
> > >
> > > servidor:~# zttool
> > > Unable to open /dev/zap/ctl: No such device
> > > servidor:~#
> > > Se eu baixar e tentar compilar, toda a instalação corre normalmente,
> > > exceto a do zaptel que dá erro assim que eu dou o primeiro comando. Já
> > > tentei com o Kernel 2.4 e com o Kernel 2.6 e acontece a mesma coisa.
> > >
> > > servidor:/usr/src/zaptel-1.2# make clean
> > > rm -f torisatool makefw tor2fw.h radfw.h
> > > rm -f ztcfg torisatool makefw ztmonitor ztspeed zttest fxotune zttool
> > > rm -f patgen pattest patlooptest hdlcstress hdlctest hdlcgen
> > > hdlcverify timertest
> > > rm -f *.o ztcfg tzdriver sethdlc sethdlc-new
> > > rm -f zonedata.lo tonezone.lo libtonezone.so *.lo
> > > make -C  SUBDIRS=/usr/src/zaptel-1.2 clean
> > > make: *** SUBDIRS=/usr/src/zaptel-1.2: No such file or directory.
> > > Stop.
> > > make: *** [clean] Error 2
> > > servidor:/usr/src/zaptel-1.2#
> > > Se eu tentar seguir e mandar compilar, olhem o que ocorre:
> > >
> > > servidor:/usr/src/zaptel-1.2# make
> > > cc -DSTANDALONE_ZAPATA -DBUILDING_TONEZONE -I. -O4 -g -Wall
> > > -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c -o gendigits.o gendigits.c
> > > cc -o gendigits gendigits.o -lm
> > > ./gendigits > tones.h
> > > cc -DSTANDALONE_ZAPATA -DBUILDING_TONEZONE -I. -O4 -g -Wall
> > > -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"    makefw.c   -o makefw
> > > ./makefw tormenta2.rbt tor2fw > tor2fw.h
> > > Loaded 69900 bytes from file
> > > ./makefw pciradio.rbt radfw > radfw.h
> > > Loaded 42096 bytes from file
> > >
> > > cc -I/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB -I/drivers/net
> > > -Wall -I. -Wstrict-prototypes -fomit-frame-pointer -I/drivers/net/wan
> > > -I/include/net   -DSTANDALONE_ZAPATA -o zaptel-base.o -c zaptel-base.c
> > > In file included from zaptel-base.c:41:
> > > /usr/include/linux/kernel.h:72: error: syntax error before "size_t"
> > > /usr/include/linux/kernel.h:74: error: syntax error before "size_t"
> > > In file included from /usr/include/linux/timex.h:186,
> > >                  from /usr/include/linux/sched.h:11,
> > >                  from /usr/include/linux/module.h:10,
> > >                  from zaptel-base.c:43:
> > > /usr/include/linux/time.h:14: error: syntax error before "time_t"
> > > /usr/include/linux/time.h:16: error: syntax error before '}' token
> > > /usr/include/linux/time.h:20: error: syntax error before "time_t"
> > > In file included from /usr/include/linux/timex.h:186,
> > >                  from /usr/include/linux/sched.h:11,
> > >                  from /usr/include/linux/module.h:10,
> > >                  from zaptel-base.c:43:
> > > /usr/include/linux/time.h: In function `timespec_to_jiffies':
> > > /usr/include/linux/time.h:198: error: dereferencing pointer to
> > > incomplete type
> > > /usr/include/linux/time.h:199: error: dereferencing pointer to
> > > incomplete type
> > > /usr/include/linux/time.h: In function `jiffies_to_timespec':
> > > /usr/include/linux/time.h:219: error: dereferencing pointer to
> > > incomplete type
> > > /usr/include/linux/time.h:219: error: dereferencing pointer to
> > > incomplete type
> > > /usr/include/linux/time.h: In function `timeval_to_jiffies':
> > > /usr/include/linux/time.h:237: error: dereferencing pointer to
> > > incomplete type
> > > /usr/include/linux/time.h:238: error: dereferencing pointer to
> > > incomplete type
> > > /usr/include/linux/time.h: In function `jiffies_to_timeval':
> > > /usr/include/linux/time.h:257: error: dereferencing pointer to
> > > incomplete type
> > > /usr/include/linux/time.h:257: error: dereferencing pointer to
> > > incomplete type
> > > /usr/include/linux/time.h:258: error: dereferencing pointer to
> > > incomplete type
> > > /usr/include/linux/time.h: In function `timespec_equal':
> > > /usr/include/linux/time.h:263: error: dereferencing pointer to
> > > incomplete type
> > > /usr/include/linux/time.h:263: error: dereferencing pointer to
> > > incomplete type
> > > /usr/include/linux/time.h:263: error: dereferencing pointer to
> > > incomplete type
> > > /usr/include/linux/time.h:263: error: dereferencing pointer to
> > > incomplete type
> > > /usr/include/linux/time.h: In function `get_seconds':
> > > /usr/include/linux/time.h:305: error: invalid use of undefined type
> > > `struct timespec'
> > > /usr/include/linux/time.h: At top level:
> > > /usr/include/linux/time.h:329: error: syntax error before "time_t"
> > > /usr/include/linux/time.h: In function `set_normalized_timespec':
> > > /usr/include/linux/time.h:331: error: `nsec' undeclared (first use in
> > > this function)
> > > /usr/include/linux/time.h:331: error: (Each undeclared identifier is
> > > reported only once
> > > /usr/include/linux/time.h:331: error: for each function it appears
> > > in.)
> > > /usr/include/linux/time.h:333: error: `sec' undeclared (first use in
> > > this function)
> > > /usr/include/linux/time.h:339: error: `ts' undeclared (first use in
> > > this function)
> > > /usr/include/linux/time.h: At top level:
> > > /usr/include/linux/time.h:359: error: field `it_interval' has
> > > incomplete type
> > > /usr/include/linux/time.h:360: error: field `it_value' has incomplete
> > > type
> > > /usr/include/linux/time.h:364: error: field `it_interval' has
> > > incomplete type
> > > /usr/include/linux/time.h:365: error: field `it_value' has incomplete
> > > type
> > > In file included from /usr/include/linux/sched.h:11,
> > >                  from /usr/include/linux/module.h:10,
> > >                  from zaptel-base.c:43:
> > > /usr/include/linux/timex.h:203: error: field `time' has incomplete
> > > type
> > > In file included from /usr/include/linux/string.h:23,
> > >                  from /usr/include/linux/bitmap.h:11,
> > >                  from /usr/include/linux/cpumask.h:8,
> > >                  from /usr/include/linux/sched.h:15,
> > >                  from /usr/include/linux/module.h:10,
> > >                  from zaptel-base.c:43:
> > > /usr/include/asm/string.h:41: error: syntax error before "size_t"
> > > /usr/include/asm/string.h: In function `strncpy':
> > > /usr/include/asm/string.h:55: error: `src' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:55: error: `dest' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:55: error: `count' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h: At top level:
> > > /usr/include/asm/string.h:77: error: syntax error before "size_t"
> > > /usr/include/asm/string.h: In function `strncat':
> > > /usr/include/asm/string.h:94: error: `src' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:94: error: `dest' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:94: error: `count' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h: At top level:
> > > /usr/include/asm/string.h:121: error: syntax error before "size_t"
> > > /usr/include/asm/string.h: In function `strncmp':
> > > /usr/include/asm/string.h:139: error: `cs' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:139: error: `ct' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:139: error: `count' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h: At top level:
> > > /usr/include/asm/string.h:180: error: syntax error before "strlen"
> > > /usr/include/asm/string.h:193: error: syntax error before "size_t"
> > > /usr/include/asm/string.h: In function `__memcpy':
> > > /usr/include/asm/string.h:206: error: `n' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:206: error: `to' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:206: error: `from' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h: At top level:
> > > /usr/include/asm/string.h:215: error: syntax error before "size_t"
> > > /usr/include/asm/string.h: In function `__constant_memcpy':
> > > /usr/include/asm/string.h:217: error: `n' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:218: error: `to' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:218: error: `from' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h: At top level:
> > > /usr/include/asm/string.h:299: error: syntax error before "size_t"
> > > /usr/include/asm/string.h: In function `memmove':
> > > /usr/include/asm/string.h:302: error: `dest' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:302: error: `src' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:307: error: `n' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h: At top level:
> > > /usr/include/asm/string.h:326: error: syntax error before "size_t"
> > > /usr/include/asm/string.h: In function `memchr':
> > > /usr/include/asm/string.h:330: error: `count' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:338: error: `c' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:338: error: `cs' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h: At top level:
> > > /usr/include/asm/string.h:342: error: syntax error before "size_t"
> > > /usr/include/asm/string.h: In function `__memset_generic':
> > > /usr/include/asm/string.h:349: error: `c' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:349: error: `s' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:349: error: `count' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h: At top level:
> > > /usr/include/asm/string.h:362: error: syntax error before "size_t"
> > > /usr/include/asm/string.h: In function `__constant_c_memset':
> > > /usr/include/asm/string.h:375: error: `c' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:375: error: `count' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:375: error: `s' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h: At top level:
> > > /usr/include/asm/string.h:382: error: syntax error before "strnlen"
> > > /usr/include/asm/string.h:382: error: syntax error before "size_t"
> > > /usr/include/asm/string.h: In function `strnlen':
> > > /usr/include/asm/string.h:397: error: `s' undeclared (first use in
> > > this function)
> > > /usr/include/asm/string.h:397: error: `count' undeclared (first use in
> > > this function)
> > > ...
> > > ( mais 1 milhão de terabytes de mensagens como essas seguidas)
> > > ...
> > > zaptel.h:1162: error: storage size of `confin' isn't known
> > > zaptel.h:1163: error: storage size of `confout' isn't known
> > > zaptel-base.c:6560: error: storage size of `zt_fops' isn't known
> > > make: *** [zaptel-base.o] Error 1
> > > servidor:/usr/src/zaptel-1.2#
> > >
> > > Alguém já tentou (conseguiu) instalar o Zaptel no Debian, ou
> > > declaradamente não funciona?
> > >
> > > Enquanto escrevo esse testamento, tento o FEDORA CORE 5...
> > >
> > > Abraços.
> > >
> > > ----------------------------------------
> > > Estação VoIP 2006
> > > 5 e 6 Dezembro
> > > Curitiba PR
> > > http://www.estacaovoip.com.br
> > >
> > > _______________________________________________
> > > 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
> > >
> >
> >
> > ----------------------------------------
> > Estação VoIP 2006
> > 5 e 6 Dezembro
> > Curitiba PR
> > http://www.estacaovoip.com.br
> >
> > _______________________________________________
> > 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
> >
>
>
>
> --
>   . ' ' ` .   Rodrigo Sertori
> :  :  '   :  Analista de Sistemas
> `.  ` ' `   +55 16 9151 1392
>     `-
>
> ----------------------------------------
> Estação VoIP 2006
> 5 e 6 Dezembro
> Curitiba PR
> http://www.estacaovoip.com.br
>
> _______________________________________________
> 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
>



-- 
Andre Souza
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20070226/3b64724d/attachment-0001.html


Mais detalhes sobre a lista de discussão AsteriskBrasil