Posted: Wed Aug 15, 2007 10:03 pm Post subject: [Asterisk-bsd] Unable to compile Asterisk-addons on Openbsd
update your portsnap
and run portupgrade
then retry
On Wednesday 15 August 2007 02:04:44 pm Attilla De Groot wrote:
Quote:
Hi all,
I'm trying to compile asterisk-addons on Openbsd 4.1 because I need
realtime mysql support. However I have encountered two problems:
- Won't compile, because it couldn't find the mysql libs. Solved
this by specifying CFLAGS=-I/usr/local/include
- But now it won't compile with the following error:
# CFLAGS=-I/usr/local/include gmake
gmake[1]: Entering directory `/usr/src/asterisk-addons-1.4.2/menuselect'
gmake[2]: Entering directory `/usr/src/asterisk-addons-1.4.2/menuselect'
gmake[2]: `menuselect' is up to date.
gmake[2]: Leaving directory `/usr/src/asterisk-addons-1.4.2/menuselect'
gmake[1]: Leaving directory `/usr/src/asterisk-addons-1.4.2/menuselect'
gmake[1]: Entering directory `/usr/src/asterisk-addons-1.4.2'
gmake[2]: Entering directory `/usr/src/asterisk-addons-1.4.2/menuselect'
gmake[3]: Entering directory `/usr/src/asterisk-addons-1.4.2/menuselect'
gmake[3]: `menuselect' is up to date.
gmake[3]: Leaving directory `/usr/src/asterisk-addons-1.4.2/menuselect'
gmake[2]: Leaving directory `/usr/src/asterisk-addons-1.4.2/menuselect'
gcc -g -c -I/usr/local/include -fPIC -fPIC -o app_addon_sql_mysql.o
app_addon_sql_mysql.c
app_addon_sql_mysql.c: In function `MYSQL_exec':
app_addon_sql_mysql.c:394: warning: assignment makes pointer from
integer without a cast
app_addon_sql_mysql.c: At top level:
app_addon_sql_mysql.c:423: warning: static declaration for
`unload_module' follows non-static
app_addon_sql_mysql.c:429: warning: static declaration for
`load_module' follows non-static
app_addon_sql_mysql.c:435: error: syntax error before string constant
gmake[1]: *** [app_addon_sql_mysql.o] Error 1
gmake[1]: Leaving directory `/usr/src/asterisk-addons-1.4.2'
gmake: *** [all] Error 2
Could anyone tell me how I can solve this ?
Best regards,
Attilla
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum