Posted: Thu Aug 16, 2007 5:40 pm Post subject: [Asterisk-bsd] Unable to compile Asterisk-addons on Openbsd
On Aug 16, 2007, at 9:33 AM, Attilla de Groot wrote:
Quote:
On Aug 16, 2007, at 12:32 AM, Stuart Henderson wrote:
> My test 1.4.10.1 port for OpenBSD-current (which is now quite close
> to 4.2) produces subpackages for, amongst others, odbc and pgsql
> realtime.
> It's at http://spacehopper.org/openbsd/ (you'll need
> libiksemel.tar.gz
> from there too, unless you use FLAVOR=no_jabber) and should be
> going in
> shortly after the ports tree unlocks after 4.2 is done and dusted.
>
> I haven't really looked at asterisk-addons for a while (I felt that
> being used in ABE, ODBC was probably a better idea for accessing
> mysql)
> so I didn't bother working through and fixing the build but I may
> revisit this sometime.
Well obdc can work to, but I've been working with realtime mysql for
the past year and I didn't have much problems. So I would like to use
it on my openbsd intall also.
>
>>> - But now it won't compile with the following error:
>
> bad/unavailable asterisk includes?
Well too be honest, I'm not really a coder. So I really can't answer
the question myself. But it seems like an error between
app_addon_sql_mysql.c and the mysql libaries. So maybe someone with
some more C experience can answer this question.
Well, I solved one problem and norrowed down another.
- There is an extra argument on line 428 in res_config_mysql.c
Remove the ", 0" and that problem is solved. Since the function only
accepts two arguments. It was just trial and error so that one was
lucky. =)
- The other is still the "error: syntax error before string constant"
error. That occurs on both res_config_mysql.c and cdr_addon_mysql.c.
And the line is in both files the same:
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