Hi, Using Zack's -shared replacement posted earlier, addons now compiles. For some reason though, when trying to load it cannot find cdr_mysql.conf even though it's in the /etc/asterisk directory as it should be. Anyone with any ideas? There's still references to _i386 files that are probably incorrect as well. Thanks Rob console messages: apsvr1*CLI> reload Mar 23 11:42:44 WARNING[15003]: config.c:579 cfg_process: parse error: No category context for line 14 of cdr_mysql.conf Mar 23 11:42:44 WARNING[15003]: cdr_addon_mysql.c:264 my_load_module: Unable to load config for mysql CDR's: cdr_mysql.conf Mar 23 11:42:44 NOTICE[15003]: indications.c:397 ast_unregister_indication_country: Removed default indication country 'au' Mar 23 11:42:45 WARNING[15003]: chan_mgcp.c:4038 reload_config: Unable to get our IP address, MGCP disabled compile trace: psvr1:/usr/local/asterisk-addons-1.0.4 root# make clean rm -f *.so *.o .depend make -C format_mp3 clean rm -f *.o *.so *~ apsvr1:/usr/local/asterisk-addons-1.0.4 root# make install ./mkdep -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/include/mysql `ls *.c` make -C format_mp3 all 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 gcc -pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -D_REENTRANT -D_GNU_SOURCE -O6 -bundle -flat_namespace -undefined suppress -Xlinker -x -o format_mp3.so common.o dct64_i386.o decode_ntom.o layer3.o tabinit.o interface.o format_mp3.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 `mysql_log': cdr_addon_mysql.c:111: warning: passing arg 1 of `localtime_r' from incompatible pointer type cc -bundle -flat_namespace -undefined suppress -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 cc -bundle -flat_namespace -undefined suppress -Xlinker -x -o app_addon_sql_mysql.so app_addon_sql_mysql.o -lmysqlclient -lz -L/usr/lib/mysql for x in format_mp3/format_mp3.so cdr_addon_mysql.so app_addon_sql_mysql.so; do install -m 755 $x /usr/lib/asterisk/modules ; done Rob Gillan Director DZhoN Pty. Ltd. rob@dzhon.com www.dzhon.com M:+61(402) 332 087 F: +61(2) 9383 8386 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 3453 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050322/fc264603/attachment.bin
Kevin P. Fleming
2005-Mar-22 18:26 UTC
[Asterisk-Users] asterisk-addons / OS X woes (continued)
Rob Gillan wrote:> Mar 23 11:42:44 WARNING[15003]: config.c:579 cfg_process: parse error: > No category context for line 14 of cdr_mysql.confThis doesn't mean it can't find it, this means there is a syntax error in the file and it cannot be parsed and loaded.