[Asterisk-Users] bristuff patches and realtime mysql

Tzafrir Cohen tzafrir at cohens.org.il
Tue Jul 12 13:25:32 MST 2005


On Tue, Jul 12, 2005 at 05:07:20PM +0200, Christoph wrote:
> On Tue, 2005-07-12 at 09:42 -0500, Matthew Boehm wrote:
> > How do you expect me to possibly fix my module if you don't supply any 
> > compile errors? I don't use BRI so you will need to provide me alot of 
> > info. Which bri package did you install? Perhaps I can install that in a 
> > tmp dir and see what results I get.
> > 
> > -Matthew
> > 
> 
> Hi Matthew,
> 
> I didn't want to spam the mailinglist with all those error messages
> generated by the compiler. I used the latest bri package from
> junghanns.net:
> http://www.junghanns.net/asterisk/downloads/bristuff-0.2.0-RC8h.tar.gz

Actually, the latest is RC8j , for 1.0.9 . Not really different.

> The package then downloads libpri-1.0.8, zaptel-1.0.8, cwain and
> asterisk-1.0.8 and does a lot of patching to the sources.
> This is then the error message that I get when trying to compile the
> asterisk-addons:
> 
> pound:/usr/src/asterisk-addons# make all
> cc -fPIC -I../asterisk -D_GNU_SOURCE  -I/usr/include/mysql     -c -o
> app_saycountpl.o app_saycountpl.c
> cc -shared -Xlinker -x -o app_saycountpl.so app_saycountpl.o
> cc -fPIC -I../asterisk -D_GNU_SOURCE  -I/usr/include/mysql     -c -o
> cdr_addon_mysql.o cdr_addon_mysql.c
> cdr_addon_mysql.c: In function `my_load_module':
> cdr_addon_mysql.c:268: warning: assignment makes pointer from integer
> without a cast
> cc -shared -Xlinker -x -o cdr_addon_mysql.so cdr_addon_mysql.o
> -lmysqlclient -lz
> 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:64: macro "AST_LIST_REMOVE" requires 4
> arguments, but only 3 given

And why is that? What version of asterisk-addons do you use?

tzafrir at boole:asterisk-addons-1.0.9$ grep AST_LIST_REMOVE *.c
app_addon_sql_mysql.c:                             AST_LIST_REMOVE(headp,i,ast_MYSQL_id,entries);
tzafrir at boole:asterisk-addons-1.0.9$ grep -w AST_LIST_REMOVE /usr/include/asterisk/*.h
/usr/include/asterisk/linkedlists.h:#define AST_LIST_REMOVE(head, elm, type, field) do {                        \

So you seem to use a version that uses a different interface. You don't
try to build the version of HEAD on 1.0, do you?

> 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

I'm not sure exactly who is the "you" you refer to. It builds fine here
with 1.0.9 .

> 
> It would be really great if you could get it to work as I think it's an
> excellent addition for Asterisk.

real-time won't work magically on 1.0 :-(

-- 
Tzafrir Cohen         | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il |                           | a Mutt's  
tzafrir at cohens.org.il |                           |  best
ICQ# 16849755         |                           | friend



More information about the asterisk-users mailing list