[Asterisk-bsd] Installing the asterisk-addons on FreeBSD

Kiel R Stirling kiel at knss.net
Tue Apr 5 20:00:23 CDT 2005


apply your patch and now I'm getting 

 gmake
cc -fPIC -I../asterisk-1.0.6 -I../asterisk-1.0.6/include -D_GNU_SOURCE  
-I/usr/local/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: error: `AST_LIST_REMOVE' undeclared (first
use in this function)
app_addon_sql_mysql.c:162: error: (Each undeclared identifier is
reported only once
app_addon_sql_mysql.c:162: error: for each function it appears in.)
gmake: *** [app_addon_sql_mysql.o] Error 1

What version of mysql are you using ?? Mine is 4.1.10a.


On Wed, 2005-04-06 at 10:10, Andrew A. Kochetkoff wrote:
> Kiel R Stirling wrote:
> > On Wed, 2005-04-06 at 09:42, Chris St Denis wrote:
> > 
> >>IMO, there should be a port option added for this.
> >>
> >>At least some of the add-ons are already there I think though because mysql
> >>is an add-on but is set as a requirement in the Makefile
> >>
> > 
> > Yeah noticed that to... I'm trying to get cdr_mysql going however, it's
> > not installing it. Had a quick poke in the Make file .. can't see
> > options that refer to cdr_mysql or addons.
> > 
> > Oh and my ports tree is current.
> > 
> > 
> >>-----Original Message-----
> >>From: asterisk-bsd-bounces at lists.digium.com
> >>[mailto:asterisk-bsd-bounces at lists.digium.com]On Behalf Of Kiel R
> >>Stirling
> >>Sent: Tuesday, April 05, 2005 3:49 PM
> >>To: Asterisk on BSD discussion
> >>Subject: [Asterisk-bsd] Installing the asterisk-addons on FreeBSD
> >>
> >>
> >>Hi all,
> >>
> >>Just a quite note on installing the asterisk-addons under FreeBSD 5.2.1
> >>RELEASE. Has anyone achieved this?? Is there any docs on how to do it ?
> >>
> >>I have checked out the addon-ons modules from cvs but where should I put
> >>it? It seems to want to include the asterisk source directory. I have
> >>tried updating the Makefile to reflect the location of my asterisk
> >>sources however still cc errors. I don't really want to have to got
> >>throught the code and fix include lines. Is there a patch???
> >>
> >>
> >>-Kiel R Stirling
> >>
> >>_______________________________________________
> >>Asterisk-BSD mailing list
> >>Asterisk-BSD at lists.digium.com
> >>http://lists.digium.com/mailman/listinfo/asterisk-bsd
> >>
> >>_______________________________________________
> >>Asterisk-BSD mailing list
> >>Asterisk-BSD at lists.digium.com
> >>http://lists.digium.com/mailman/listinfo/asterisk-bsd
> > 
> > 
> > _______________________________________________
> > Asterisk-BSD mailing list
> > Asterisk-BSD at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-bsd
> > 
> > 
> Yesterday I'm install asterisk-addons-1.0.7
> cdr_mysql works fine.
> Use my patch:
> 
> asterisk-addons:Makefile.diff
> 
> --- Makefile.orig       Fri Sep 17 23:29:55 2004
> +++ Makefile    Wed Apr  6 10:03:26 2005
> @@ -16,7 +16,7 @@
>   MODS=format_mp3/format_mp3.so
> 
>   CFLAGS+=-fPIC
> -CFLAGS+=-I../asterisk
> +CFLAGS+=-I../asterisk-1.0.6 -I../asterisk-1.0.6/include
>   CFLAGS+=-D_GNU_SOURCE
> 
>   INSTALL=install
> @@ -41,14 +41,14 @@
>   all: depend $(MODS)
> 
>   format_mp3/format_mp3.so:
> -       make -C format_mp3 all
> +       gmake -C format_mp3 all
> 
>   install: all
>          for x in $(MODS); do $(INSTALL) -m 755 $$x $(MODULES_DIR) ; done
> 
>   clean:
>          rm -f *.so *.o .depend
> -       make -C format_mp3 clean
> +       gmake -C format_mp3 clean
> 
>   %.so : %.o
>          $(CC) -shared -Xlinker -x -o $@ $<
> 
> 
> asterisk-addons:app_addon_sql_mysql.diff
> 
> --- app_addon_sql_mysql.c.orig  Fri Sep 17 23:29:55 2004
> +++ app_addon_sql_mysql.c       Wed Apr  6 10:04:08 2005
> @@ -28,7 +28,7 @@
>   #include <stdio.h>
>   #include <unistd.h>
> 
> -#include <mysql/mysql.h>
> +#include <mysql.h>
> 
>   #define EXTRA_LOG 0
> 
> 
> Regards,
> Andrew A. Kochetkoff
> _______________________________________________
> Asterisk-BSD mailing list
> Asterisk-BSD at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-bsd



More information about the Asterisk-BSD mailing list