[Asterisk-Users] Error with app_addon_sql_mysql.c

Sahil Gupta sgupta at voicevalley.com.au
Sat Jul 2 06:47:15 MST 2005


Hi People!
Having interesting issues with app_addon_sql_mysql.c:

root at voipgw1:/usr/src/asterisk-addons# make
cc -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/local/mysql/include 
-I/usr/include/mysql     -c -o app_addon_sql_mysql.o app_addon_sql_mysql.c
app_addon_sql_mysql.c:164:64: macro "AST_LIST_REMOVE" requires 4 
arguments, but only 3 given
app_addon_sql_mysql.c: In function `del_identifier':
app_addon_sql_mysql.c:164: error: `AST_LIST_REMOVE' undeclared (first use 
in this function)
app_addon_sql_mysql.c:164: error: (Each undeclared identifier is reported 
only once
app_addon_sql_mysql.c:164: error: for each function it appears in.)
make: *** [app_addon_sql_mysql.o] Error 1

This is a installation of Slackware 10.1 with Mysql 4.1.12 (source).

Any ideas?

Regards,


Sahil Gupta
VoiceValley

On Fri, 1 Jul 2005, Brian West wrote:

> You could have just done "ln -s asterisk-1.0.9 asterisk" and it would have 
> fixed that.  It should by default do -I../asterisk
>
> /b
> ---
> Anakin: “You’re either with me, or you’re my enemy.”
> Obi-Wan: “Only a Sith could be an absolutist.”
>
> On Jun 30, 2005, at 1:13 AM, Chris Mason (Lists) wrote:
>
>> Marcel van Kaam, Fonetica wrote:
>> 
>> 
>>> I had the same problem with installing addons. I checked out in the file
>>> cdr_addons_mysql.c what the location of the asterisk.h must be and changed
>>> the cdr_addons_mysql.c to the location of the asterisk.h file.
>>> 
>>> After this it worked. Also to be sure do: locate asterisk.h to check or 
>>> you
>>> have the file on your system.
>>> 
>>> Marcel
>>> 
>> Yes, that worked. For the record, it had to be
>> 
>> #include "../asterisk-1.0.9/asterisk.h"
>> 
>> -- 
>> Chris Mason
>> NetConcepts
>> (264) 497-5670 Fax: (264) 497-8463
>> Int:  (305) 704-7249 Fax: (815)301-9759 Cell: 264-235-5670
>> Yahoo IM: netconcepts_anguilla at yahoo.com
>> _______________________________________________
>> Asterisk-Users mailing list
>> Asterisk-Users at lists.digium.com
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>> To UNSUBSCRIBE or update options visit:
>>   http://lists.digium.com/mailman/listinfo/asterisk-users
>> 
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>  http://lists.digium.com/mailman/listinfo/asterisk-users
>


More information about the asterisk-users mailing list