[Asterisk-bsd] Problems compiling asterisk-addons

Chris St Denis chris at aebc.com
Mon Oct 3 19:51:52 CDT 2005


Patch the port to support it then submit the patch to the maintainer (I have
done so with some other improvements -- I didn't get a reply and I don't see
them committed, but maybe something will happen to them someday).


I'd also really love to see a port of AMP since it has many dependencies and
therefore is a real pain to install manually. I really don't have time to
make one myself unfortunately. 

-----Original Message-----
From: asterisk-bsd-bounces at lists.digium.com
[mailto:asterisk-bsd-bounces at lists.digium.com] On Behalf Of
maillist at lightspeed.ca
Sent: Monday, October 03, 2005 5:09 PM
To: Asterisk on BSD discussion
Subject: Re: [Asterisk-bsd] Problems compiling asterisk-addons

> why did you not install from ports. it has all the patches needed. just
> cvsup
> your ports tree and cd /usr/ports/net/asterisk and make install.

To quote my original post:

> I'm using FreeBSD 5.4 and Asterisk 1.0.6. I installed mysql and asterisk
> from ports

Asterisk itself works just dandy. Unfortunately we have a desperate need
for mysql configuration among other things. The asterisk-addons package
provides that and it's not one of the patches that the asterisk port
provides. It also happens to be required by AMP, which I really want to
get working on this box.

To reply to Dinesh Nair, I've tried this once already, and my make output
changes to what I've got at the end of this message.

The line "app_addon_sql_mysql.c:164:36: macro "AST_LIST_REMOVE" requires 4
arguments, but only 3 given" I find especially unsettling, as that's a
major programming flaw, not something easy to fix like "your path is
wrong."



$ gmake
./mkdep -fPIC -I/usr/local/include/ -D_GNU_SOURCE  
-I/usr/local/include/mysql  `ls *.c`
app_addon_sql_mysql.c:164:36: macro "AST_LIST_REMOVE" requires 4
arguments, but only 3 given
gmake -C format_mp3 all
gmake[1]: Entering directory
`/usr/ports/net/asterisk/work/asterisk/include/asterisk-addons/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
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 dct64_i386.o dct64_i386.c
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 decode_ntom.o decode_ntom.c
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 layer3.o layer3.c
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 tabinit.o tabinit.c
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 interface.o interface.c
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 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  -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE 
-D_THREAD_SAFE  -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
gmake[1]: Leaving directory
`/usr/ports/net/asterisk/work/asterisk/include/asterisk-addons/format_mp3'
cc -fPIC -I/usr/local/include/ -D_GNU_SOURCE   -I/usr/local/include/mysql 
  -c -o app_saycountpl.o app_saycountpl.c
cc -shared -Xlinker -x -o app_saycountpl.so app_saycountpl.o
cc -fPIC -I/usr/local/include/ -D_GNU_SOURCE   -I/usr/local/include/mysql 
  -c -o cdr_addon_mysql.o cdr_addon_mysql.c
cdr_addon_mysql.c: In function `mysql_log':
cdr_addon_mysql.c:128: warning: passing arg 1 of `localtime_r' from
incompatible pointer type
cdr_addon_mysql.c: In function `my_load_module':
cdr_addon_mysql.c:293: 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/local/lib/mysql
cc -fPIC -I/usr/local/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:164:36: 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:164: error: `AST_LIST_REMOVE' undeclared (first use
in this function)
app_addon_sql_mysql.c:164: error: (Each undeclared identifier is reported
only once
app_addon_sql_mysql.c:164: error: for each function it appears in.)
gmake: *** [app_addon_sql_mysql.o] Error 1
rm app_saycountpl.o

_______________________________________________
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