Hi there: I have successfully installed the Asterisk 1.0.9 on my Freebsd 5.4 box. When I tend to install the addon for mysql CDR billing, It always return me the following errors: SIP# gmake clean rm -f *.so *.o .depend gmake -C format_mp3 clean gmake[1]: Entering directory `/usr/home/wilson/asterisk/asterisk-addons-1.0.9/format_mp3' rm -f *.o *.so *~ gmake[1]: Leaving directory `/usr/home/wilson/asterisk/asterisk-addons-1.0.9/format_mp3' SIP# gmake ./mkdep -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/local/include/mysql `ls *.c` app_addon_sql_mysql.c:15:27: asterisk/file.h: No such file or directory app_addon_sql_mysql.c:16:29: asterisk/logger.h: No such file or directory app_addon_sql_mysql.c:17:30: asterisk/channel.h: No such file or directory app_addon_sql_mysql.c:18:26: asterisk/pbx.h: No such file or directory app_addon_sql_mysql.c:19:29: asterisk/module.h: No such file or directory app_addon_sql_mysql.c:20:34: asterisk/linkedlists.h: No such file or directory app_addon_sql_mysql.c:21:31: asterisk/chanvars.h: No such file or directory app_addon_sql_mysql.c:22:27: asterisk/lock.h: No such file or directory cdr_addon_mysql.c:17:29: asterisk/config.h: No such file or directory cdr_addon_mysql.c:18:30: asterisk/options.h: No such file or directory cdr_addon_mysql.c:19:30: asterisk/channel.h: No such file or directory cdr_addon_mysql.c:20:26: asterisk/cdr.h: No such file or directory cdr_addon_mysql.c:21:29: asterisk/module.h: No such file or directory cdr_addon_mysql.c:22:29: asterisk/logger.h: No such file or directory cdr_addon_mysql.c:23:26: asterisk/cli.h: No such file or directory cdr_addon_mysql.c:24:22: asterisk.h: No such file or directory gmake -C format_mp3 all gmake[1]: Entering directory `/usr/home/wilson/asterisk/asterisk-addons-1.0.9/format_mp3' gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -D_THREAD_SAFE -O6 -c -o common.o common.c common.c:1:29: asterisk/logger.h: No such file or directory common.c: In function `decode_header': common.c:93: warning: implicit declaration of function `ast_log' common.c:93: error: `LOG_WARNING' undeclared (first use in this function) common.c:93: error: (Each undeclared identifier is reported only once common.c:93: error: for each function it appears in.) gmake[1]: *** [common.o] Error 1 gmake[1]: Leaving directory `/usr/home/wilson/asterisk/asterisk-addons-1.0.9/format_mp3' gmake: *** [format_mp3/format_mp3.so] Error 2 Can anybody give me a help? Thanks a lot. Wilson
Marcel van Kaam, Fonetica
2005-Jul-05 22:54 UTC
[Asterisk-Users] Asterisk addons install problem
Do locate file.h Insert the location in your app_addon_sql_mysql.c then it will work. Marcel -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of wei li Sent: woensdag 6 juli 2005 7:07 To: Asterisk-Users@lists.digium.com Subject: [Asterisk-Users] Asterisk addons install problem Hi there: I have successfully installed the Asterisk 1.0.9 on my Freebsd 5.4 box. When I tend to install the addon for mysql CDR billing, It always return me the following errors: SIP# gmake clean rm -f *.so *.o .depend gmake -C format_mp3 clean gmake[1]: Entering directory `/usr/home/wilson/asterisk/asterisk-addons-1.0.9/format_mp3' rm -f *.o *.so *~ gmake[1]: Leaving directory `/usr/home/wilson/asterisk/asterisk-addons-1.0.9/format_mp3' SIP# gmake ./mkdep -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/local/include/mysql `ls *.c` app_addon_sql_mysql.c:15:27: asterisk/file.h: No such file or directory app_addon_sql_mysql.c:16:29: asterisk/logger.h: No such file or directory app_addon_sql_mysql.c:17:30: asterisk/channel.h: No such file or directory app_addon_sql_mysql.c:18:26: asterisk/pbx.h: No such file or directory app_addon_sql_mysql.c:19:29: asterisk/module.h: No such file or directory app_addon_sql_mysql.c:20:34: asterisk/linkedlists.h: No such file or directory app_addon_sql_mysql.c:21:31: asterisk/chanvars.h: No such file or directory app_addon_sql_mysql.c:22:27: asterisk/lock.h: No such file or directory cdr_addon_mysql.c:17:29: asterisk/config.h: No such file or directory cdr_addon_mysql.c:18:30: asterisk/options.h: No such file or directory cdr_addon_mysql.c:19:30: asterisk/channel.h: No such file or directory cdr_addon_mysql.c:20:26: asterisk/cdr.h: No such file or directory cdr_addon_mysql.c:21:29: asterisk/module.h: No such file or directory cdr_addon_mysql.c:22:29: asterisk/logger.h: No such file or directory cdr_addon_mysql.c:23:26: asterisk/cli.h: No such file or directory cdr_addon_mysql.c:24:22: asterisk.h: No such file or directory gmake -C format_mp3 all gmake[1]: Entering directory `/usr/home/wilson/asterisk/asterisk-addons-1.0.9/format_mp3' gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -D_THREAD_SAFE -O6 -c -o common.o common.c common.c:1:29: asterisk/logger.h: No such file or directory common.c: In function `decode_header': common.c:93: warning: implicit declaration of function `ast_log' common.c:93: error: `LOG_WARNING' undeclared (first use in this function) common.c:93: error: (Each undeclared identifier is reported only once common.c:93: error: for each function it appears in.) gmake[1]: *** [common.o] Error 1 gmake[1]: Leaving directory `/usr/home/wilson/asterisk/asterisk-addons-1.0.9/format_mp3' gmake: *** [format_mp3/format_mp3.so] Error 2 Can anybody give me a help? Thanks a lot. Wilson _______________________________________________ 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
On Wednesday 06 Jul 2005 06:07, wei li wrote:> Hi there: > > I have successfully installed the Asterisk 1.0.9 on my Freebsd 5.4 > box. When I tend to install the addon for mysql CDR billing, It always > return me the following errors: > > SIP# gmake clean > rm -f *.so *.o .depend > gmake -C format_mp3 clean > gmake[1]: Entering directory > `/usr/home/wilson/asterisk/asterisk-addons-1.0.9/format_mp3' > rm -f *.o *.so *~ > gmake[1]: Leaving directory > `/usr/home/wilson/asterisk/asterisk-addons-1.0.9/format_mp3' > SIP# gmake > ./mkdep -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/local/include/mysql `ls > *.c` app_addon_sql_mysql.c:15:27: asterisk/file.h: No such file or > directory app_addon_sql_mysql.c:16:29: asterisk/logger.h: No such file orPerhaps it's now time for the addons package to include the same release of Asterisk directory, i.e., insert -I../asterisk-<release num>. B
On Wed, Jul 06, 2005 at 03:07:16PM +1000, wei li wrote:> Hi there: > > I have successfully installed the Asterisk 1.0.9 on my Freebsd 5.4 > box. When I tend to install the addon for mysql CDR billing, It always > return me the following errors:My asterisk-addons deb builds independently of asterisk (with the package asterisk-dev installed) The current patch we have to allow that: --- asterisk-addons-1.0.9.orig/Makefile +++ asterisk-addons-1.0.9/Makefile @@ -16,7 +16,8 @@ MODS=format_mp3/format_mp3.so CFLAGS+=-fPIC -CFLAGS+=-I../asterisk +CFLAGS+=-Wall -g +CFLAGS+=-O2 CFLAGS+=-D_GNU_SOURCE INSTALL=install --- asterisk-addons-1.0.9.orig/cdr_addon_mysql.c +++ asterisk-addons-1.0.9/cdr_addon_mysql.c @@ -21,7 +21,6 @@ #include <asterisk/module.h> #include <asterisk/logger.h> #include <asterisk/cli.h> -#include "asterisk.h" #include <stdio.h> #include <string.h>> > SIP# gmake clean > rm -f *.so *.o .depend > gmake -C format_mp3 clean > gmake[1]: Entering directory > `/usr/home/wilson/asterisk/asterisk-addons-1.0.9/format_mp3' > rm -f *.o *.so *~ > gmake[1]: Leaving directory > `/usr/home/wilson/asterisk/asterisk-addons-1.0.9/format_mp3' > SIP# gmake > ./mkdep -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/local/include/mysql `ls *.c` > app_addon_sql_mysql.c:15:27: asterisk/file.h: No such file or directory > app_addon_sql_mysql.c:16:29: asterisk/logger.h: No such file or directory > app_addon_sql_mysql.c:17:30: asterisk/channel.h: No such file or directory > app_addon_sql_mysql.c:18:26: asterisk/pbx.h: No such file or directory > app_addon_sql_mysql.c:19:29: asterisk/module.h: No such file or directory > app_addon_sql_mysql.c:20:34: asterisk/linkedlists.h: No such file or directory > app_addon_sql_mysql.c:21:31: asterisk/chanvars.h: No such file or directory > app_addon_sql_mysql.c:22:27: asterisk/lock.h: No such file or directory > cdr_addon_mysql.c:17:29: asterisk/config.h: No such file or directory > cdr_addon_mysql.c:18:30: asterisk/options.h: No such file or directory > cdr_addon_mysql.c:19:30: asterisk/channel.h: No such file or directory > cdr_addon_mysql.c:20:26: asterisk/cdr.h: No such file or directory > cdr_addon_mysql.c:21:29: asterisk/module.h: No such file or directory > cdr_addon_mysql.c:22:29: asterisk/logger.h: No such file or directory > cdr_addon_mysql.c:23:26: asterisk/cli.h: No such file or directory > cdr_addon_mysql.c:24:22: asterisk.h: No such file or directory > gmake -C format_mp3 all > gmake[1]: Entering directory > `/usr/home/wilson/asterisk/asterisk-addons-1.0.9/format_mp3' > gcc -pipe -fPIC -Wall -Wstrict-prototypes -Wmissing-prototypes > -Wmissing-declarations -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE > -D_THREAD_SAFE -O6 -c -o common.o common.c > common.c:1:29: asterisk/logger.h: No such file or directory > common.c: In function `decode_header': > common.c:93: warning: implicit declaration of function `ast_log' > common.c:93: error: `LOG_WARNING' undeclared (first use in this function) > common.c:93: error: (Each undeclared identifier is reported only once > common.c:93: error: for each function it appears in.) > gmake[1]: *** [common.o] Error 1 > gmake[1]: Leaving directory > `/usr/home/wilson/asterisk/asterisk-addons-1.0.9/format_mp3' > gmake: *** [format_mp3/format_mp3.so] Error 2 > > > Can anybody give me a help? > > Thanks a lot. > > Wilson > _______________________________________________ > 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-- Tzafrir Cohen | tzafrir@jbr.cohens.org.il | VIM is http://tzafrir.org.il | | a Mutt's tzafrir@cohens.org.il | | best ICQ# 16849755 | | friend