[Asterisk-bsd] Unable to compile Asterisk-addons on Openbsd 4.1

Richard Neese r.neese at gmail.com
Wed Aug 15 16:56:40 CDT 2007


update your portsnap
and run portupgrade
then retry


On Wednesday 15 August 2007 02:04:44 pm Attilla De Groot wrote:
> 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--
>
> Asterisk-BSD mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-bsd





More information about the Asterisk-BSD mailing list