Hello maybe someone can help me? I did the CVS checkout and then compiled asterisk Then I tried to compile the addons and got the following (don't understand what's wrong at all and can't find anything about this error on google/wiki) 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: `AST_LIST_REMOVE' undeclared (first use in this function) app_addon_sql_mysql.c:164: (Each undeclared identifier is reported only once app_addon_sql_mysql.c:164: for each function it appears in.) make: *** [app_addon_sql_mysql.o] Error 1 Can anyone help me out? Niels PS.. Below the full output of the make [root@bfraint203 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 `/opt/asterisk-cvs/asterisk-addons/format_mp3' gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o common.o common.c gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o dct64_i386.o dct64_i386.c gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o decode_ntom.o decode_ntom.c gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o layer3.o layer3.c gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o tabinit.o tabinit.c gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o interface.o interface.c gcc -pipe -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 -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 `/opt/asterisk-cvs/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 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: `AST_LIST_REMOVE' undeclared (first use in this function) app_addon_sql_mysql.c:164: (Each undeclared identifier is reported only once app_addon_sql_mysql.c:164: for each function it appears in.) make: *** [app_addon_sql_mysql.o] Error 1 rm app_saycountpl.o
niels@wxn.nl
2005-Jan-18 16:45 UTC
[SPAM] - [SPAM] - [SPAM] - [Asterisk-Dev] RE: [Asterisk-Users] problems compilingasterisk-addons - Found word(s) mp3 list error remove in the Text body. - Found word(s) list error mp3 in the subject - Found word(s) list error mp3 in the subject
Ehhr... didn't expect to find this so soon... Only did make on asterisk (and had 1.0.3 still running).... after issuing a make-install on the CVS version of asterisk the asterisk-addons CVS compiled also without failures .. Sorry :-) -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of niels@wxn.nl Sent: dinsdag 18 januari 2005 23:29 To: asterisk-users@lists.digium.com Subject: [Asterisk-Users] problems compiling asterisk-addons Hello maybe someone can help me? I did the CVS checkout and then compiled asterisk Then I tried to compile the addons and got the following (don't understand what's wrong at all and can't find anything about this error on google/wiki) 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: `AST_LIST_REMOVE' undeclared (first use in this function) app_addon_sql_mysql.c:164: (Each undeclared identifier is reported only once app_addon_sql_mysql.c:164: for each function it appears in.) make: *** [app_addon_sql_mysql.o] Error 1 Can anyone help me out? Niels PS.. Below the full output of the make [root@bfraint203 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 `/opt/asterisk-cvs/asterisk-addons/format_mp3' gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o common.o common.c gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o dct64_i386.o dct64_i386.c gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o decode_ntom.o decode_ntom.c gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o layer3.o layer3.c gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o tabinit.o tabinit.c gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -c -o interface.o interface.c gcc -pipe -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 -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 `/opt/asterisk-cvs/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 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: `AST_LIST_REMOVE' undeclared (first use in this function) app_addon_sql_mysql.c:164: (Each undeclared identifier is reported only once app_addon_sql_mysql.c:164: for each function it appears in.) make: *** [app_addon_sql_mysql.o] Error 1 rm app_saycountpl.o _______________________________________________ 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 _______________________________________________ Asterisk-Dev mailing list Asterisk-Dev@lists.digium.com http://lists.digium.com/mailman/listinfo/asterisk-dev To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
On Tue, 2005-01-18 at 23:28 +0100, niels@wxn.nl wrote:> Hello maybe someone can help me? > > I did the CVS checkout and then compiled asterisk > > Then I tried to compile the addons and got the following (don't > understand what's wrong at all and can't find anything about this error > on google/wiki) > > > 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: `AST_LIST_REMOVE' undeclared (first use in > this function) > app_addon_sql_mysql.c:164: (Each undeclared identifier is reported only > once > app_addon_sql_mysql.c:164: for each function it appears in.) > make: *** [app_addon_sql_mysql.o] Error 1 > > > Can anyone help me out?Yep, as it says, the function requires 4 parameters instead of 3. This one line change should do it: AST_LIST_REMOVE(headp,i,ast_MYSQL_id,entries); I had this same problem last week, and looked at the postgres apps to work out the correct change. The above change seems to be working for me without any issues on cvs stable CVS-v1-0-12/29/04-18:56:44 Regards, Adam -- -- Adam Goryachev Website Managers Ph: +61 2 8304 0000 adam@websitemanagers.com.au Fax: +61 2 9345 4396 www.websitemanagers.com.au