Posted: Thu Aug 16, 2007 7:44 pm Post subject: [Asterisk-bsd] Unable to compile Asterisk-addons on Openbsd
On 2007/08/16 19:34, Attilla de Groot wrote:
Quote:
>>
>> 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
Now I am sure you have bad asterisk includes. Here is the correct
prototype from 1.4.10.1:
/usr/local/include/asterisk/config.h:struct ast_config
*ast_config_internal_load(const char *configfile,
struct ast_config *cfg, int withcomments);
Perhaps you are building from source and did not remove the old
version completely?
Quote:
- 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:
I really can't solve this one myself, since I don't know what the
error means. Maybe someone else has an idea right now ?
Missing #define in this case. Fix the includes and this should follow,
I have got it building ok on -current (just working on packaging and
wondering which license applies to various parts, since it's none too
clear: scattered copyright notices, little in the way of actual
license text).
_______________________________________________
--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