[Asterisk-bsd] Asterisk addons install problem.

Vahan Yerkanian vahan at arminco.com
Wed Jul 6 01:49:02 CDT 2005


Hi Wilson,

Been like that for ages, here is what I did. Considering you have your 
CVS HEAD (was same thing with stable last time I checked, I moved to CVS 
HEAD after I found out it is as stable as the stable is + lots of 
features that I need) sources obtained via 'cvs co asterisk 
asterisk-addons', resulting in:

drwxr-xr-x  26 root  wheel  3072 Jul  4 13:42 asterisk
drwxr-xr-x   9 root  wheel   512 Jul  6 11:42 asterisk-addons

apply this simple modification to asterisk-addons/Makefile

@@ -16,11 +16,11 @@
  MODS=format_mp3/format_mp3.so app_saycountpl.so

  CFLAGS+=-fPIC
-CFLAGS+=-I../asterisk
+CFLAGS+=-I../asterisk/include
  CFLAGS+=-D_GNU_SOURCE

literally, add '/include' to the 'CFLAGS+=-I../asterisk' near the top of 
the Makefile

Same thing applies to the format_mp3 Makefile, add 
'INCLUDE+=-I../../asterisk/include' in the 'ifeq (${OSARCH},FreeBSD)' block:

@@ -42,6 +42,7 @@
  CFLAGS+=$(if ${OSVERSION}<500016,-D_THREAD_SAFE)
  LIBS+=$(if ${OSVERSION}<502102,-lc_r,-pthread)
  INCLUDE+=-I/usr/local/include
+INCLUDE+=-I../../asterisk/include
  CFLAGS+=$(shell if [ -d /usr/local/include/spandsp ]; then echo 
"-I/usr/local/include/spandsp"; fi)
  endif # FreeBSD


Hope this helps,
Vahan

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 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-BSD mailing list
> Asterisk-BSD at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vahan.vcf
Type: text/x-vcard
Size: 287 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-bsd/attachments/20050706/429a9113/vahan-0001.vcf


More information about the Asterisk-BSD mailing list