there is a problem in compiling asterisk-addons any one have fixed this problem. i want res_config_mysql.so any one help me ----------------------------------------------------- [root@localhost asterisk-addons]# make cc -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/include/mysql -c -o res_config_mysql.o res_config_mysql.c res_config_mysql.c: In function `realtime_mysql': res_config_mysql.c:142: warning: passing arg 1 of `ast_strlen_zero' makes pointer from integer without a cast res_config_mysql.c:144: warning: assignment makes pointer from integer without a cast res_config_mysql.c:149: warning: assignment makes pointer from integer without a cast res_config_mysql.c: In function `realtime_multi_mysql': res_config_mysql.c:189: warning: assignment makes pointer from integer without a cast res_config_mysql.c:250: warning: assignment makes pointer from integer without a cast res_config_mysql.c:259: warning: passing arg 1 of `ast_strlen_zero' makes pointer from integer without a cast res_config_mysql.c:263: warning: assignment makes pointer from integer without a cast res_config_mysql.c: In function `config_mysql': res_config_mysql.c:396: warning: assignment makes pointer from integer without a cast res_config_mysql.c:405: warning: assignment makes pointer from integer without a cast res_config_mysql.c: At top level: res_config_mysql.c:418: error: variable `mysql_engine' has initializer but incomplete type res_config_mysql.c:419: error: unknown field `name' specified in initializer res_config_mysql.c:419: warning: excess elements in struct initializer res_config_mysql.c:419: warning: (near initialization for `mysql_engine') res_config_mysql.c:420: error: unknown field `load_func' specified in initializer res_config_mysql.c:420: warning: excess elements in struct initializer res_config_mysql.c:420: warning: (near initialization for `mysql_engine') res_config_mysql.c:421: error: unknown field `realtime_func' specified in initializer res_config_mysql.c:421: warning: excess elements in struct initializer res_config_mysql.c:421: warning: (near initialization for `mysql_engine') res_config_mysql.c:422: error: unknown field `realtime_multi_func' specified in initializer res_config_mysql.c:422: warning: excess elements in struct initializer res_config_mysql.c:422: warning: (near initialization for `mysql_engine') res_config_mysql.c:423: error: unknown field `update_func' specified in initializer res_config_mysql.c:424: warning: excess elements in struct initializer res_config_mysql.c:424: warning: (near initialization for `mysql_engine') res_config_mysql.c: In function `parse_config': res_config_mysql.c:491: warning: assignment makes pointer from integer without a cast /usr/include/asterisk/utils.h: At top level: res_config_mysql.c:418: error: storage size of `mysql_engine' isn't known make: *** [res_config_mysql.o] Error 1 ------------------------------------------------------- __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail
igil@itranser.com
2005-Feb-02 07:21 UTC
[Asterisk-Users] problem in compiling asterisk-addons
<div>Did you install mysql-dev?<br> <br> I hope this help.<br> <br> Ismael.<br> <br> <br></div><font color="#990099">-----asterisk-users-bounces@lists.digium.com escribió: -----<br><br></font><blockquote style="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">Para: asterisk-users@lists.digium.com<br>De: Kamran Ahmad <p_kami@yahoo.com><br>Enviado por: asterisk-users-bounces@lists.digium.com<br>Fecha: 02/02/2005 14:05<br>Asunto: [Asterisk-Users] problem in compiling asterisk-addons<br><br><font face="monospace" size="3">there is a problem in compiling asterisk-addons<br>any one have fixed this problem. i want<br>res_config_mysql.so any one help me<br><br>-----------------------------------------------------<br>[root@localhost asterisk-addons]# make<br>cc -fPIC -I../asterisk -D_GNU_SOURCE <br>-I/usr/include/mysql -c -o res_config_mysql.o<br>res_config_mysql.c<br>res_config_mysql.c: In function `realtime_mysql':<br>res_config_mysql.c:142: warning: passing arg 1 of<br>`ast_strlen_zero' makes pointer from integer without a<br>cast<br>res_config_mysql.c:144: warning: assignment makes<br>pointer from integer without a cast<br>res_config_mysql.c:149: warning: assignment makes<br>pointer from integer without a cast<br>res_config_mysql.c: In function<br>`realtime_multi_mysql':<br>res_config_mysql.c:189: warning: assignment makes<br>pointer from integer without a cast<br>res_config_mysql.c:250: warning: assignment makes<br>pointer from integer without a cast<br>res_config_mysql.c:259: warning: passing arg 1 of<br>`ast_strlen_zero' makes pointer from integer without a<br>cast<br>res_config_mysql.c:263: warning: assignment makes<br>pointer from integer without a cast<br>res_config_mysql.c: In function `config_mysql':<br>res_config_mysql.c:396: warning: assignment makes<br>pointer from integer without a cast<br>res_config_mysql.c:405: warning: assignment makes<br>pointer from integer without a cast<br>res_config_mysql.c: At top level:<br>res_config_mysql.c:418: error: variable `mysql_engine'<br>has initializer but incomplete type<br>res_config_mysql.c:419: error: unknown field `name'<br>specified in initializer<br>res_config_mysql.c:419: warning: excess elements in<br>struct initializer<br>res_config_mysql.c:419: warning: (near initialization<br>for `mysql_engine')<br>res_config_mysql.c:420: error: unknown field<br>`load_func' specified in initializer<br>res_config_mysql.c:420: warning: excess elements in<br>struct initializer<br>res_config_mysql.c:420: warning: (near initialization<br>for `mysql_engine')<br>res_config_mysql.c:421: error: unknown field<br>`realtime_func' specified in initializer<br>res_config_mysql.c:421: warning: excess elements in<br>struct initializer<br>res_config_mysql.c:421: warning: (near initialization<br>for `mysql_engine')<br>res_config_mysql.c:422: error: unknown field<br>`realtime_multi_func' specified in initializer<br>res_config_mysql.c:422: warning: excess elements in<br>struct initializer<br>res_config_mysql.c:422: warning: (near initialization<br>for `mysql_engine')<br>res_config_mysql.c:423: error: unknown field<br>`update_func' specified in initializer<br>res_config_mysql.c:424: warning: excess elements in<br>struct initializer<br>res_config_mysql.c:424: warning: (near initialization<br>for `mysql_engine')<br>res_config_mysql.c: In function `parse_config':<br>res_config_mysql.c:491: warning: assignment makes<br>pointer from integer without a cast<br>/usr/include/asterisk/utils.h: At top level:<br>res_config_mysql.c:418: error: storage size of<br>`mysql_engine' isn't known<br>make: *** [res_config_mysql.o] Error 1<br>-------------------------------------------------------<br><br><br><br><span style="visibility: hidden;"> </span>        <br><span style="visibility: hidden;"> </span><span style="visibility: hidden;"> </span>        <br>__________________________________ <br>Do you Yahoo!? <br>Yahoo! Mail - You care about security. So do we. <br><a href="http://promotions.yahoo.com/new_mail">http://promotions.yahoo.com/new_mail</a><br>_______________________________________________<br>Asterisk-Users mailing list<br>Asterisk-Users@lists.digium.com<br><a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></font></blockquote><br>
You need to update BOTH asterisk AND asterisk-addons -Matthew ----- Original Message ----- From: "Kamran Ahmad" <p_kami@yahoo.com> To: <asterisk-users@lists.digium.com> Sent: Wednesday, February 02, 2005 7:05 AM Subject: [Asterisk-Users] problem in compiling asterisk-addons> there is a problem in compiling asterisk-addons > any one have fixed this problem. i want > res_config_mysql.so any one help me > > ----------------------------------------------------- > [root@localhost asterisk-addons]# make > cc -fPIC -I../asterisk -D_GNU_SOURCE > -I/usr/include/mysql -c -o res_config_mysql.o > res_config_mysql.c > res_config_mysql.c: In function `realtime_mysql': > res_config_mysql.c:142: warning: passing arg 1 of > `ast_strlen_zero' makes pointer from integer without a > cast > res_config_mysql.c:144: warning: assignment makes > pointer from integer without a cast > res_config_mysql.c:149: warning: assignment makes > pointer from integer without a cast > res_config_mysql.c: In function > `realtime_multi_mysql': > res_config_mysql.c:189: warning: assignment makes > pointer from integer without a cast > res_config_mysql.c:250: warning: assignment makes > pointer from integer without a cast > res_config_mysql.c:259: warning: passing arg 1 of > `ast_strlen_zero' makes pointer from integer without a > cast > res_config_mysql.c:263: warning: assignment makes > pointer from integer without a cast > res_config_mysql.c: In function `config_mysql': > res_config_mysql.c:396: warning: assignment makes > pointer from integer without a cast > res_config_mysql.c:405: warning: assignment makes > pointer from integer without a cast > res_config_mysql.c: At top level: > res_config_mysql.c:418: error: variable `mysql_engine' > has initializer but incomplete type > res_config_mysql.c:419: error: unknown field `name' > specified in initializer > res_config_mysql.c:419: warning: excess elements in > struct initializer > res_config_mysql.c:419: warning: (near initialization > for `mysql_engine') > res_config_mysql.c:420: error: unknown field > `load_func' specified in initializer > res_config_mysql.c:420: warning: excess elements in > struct initializer > res_config_mysql.c:420: warning: (near initialization > for `mysql_engine') > res_config_mysql.c:421: error: unknown field > `realtime_func' specified in initializer > res_config_mysql.c:421: warning: excess elements in > struct initializer > res_config_mysql.c:421: warning: (near initialization > for `mysql_engine') > res_config_mysql.c:422: error: unknown field > `realtime_multi_func' specified in initializer > res_config_mysql.c:422: warning: excess elements in > struct initializer > res_config_mysql.c:422: warning: (near initialization > for `mysql_engine') > res_config_mysql.c:423: error: unknown field > `update_func' specified in initializer > res_config_mysql.c:424: warning: excess elements in > struct initializer > res_config_mysql.c:424: warning: (near initialization > for `mysql_engine') > res_config_mysql.c: In function `parse_config': > res_config_mysql.c:491: warning: assignment makes > pointer from integer without a cast > /usr/include/asterisk/utils.h: At top level: > res_config_mysql.c:418: error: storage size of > `mysql_engine' isn't known > make: *** [res_config_mysql.o] Error 1 > ------------------------------------------------------- > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - You care about security. So do we. > http://promotions.yahoo.com/new_mail > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Kamran Ahmad
2005-Feb-03 01:24 UTC
[Asterisk-Users] Re: problem in compiling asterisk-addons
prbolem still there first of all i have these two(asterisk, asterisk-addons) working on my system i got these packages from asterisk.org then i recompiled asterisk-addons because i want res_config_mysql.so module for real time database i got this addon by following command ---------------------------------------------------- cvs -d :pserver:anoncvs@cvs.digium.com:/usr/cvsroot login (password is 'anoncvs') cvs -d :pserver:anoncvs@cvs.digium.com:/usr/cvsroot co asterisk-addons ------------------------------------------------------ when i recompiled this code i got these following errors ------------------------------------------------------ [root@localhost asterisk-addons]# make ./mkdep -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/include/mysql `ls *.c` app_addon_sql_mysql.c:164:64: macro "AST_LIST_REMOVE" requires 4 arguments, but only 3 given make -C format_mp3 all make[1]: Entering directory `/asterisk-addons/format_mp3' gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o common.o common.c gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o dct64_i386.o dct64_i386.c gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o decode_ntom.o decode_ntom.c gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o layer3.o layer3.c gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o tabinit.o tabinit.c gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o interface.o interface.c gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o format_mp3.o format_mp3.c format_mp3.c: In function `load_module': format_mp3.c:335: warning: passing arg 5 of `ast_format_register' from incompatible pointer type gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -shared -Xlinker -x -o format_mp3.so common.o dct64_i386.o decode_ntom.o layer3.o tabinit.o interface.o format_mp3.o make[1]: Leaving directory `/asterisk-addons/format_mp3' cc -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/include/mysql -c -o app_saycountpl.o app_saycountpl.c cc -shared -Xlinker -x -o app_saycountpl.so app_saycountpl.o cc -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/include/mysql -c -o cdr_addon_mysql.o cdr_addon_mysql.c cdr_addon_mysql.c: In function `my_load_module': cdr_addon_mysql.c:269: warning: assignment makes pointer from integer without a cast cc -shared -Xlinker -x -o cdr_addon_mysql.so cdr_addon_mysql.o -lmysqlclient -lz -L/usr/lib/mysql cc -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/include/mysql -c -o app_addon_sql_mysql.o app_addon_sql_mysql.c app_addon_sql_mysql.c:164:64: macro "AST_LIST_REMOVE" requires 4 arguments, but only 3 given app_addon_sql_mysql.c: In function `del_identifier': app_addon_sql_mysql.c:164: error: `AST_LIST_REMOVE' undeclared (first use in this function) app_addon_sql_mysql.c:164: error: (Each undeclared identifier is reported only once app_addon_sql_mysql.c:164: error: for each function it appears in.) make: *** [app_addon_sql_mysql.o] Error 1 rm app_saycountpl.o [root@localhost asterisk-addons]# ls ------------------------------------------------------- i have recompiled these two packages but same result any on have fixed this problem kindly answer me i have checked the code of app_addon_sql_mysql.c and fixed the function 'AST_LIST_REMOVE' call then again execute make now this error ------------------------------------------------------- [root@localhost asterisk-addons]# make cc -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/include/mysql -c -o app_saycountpl.o app_saycountpl.c cc -shared -Xlinker -x -o app_saycountpl.so app_saycountpl.o cc -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/include/mysql -c -o app_addon_sql_mysql.o app_addon_sql_mysql.c cc -shared -Xlinker -x -o app_addon_sql_mysql.so app_addon_sql_mysql.o -lmysqlclient -lz -L/usr/lib/mysql cc -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/include/mysql -c -o res_config_mysql.o res_config_mysql.c res_config_mysql.c: In function `realtime_mysql': res_config_mysql.c:142: warning: passing arg 1 of `ast_strlen_zero' makes pointer from integer without a cast res_config_mysql.c:144: warning: assignment makes pointer from integer without a cast res_config_mysql.c:149: warning: assignment makes pointer from integer without a cast res_config_mysql.c: In function `realtime_multi_mysql': res_config_mysql.c:177: error: storage size of `ra' isn't known res_config_mysql.c:189: warning: assignment makes pointer from integer without a cast res_config_mysql.c:250: warning: assignment makes pointer from integer without a cast res_config_mysql.c:259: warning: passing arg 1 of `ast_strlen_zero' makes pointer from integer without a cast res_config_mysql.c:263: warning: assignment makes pointer from integer without a cast res_config_mysql.c: In function `config_mysql': res_config_mysql.c:396: warning: assignment makes pointer from integer without a cast res_config_mysql.c:405: warning: assignment makes pointer from integer without a cast res_config_mysql.c: At top level: res_config_mysql.c:418: error: variable `mysql_engine' has initializer but incomplete type res_config_mysql.c:419: error: unknown field `name' specified in initializer res_config_mysql.c:419: warning: excess elements in struct initializer res_config_mysql.c:419: warning: (near initialization for `mysql_engine') res_config_mysql.c:420: error: unknown field `load_func' specified in initializer res_config_mysql.c:420: warning: excess elements in struct initializer res_config_mysql.c:420: warning: (near initialization for `mysql_engine') res_config_mysql.c:421: error: unknown field `realtime_func' specified in initializer res_config_mysql.c:421: warning: excess elements in struct initializer res_config_mysql.c:421: warning: (near initialization for `mysql_engine') res_config_mysql.c:422: error: unknown field `realtime_multi_func' specified in initializer res_config_mysql.c:422: warning: excess elements in struct initializer res_config_mysql.c:422: warning: (near initialization for `mysql_engine') res_config_mysql.c:423: error: unknown field `update_func' specified in initializer res_config_mysql.c:424: warning: excess elements in struct initializer res_config_mysql.c:424: warning: (near initialization for `mysql_engine') res_config_mysql.c: In function `parse_config': res_config_mysql.c:491: warning: assignment makes pointer from integer without a cast /usr/include/asterisk/utils.h: At top level: res_config_mysql.c:418: error: storage size of `mysql_engine' isn't known make: *** [res_config_mysql.o] Error 1 [root@localhost asterisk-addons]# ------------------------------------------------------- i want to check this res_config_mysql.c for error in 'mysql_engine' but i am not able to find the actual struct for this 'static struct ast_config_engine mysql_engine' at line 418 in res_config_mysql.c any one fixed this kindly contact me thanks __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo
Kamran Ahmad
2005-Feb-03 08:10 UTC
[Asterisk-Users] Re: problem in compiling asterisk-addons
i am using asterisk-1.0.5 latest available stable version downloaded from www.asterisk.org __________________________________ Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. http://info.mail.yahoo.com/mail_250
I hear a faint clicking sound (periodic in nature, a click once every 2-3 mins.) on my SIP phone when the call is going through TDM04B. Is there any setting in Zapata that would eliminate it. Any help would be appreciated. Regards, Goutam
Kamran Ahmad
2005-Feb-04 00:56 UTC
[Asterisk-Users] Re: Re: problem in compiling asterisk-addons
--------------------------------------------------------- Matthew what do you meant by this *bamn* damn..hate it when i'm right. you are attempting to use asterisk-1.0.5 with asterisk-addons-CVS. insert *VERY LOUD buzzer* --------------------------------------------------------- i have compiled asterisk with addons(realtime database mysql) it is working. but i dont know why it is say at load time 'Unable to load config sip.conf'. SIP is not working i think my configuration is ok. -------------------------------------------------------- Feb 4 12:39:04 NOTICE[11394]: config.c:832 ast_config_engine_register: Registered Config Engine mysql MySQL RealTime driver loaded. [res_adsi.so] => (ADSI Resource) [res_monitor.so] => (Call Monitoring Resource) [res_agi.so] => (Asterisk Gateway Interface (AGI)) [res_indications.so] => (Indications Configuration) [res_features.so] => (Call Parking Resource) [chan_agent.so] => (Agent Proxy Channel) [chan_sip.so] => (Session Initiation Protocol (SIP)) Feb 4 12:39:04 WARNING[11394]: res_config_mysql.c:371 config_mysql: MySQL RealTime: Failed to query database. Check debug for more info. Feb 4 12:39:04 NOTICE[11394]: chan_sip.c:9070 reload_config: Unable to load config sip.conf, SIP disabled [chan_phone.so] => (Linux Telephony API Support) [chan_modem_bestdata.so] => (BestData (Conexant V.90 Chipset) VoiceModem Driver) [chan_modem_i4l.so] => (ISDN4Linux Emulated Modem Driver) [chan_skinny.so] => (Skinny Client Control Protocol (Skinny)) Feb 4 12:39:04 WARNING[11394]: chan_skinny.c:2692 reload_config: Unable to get our IP address, Skinny disabled [chan_local.so] => (Local Proxy Channel) [chan_mgcp.so] => (Media Gateway Control Protocol (MGCP)) ------------------------------------------------------- __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail