Bem, como foi dito que o arquivo já existe, seria o caso de "sumir" com o version.h para que ele não fosse detectado pela instalação do verbio.
2013/7/11 Vanessa Sather <[email protected]> > > Ei! > > Cheguei a fazer isso na tentativa: > > [root@ipbx asterisk-11.2.1]# ln -s > /asterisk/asterisk-11.2.1/include/asterisk/version.h > /asterisk/asterisk-11.2.1/include/asterisk/ast_version.h > ln: criando ligação simbólica > "/asterisk/asterisk-11.2.1/include/asterisk/ast_version.h": Arquivo existe > > Mas já existia o arquivo. > > Obgda > > ------------------------------ > Em 11/07/2013 19:19, *Ronaldo Toledo < [email protected] >* escreveu: > Bem, talvez eu esteja simplificando demais, mas eu iria localizar onde > está o arquivo version.h na árvore do asterisk e o renomearia para > ast_version.h. > > > > > 2013/7/11 Vanessa Sather > <[email protected]<http://../../../undefined/[email protected]> > > > >> Olá! >> >> Me deram a missão aqui na empresa de testar o verbio. >> Estou tentando subir ele usando asterisk 11.2.1 porem deparo com o erro >> abaixo: >> >> /asterisk/asterisk-11.2.1/include/asterisk/version.h:1:2: error: >> #error "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' >> instead." >> >> Segui o tutorial: >> http://www.elastixbrasil.com.br/index.php?option=com_content&view=article&id=193:tutorial-passo-a-passo-de-instalacao-do-verbio&catid=15:elastix&Itemid=72 >> >> Esse erro ocorre apos eu tentar compilar o asterisk com o make. >> >> Será que funciona? Tenho que realizar alguma modificação? O grande >> problema é que não podemos realizar o downgrade do asterisk. >> >> >> Segue o erro completo abaixo. >> >> Quem puder ajudar fico grata. >> >> Vanessa. >> >> >> Generating embedded module rules ... >> [CC] chan_iax2.c -> chan_iax2.o >> [CC] iax2-parser.c -> iax2-parser.o >> [CC] iax2-provision.c -> iax2-provision.o >> [LD] chan_iax2.o iax2-parser.o iax2-provision.o -> chan_iax2.so >> [CC] chan_sip.c -> chan_sip.o >> [CC] sip/config_parser.c -> sip/config_parser.o >> [CC] sip/dialplan_functions.c -> sip/dialplan_functions.o >> [CC] sip/reqresp_parser.c -> sip/reqresp_parser.o >> [CC] sip/security_events.c -> sip/security_events.o >> [CC] sip/utils.c -> sip/utils.o >> [LD] chan_sip.o sip/config_parser.o sip/dialplan_functions.o >> sip/reqresp_parser.o sip/sdp_crypto.o sip/security_events.o sip/srtp.o >> sip/utils.o -> chan_sip.so >> [CC] pbx_dundi.c -> pbx_dundi.o >> [CC] dundi-parser.c -> dundi-parser.o >> [LD] pbx_dundi.o dundi-parser.o -> pbx_dundi.so >> [CC] app_externalivr.c -> app_externalivr.o >> [LD] app_externalivr.o -> app_externalivr.so >> [CC] app_verbio_speech.c -> app_verbio_speech.o >> In file included from app_verbio_speech.c:46: >> /asterisk/asterisk-11.2.1/include/asterisk/version.h:1:2: error: #error >> "Do not include 'asterisk/version.h'; use 'asterisk/ast_version.h' instead." >> app_verbio_speech.c:355: warning: data definition has no type or storage >> class >> app_verbio_speech.c:355: warning: type defaults to ‘int’ in declaration >> of ‘STANDARD_LOCAL_USER’ >> app_verbio_speech.c:356: warning: data definition has no type or storage >> class >> app_verbio_speech.c:356: warning: type defaults to ‘int’ in declaration >> of ‘LOCAL_USER_DECL’ >> app_verbio_speech.c:426:36: error: macro "ast_config_load" requires 2 >> arguments, but only 1 given >> app_verbio_speech.c: In function ‘verbio_load_asterisk_config’: >> app_verbio_speech.c:426: error: ‘ast_config_load’ undeclared (first use >> in this function) >> app_verbio_speech.c:426: error: (Each undeclared identifier is reported >> only once >> app_verbio_speech.c:426: error: for each function it appears in.) >> app_verbio_speech.c: In function ‘verbio_md5_grammar_exists’: >> app_verbio_speech.c:507: warning: implicit declaration of function ‘stat’ >> app_verbio_speech.c:510: warning: implicit declaration of function ‘mkdir’ >> app_verbio_speech.c: In function ‘verbio_get_dev’: >> app_verbio_speech.c:840: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:842: error: dereferencing pointer to incomplete type >> app_verbio_speech.c: In function ‘verbio_prompt’: >> app_verbio_speech.c:1269: warning: implicit declaration of function >> ‘LOCAL_USER_ADD’ >> app_verbio_speech.c:1280: warning: implicit declaration of function >> ‘LOCAL_USER_REMOVE’ >> app_verbio_speech.c:1494: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:1541: warning: passing argument 2 of >> ‘ast_set_write_format’ makes pointer from integer without a cast >> /asterisk/asterisk-11.2.1/include/asterisk/channel.h:1820: note: expected >> ‘struct ast_format *’ but argument is of type ‘int’ >> app_verbio_speech.c:1552: warning: passing argument 2 of >> ‘ast_set_read_format’ makes pointer from integer without a cast >> /asterisk/asterisk-11.2.1/include/asterisk/channel.h:1795: note: expected >> ‘struct ast_format *’ but argument is of type ‘int’ >> app_verbio_speech.c:1605: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:1628: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:1645: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:1649: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:1738: error: incompatible types when assigning to >> type ‘union ’ from type ‘char **’ >> app_verbio_speech.c:1757: error: invalid operands to binary == (have >> ‘union ast_frame_subclass’ and ‘int’) >> app_verbio_speech.c:1763: error: incompatible type for argument 2 of >> ‘verbio_set_dtmf_result’ >> app_verbio_speech.c:1152: note: expected ‘int’ but argument is of type >> ‘union ast_frame_subclass’ >> app_verbio_speech.c:1770: warning: format ‘%c’ expects type ‘int’, but >> argument 6 has type ‘union ast_frame_subclass’ >> app_verbio_speech.c:1776: error: invalid operands to binary == (have >> ‘union ast_frame_subclass’ and ‘int’) >> app_verbio_speech.c:1788: warning: format ‘%c’ expects type ‘int’, but >> argument 6 has type ‘union ast_frame_subclass’ >> app_verbio_speech.c: In function ‘verbio_rec’: >> app_verbio_speech.c:2077: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:2135: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:2157: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:2171: warning: passing argument 2 of >> ‘ast_set_write_format’ makes pointer from integer without a cast >> /asterisk/asterisk-11.2.1/include/asterisk/channel.h:1820: note: expected >> ‘struct ast_format *’ but argument is of type ‘int’ >> app_verbio_speech.c:2182: warning: passing argument 2 of >> ‘ast_set_read_format’ makes pointer from integer without a cast >> /asterisk/asterisk-11.2.1/include/asterisk/channel.h:1795: note: expected >> ‘struct ast_format *’ but argument is of type ‘int’ >> app_verbio_speech.c:2289: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:2293: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:2373: error: incompatible type for argument 2 of >> ‘vox_recstr_write’ >> /usr/include/voxlib.h:318: note: expected ‘const void *’ but argument is >> of type ‘union ’ >> app_verbio_speech.c:2393: error: incompatible type for argument 2 of >> ‘verbio_set_dtmf_result’ >> app_verbio_speech.c:1152: note: expected ‘int’ but argument is of type >> ‘union ast_frame_subclass’ >> app_verbio_speech.c:2399: error: invalid operands to binary == (have >> ‘union ast_frame_subclass’ and ‘int’) >> app_verbio_speech.c: In function ‘verbio_prompt_and_rec’: >> app_verbio_speech.c:2947: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:2971: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:3053: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:3075: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:3089: warning: passing argument 2 of >> ‘ast_set_write_format’ makes pointer from integer without a cast >> /asterisk/asterisk-11.2.1/include/asterisk/channel.h:1820: note: expected >> ‘struct ast_format *’ but argument is of type ‘int’ >> app_verbio_speech.c:3100: warning: passing argument 2 of >> ‘ast_set_read_format’ makes pointer from integer without a cast >> /asterisk/asterisk-11.2.1/include/asterisk/channel.h:1795: note: expected >> ‘struct ast_format *’ but argument is of type ‘int’ >> app_verbio_speech.c:3390: error: incompatible types when assigning to >> type ‘union ’ from type ‘char **’ >> app_verbio_speech.c:3417: error: incompatible type for argument 2 of >> ‘verbio_set_dtmf_result’ >> app_verbio_speech.c:1152: note: expected ‘int’ but argument is of type >> ‘union ast_frame_subclass’ >> app_verbio_speech.c:3423: error: invalid operands to binary == (have >> ‘union ast_frame_subclass’ and ‘int’) >> app_verbio_speech.c:3472: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:3475: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:3575: error: incompatible type for argument 2 of >> ‘vox_vsd_write’ >> /usr/include/voxlib.h:339: note: expected ‘const void *’ but argument is >> of type ‘union ’ >> app_verbio_speech.c:3590: error: incompatible type for argument 2 of >> ‘vox_recstr_write’ >> /usr/include/voxlib.h:318: note: expected ‘const void *’ but argument is >> of type ‘union ’ >> app_verbio_speech.c:3614: error: incompatible type for argument 2 of >> ‘vox_recstr_write’ >> /usr/include/voxlib.h:318: note: expected ‘const void *’ but argument is >> of type ‘union ’ >> app_verbio_speech.c:3639: error: incompatible types when assigning to >> type ‘union ’ from type ‘char **’ >> app_verbio_speech.c:3667: error: incompatible type for argument 2 of >> ‘verbio_set_dtmf_result’ >> app_verbio_speech.c:1152: note: expected ‘int’ but argument is of type >> ‘union ast_frame_subclass’ >> app_verbio_speech.c:3673: error: invalid operands to binary == (have >> ‘union ast_frame_subclass’ and ‘int’) >> app_verbio_speech.c: In function ‘verbio_stream_and_rec’: >> app_verbio_speech.c:4145: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:4219: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:4241: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:4255: warning: passing argument 2 of >> ‘ast_set_write_format’ makes pointer from integer without a cast >> /asterisk/asterisk-11.2.1/include/asterisk/channel.h:1820: note: expected >> ‘struct ast_format *’ but argument is of type ‘int’ >> app_verbio_speech.c:4266: warning: passing argument 2 of >> ‘ast_set_read_format’ makes pointer from integer without a cast >> /asterisk/asterisk-11.2.1/include/asterisk/channel.h:1795: note: expected >> ‘struct ast_format *’ but argument is of type ‘int’ >> app_verbio_speech.c:4412: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:4415: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:4490: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:4503: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:4506: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:4525: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:4585: error: invalid operands to binary == (have >> ‘union ast_frame_subclass’ and ‘int’) >> app_verbio_speech.c:4599: error: incompatible type for argument 2 of >> ‘vox_vsd_write’ >> /usr/include/voxlib.h:339: note: expected ‘const void *’ but argument is >> of type ‘union ’ >> app_verbio_speech.c:4615: error: incompatible type for argument 2 of >> ‘vox_recstr_write’ >> /usr/include/voxlib.h:318: note: expected ‘const void *’ but argument is >> of type ‘union ’ >> app_verbio_speech.c:4638: error: incompatible type for argument 2 of >> ‘vox_recstr_write’ >> /usr/include/voxlib.h:318: note: expected ‘const void *’ but argument is >> of type ‘union ’ >> app_verbio_speech.c:4659: error: incompatible type for argument 2 of >> ‘verbio_set_dtmf_result’ >> app_verbio_speech.c:1152: note: expected ‘int’ but argument is of type >> ‘union ast_frame_subclass’ >> app_verbio_speech.c:4665: error: invalid operands to binary == (have >> ‘union ast_frame_subclass’ and ‘int’) >> app_verbio_speech.c:4684: error: dereferencing pointer to incomplete type >> app_verbio_speech.c: In function ‘verbio_info’: >> app_verbio_speech.c:5450: error: ‘ASTERISK_VERSION_NUM’ undeclared (first >> use in this function) >> app_verbio_speech.c:5457: error: dereferencing pointer to incomplete type >> app_verbio_speech.c:5462: error: dereferencing pointer to incomplete type >> app_verbio_speech.c: At top level: >> app_verbio_speech.c:5678: warning: no previous prototype for >> ‘unload_module’ >> app_verbio_speech.c: In function ‘unload_module’: >> app_verbio_speech.c:5713: error: ‘STANDARD_HANGUP_LOCALUSERS’ undeclared >> (first use in this function) >> app_verbio_speech.c: At top level: >> app_verbio_speech.c:5728: warning: no previous prototype for ‘load_module’ >> app_verbio_speech.c: In function ‘load_module’: >> app_verbio_speech.c:5765: warning: passing argument 2 of >> ‘ast_register_application2’ from incompatible pointer type >> /asterisk/asterisk-11.2.1/include/asterisk/module.h:458: note: expected >> ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int >> (*)(struct ast_channel *, void *)’ >> app_verbio_speech.c:5766: warning: passing argument 2 of >> ‘ast_register_application2’ from incompatible pointer type >> /asterisk/asterisk-11.2.1/include/asterisk/module.h:458: note: expected >> ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int >> (*)(struct ast_channel *, void *)’ >> app_verbio_speech.c:5767: warning: passing argument 2 of >> ‘ast_register_application2’ from incompatible pointer type >> /asterisk/asterisk-11.2.1/include/asterisk/module.h:458: note: expected >> ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int >> (*)(struct ast_channel *, void *)’ >> app_verbio_speech.c:5772: warning: passing argument 2 of >> ‘ast_register_application2’ from incompatible pointer type >> /asterisk/asterisk-11.2.1/include/asterisk/module.h:458: note: expected >> ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int >> (*)(struct ast_channel *, void *)’ >> app_verbio_speech.c:5773: warning: passing argument 2 of >> ‘ast_register_application2’ from incompatible pointer type >> /asterisk/asterisk-11.2.1/include/asterisk/module.h:458: note: expected >> ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int >> (*)(struct ast_channel *, void *)’ >> app_verbio_speech.c:5774: warning: passing argument 2 of >> ‘ast_register_application2’ from incompatible pointer type >> /asterisk/asterisk-11.2.1/include/asterisk/module.h:458: note: expected >> ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int >> (*)(struct ast_channel *, void *)’ >> app_verbio_speech.c:5775: warning: passing argument 2 of >> ‘ast_register_application2’ from incompatible pointer type >> /asterisk/asterisk-11.2.1/include/asterisk/module.h:458: note: expected >> ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int >> (*)(struct ast_channel *, void *)’ >> app_verbio_speech.c:5776: warning: passing argument 2 of >> ‘ast_register_application2’ from incompatible pointer type >> /asterisk/asterisk-11.2.1/include/asterisk/module.h:458: note: expected >> ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int >> (*)(struct ast_channel *, void *)’ >> app_verbio_speech.c:5777: warning: passing argument 2 of >> ‘ast_register_application2’ from incompatible pointer type >> /asterisk/asterisk-11.2.1/include/asterisk/module.h:458: note: expected >> ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int >> (*)(struct ast_channel *, void *)’ >> app_verbio_speech.c:5782: warning: passing argument 2 of >> ‘ast_register_application2’ from incompatible pointer type >> /asterisk/asterisk-11.2.1/include/asterisk/module.h:458: note: expected >> ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int >> (*)(struct ast_channel *, void *)’ >> app_verbio_speech.c:5783: warning: passing argument 2 of >> ‘ast_register_application2’ from incompatible pointer type >> /asterisk/asterisk-11.2.1/include/asterisk/module.h:458: note: expected >> ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int >> (*)(struct ast_channel *, void *)’ >> app_verbio_speech.c:5784: warning: passing argument 2 of >> ‘ast_register_application2’ from incompatible pointer type >> /asterisk/asterisk-11.2.1/include/asterisk/module.h:458: note: expected >> ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int >> (*)(struct ast_channel *, void *)’ >> app_verbio_speech.c:5785: warning: passing argument 2 of >> ‘ast_register_application2’ from incompatible pointer type >> /asterisk/asterisk-11.2.1/include/asterisk/module.h:458: note: expected >> ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int >> (*)(struct ast_channel *, void *)’ >> app_verbio_speech.c:5790: warning: passing argument 2 of >> ‘ast_register_application2’ from incompatible pointer type >> /asterisk/asterisk-11.2.1/include/asterisk/module.h:458: note: expected >> ‘int (*)(struct ast_channel *, const char *)’ but argument is of type ‘int >> (*)(struct ast_channel *, void *)’ >> app_verbio_speech.c: At top level: >> app_verbio_speech.c:5802: warning: no previous prototype for ‘usecount’ >> app_verbio_speech.c: In function ‘usecount’: >> app_verbio_speech.c:5805: warning: implicit declaration of function >> ‘STANDARD_USECOUNT’ >> app_verbio_speech.c: At top level: >> app_verbio_speech.c:5810: warning: function declaration isn’t a prototype >> app_verbio_speech.c:5814: warning: no previous prototype for ‘description’ >> make[2]: ** [app_verbio_speech.o] Erro 1 >> make[1]: ** [apps] Erro 2 >> make[1]: Saindo do diretório `/asterisk/asterisk-11.2.1' >> make: ** [_cleantest_all] Erro 2 >> >> >> >> _______________________________________________ >> KHOMP: completa linha de placas externas FXO, FXS, GSM e E1; >> Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7; >> Intercomunicadores para acesso remoto via rede IP. Conheça em >> www.Khomp.com. >> _______________________________________________ >> ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7. >> Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express. >> Channel Bank – Appliance Asterisk - Acesse www.aligera.com.br. >> _______________________________________________ >> Para remover seu email desta lista, basta enviar um email em branco para >> [email protected]<http://../../../undefined/[email protected]> > > > > _______________________________________________ > KHOMP: completa linha de placas externas FXO, FXS, GSM e E1; > Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7; > Intercomunicadores para acesso remoto via rede IP. Conheça em > www.Khomp.com. > _______________________________________________ > ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7. > Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express. > Channel Bank – Appliance Asterisk - Acesse www.aligera.com.br. > _______________________________________________ > Para remover seu email desta lista, basta enviar um email em branco para > [email protected] >
_______________________________________________ KHOMP: completa linha de placas externas FXO, FXS, GSM e E1; Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7; Intercomunicadores para acesso remoto via rede IP. Conheça em www.Khomp.com. _______________________________________________ ALIGERA Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7. Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express. Channel Bank Appliance Asterisk - Acesse www.aligera.com.br. _______________________________________________ Para remover seu email desta lista, basta enviar um email em branco para [email protected]

