[Home]

Summary:ASTERISK-03227: making asterisk-addons crashes
Reporter:triplef (triplef)Labels:
Date Opened:2005-01-09 02:41:52.000-0600Date Closed:2005-01-10 00:12:20.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/NewFeature
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:app_addon_sql_mysql.c:164:77: macro "AST_LIST_REMOVE" passed 4 arguments, but takes just 3




cc -shared -Xlinker -x -o cdr_addon_mysql.so cdr_addon_mysql.o -lmysqlclient -lz  -L/usr/lib/mysql  
cc -fPIC -I../asterisk -D_GNU_SOURCE  -I/usr/include/mysql     -c -o app_addon_sql_mysql.o app_addon_sql_mysql.c
app_addon_sql_mysql.c:164:77: macro "AST_LIST_REMOVE" passed 4 arguments, but takes just 3
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.)
gmake: *** [app_addon_sql_mysql.o] Error 1
rm app_saycountpl.o
[root@sm12296 asterisk-addons]#

****** STEPS TO REPRODUCE ******

make asterisk-addons

****** ADDITIONAL INFORMATION ******

latest-head of asterisk and asterisk-addons.. in new directory..
Comments:By: twisted (twisted) 2005-01-09 02:48:16.000-0600

This is not a CRASH bug.

edited on: 01-09-05 02:48

By: Mark Spencer (markster) 2005-01-09 03:02:15.000-0600

Fixed in CVS head.

By: Kevin P. Fleming (kpfleming) 2005-01-09 07:54:56.000-0600

The committed fix is incorrect; it removed the iterator variable instead of the struct type name. I don't believe it will compile this way :-)

By: Mark Spencer (markster) 2005-01-09 18:43:33.000-0600

It did compile, believe it or not.  I even double checked just now before fixing.  Anyway you're right, I put the iterator back.

By: triplef (triplef) 2005-01-09 21:51:40.000-0600

well yes... coz i did that before you i took " i " out of ast_Remove.. and then it compiles and a;l; but core dumps on running *

By: Mark Spencer (markster) 2005-01-09 22:04:49.000-0600

Right, so we put "i" back and took out the "type" argument which was not supposed ot be passed.