HI: I have compiled and installed Asterisk 1.0.7 without any problems.I have also installed mysql and DBD::mysql successfuly / When I tried to make asterisk-addons, it showed me the problem like these: [root@voip asterisk-addons]# make install ./mkdep -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/include/mysql `ls *.c` app_addon_sql_mysql.c:162:64: macro "AST_LIST_REMOVE" requires 4 arguments, but only 3 given make -C format_mp3 all make[1]: Entering directory `/usr/src/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 -WstricUntitled 1t-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 `/usr/src/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:162: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:162: `AST_LIST_REMOVE' undeclared (first use in this function) app_addon_sql_mysql.c:162: (Each undeclared identifier is reported only once app_addon_sql_mysql.c:162: for each function it appears in.) make: *** [app_addon_sql_mysql.o] Error 1 I am not a Linux Expert. What can I do for make addons? Thank to all, and sorry for my poor english. _________________________________________________________ Do You Yahoo!? ??????????????? http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/
I put the Who? in Mishehu
2005-Apr-12 06:42 UTC
[Asterisk-Users] Asterisk Addons compile errors
Try re-downloading Asterisk-Addons. It sounds like you have the version that is meant for CVS HEAD and not the stable 1.0 series. -mishehu lie ka wrote:>HI: > I have compiled and installed Asterisk 1.0.7 without >any problems.I have also installed mysql and >DBD::mysql successfuly / When I tried to make >asterisk-addons, it >showed me the problem like these: > >[root@voip asterisk-addons]# make install >./mkdep -fPIC -I../asterisk -D_GNU_SOURCE >-I/usr/include/mysql `ls *.c` >app_addon_sql_mysql.c:162:64: macro "AST_LIST_REMOVE" >requires 4 arguments, but only 3 given >make -C format_mp3 all >make[1]: Entering directory >`/usr/src/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 -WstricUntitled 1t-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 >`/usr/src/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:162: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:162: `AST_LIST_REMOVE' >undeclared (first use in this function) >app_addon_sql_mysql.c:162: (Each undeclared identifier >is reported only once >app_addon_sql_mysql.c:162: for each function it >appears in.) >make: *** [app_addon_sql_mysql.o] Error 1 > >I am not a Linux Expert. What can I do for make >addons? >Thank to all, and sorry for my poor english. > >_________________________________________________________ >Do You Yahoo!? >??????????????? >http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/ >_______________________________________________ >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 > >!DSPAM:425b96c05442027214946! > > >