[Asterisk-bsd] Problems compiling asterisk-addons

maillist at lightspeed.ca maillist at lightspeed.ca
Tue Sep 27 19:21:25 CDT 2005


I'm using FreeBSD 5.4 and Asterisk 1.0.6. I installed mysql and asterisk
from ports, and then I tried to install asterisk-addons for mysql CDR's as
per
http://voip-info.org/tiki-index.php?page=Asterisk+addon+asterisk-addons.

When I try to make install after ensuring that DBD::mysql is installed, I
get the message at the bottom of this post.

I've tried to make the "No Such file or directory" messages go away
through various methods like moving the asterisk-addons directory to
/usr/ports/net/asterisk/work/asterisk-1.0.6, creating a symlink to the
directory with file.h et al, and mucking with the Makefile.

My guess is that there's a different method for installing this on FreeBSD.

$ gmake
./mkdep -fPIC -I../asterisk -D_GNU_SOURCE   -I/usr/local/include/mysql 
`ls *.c`
app_addon_sql_mysql.c:25:29: asterisk/file.h: No such file or directory
app_addon_sql_mysql.c:26:31: asterisk/logger.h: No such file or directory
app_addon_sql_mysql.c:27:32: asterisk/channel.h: No such file or directory
app_addon_sql_mysql.c:28:28: asterisk/pbx.h: No such file or directory
app_addon_sql_mysql.c:29:31: asterisk/module.h: No such file or directory
app_addon_sql_mysql.c:30:36: asterisk/linkedlists.h: No such file or
directory
app_addon_sql_mysql.c:31:33: asterisk/chanvars.h: No such file or directory
app_addon_sql_mysql.c:32:29: asterisk/lock.h: No such file or directory
app_saycountpl.c:10:27: asterisk/file.h: No such file or directory
app_saycountpl.c:11:29: asterisk/logger.h: No such file or directory
app_saycountpl.c:12:30: asterisk/channel.h: No such file or directory
app_saycountpl.c:13:26: asterisk/pbx.h: No such file or directory
app_saycountpl.c:14:29: asterisk/module.h: No such file or directory
app_saycountpl.c:15:27: asterisk/lock.h: No such file or directory
cdr_addon_mysql.c:23:29: asterisk/config.h: No such file or directory
cdr_addon_mysql.c:24:30: asterisk/options.h: No such file or directory
cdr_addon_mysql.c:25:30: asterisk/channel.h: No such file or directory
cdr_addon_mysql.c:26:26: asterisk/cdr.h: No such file or directory
cdr_addon_mysql.c:27:29: asterisk/module.h: No such file or directory
cdr_addon_mysql.c:28:29: asterisk/logger.h: No such file or directory
cdr_addon_mysql.c:29:26: asterisk/cli.h: No such file or directory
res_config_mysql.c:39:30: asterisk/channel.h: No such file or directory
res_config_mysql.c:40:29: asterisk/logger.h: No such file or directory
res_config_mysql.c:41:29: asterisk/config.h: No such file or directory
res_config_mysql.c:42:29: asterisk/module.h: No such file or directory
res_config_mysql.c:43:27: asterisk/lock.h: No such file or directory
res_config_mysql.c:44:30: asterisk/options.h: No such file or directory
res_config_mysql.c:45:26: asterisk/cli.h: No such file or directory
res_config_mysql.c:46:28: asterisk/utils.h: No such file or directory
gmake -C format_mp3 all
gmake[1]: Entering directory `/usr/local/src/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/local/src/asterisk-addons/format_mp3'
cc -fPIC -I../asterisk -D_GNU_SOURCE   -I/usr/local/include/mysql    -c -o
app_saycountpl.o app_saycountpl.c
app_saycountpl.c:10:27: asterisk/file.h: No such file or directory
app_saycountpl.c:11:29: asterisk/logger.h: No such file or directory
app_saycountpl.c:12:30: asterisk/channel.h: No such file or directory
app_saycountpl.c:13:26: asterisk/pbx.h: No such file or directory
app_saycountpl.c:14:29: asterisk/module.h: No such file or directory
app_saycountpl.c:15:27: asterisk/lock.h: No such file or directory
app_saycountpl.c:33: warning: data definition has no type or storage class
app_saycountpl.c:35: warning: data definition has no type or storage class
app_saycountpl.c:37: warning: "struct ast_channel" declared inside
parameter list
app_saycountpl.c:37: warning: its scope is only this definition or
declaration, which is probably not what you want
app_saycountpl.c: In function `saywords':
app_saycountpl.c:47: error: dereferencing pointer to incomplete type
app_saycountpl.c:52: error: dereferencing pointer to incomplete type
app_saycountpl.c:56: error: dereferencing pointer to incomplete type
app_saycountpl.c: At top level:
app_saycountpl.c:67: warning: "struct ast_channel" declared inside
parameter list
app_saycountpl.c: In function `sayword_exec':
app_saycountpl.c:80: error: `LOG_WARNING' undeclared (first use in this
function)
app_saycountpl.c:80: error: (Each undeclared identifier is reported only once
app_saycountpl.c:80: error: for each function it appears in.)
app_saycountpl.c:86: warning: assignment makes pointer from integer
without a cast
app_saycountpl.c: In function `unload_module':
app_saycountpl.c:119: error: `STANDARD_HANGUP_LOCALUSERS' undeclared
(first use in this function)
app_saycountpl.c: In function `key':
app_saycountpl.c:142: error: `ASTERISK_GPL_KEY' undeclared (first use in
this function)
gmake: *** [app_saycountpl.o] Error 1





More information about the Asterisk-BSD mailing list