Manuel Wenger
2004-Jun-21 07:40 UTC
R: [Asterisk-Users] Re: cdr_addon_mysql compiling error
Thanks for the tip, but adding the CFLAGS directive doesn't work either, same error message. I'll try to have a look in -dev, but if anyone comes up with a solution, a reply would be appreciated. -Manuel -----Messaggio originale----- Da: Luckcuck Nick-LCKN001 [mailto:LCKN001@motorola.com] Inviato: lunedì, 21. giugno 2004 13:52 A: asterisk-users@lists.digium.com Oggetto: RE: [Asterisk-Users] Re: cdr_addon_mysql compiling error Hi, Another helpless person like me, I had the same problem a few days ago and a very helpful person suggested putting "CFLAGS+=-I../asterisk/include" in the Makefile, which worked fine for me. Maybe this is a problem with asterisk CVS ??? Don't really know but it might be worth looking at for some of you people in -dev, as a few people have asked this in the last few days. -- [ Nick Luckcuck | lckn001@motorola.com ] [ Junior Software Developer | Motorola ]> -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of > Manuel Wenger > Sent: 21 June 2004 12:43 > To: asterisk-users@lists.digium.com > Subject: R: [Asterisk-Users] Re: cdr_addon_mysql compiling error > > > >> I'm trying to compile cdr_addon_mysql but keep getting this error. > >> Again, searching the Wiki and the mailing list archive > didn't bring up > >> anything useful. Any help? Yes, I'm using MySQL 4.0. Maybe > I have to > >> switch back to 3.23? > >> > >> > >> # make > >> 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:50: warning: parameter names (without types) in > >> function declaration > >> cdr_addon_mysql.c:50: warning: data definition has no type > or storage class > >> cdr_addon_mysql.c: In function `mysql_log': > >> cdr_addon_mysql.c:108: error: `mysql_lock' undeclared > (first use in this function) > >> cdr_addon_mysql.c:108: error: (Each undeclared identifier > is reported only once > >> cdr_addon_mysql.c:108: error: for each function it appears in.) > >> cdr_addon_mysql.c: In function `usecount': > >> cdr_addon_mysql.c:420: error: `mysql_lock' undeclared > (first use in this function) > >> make: *** [cdr_addon_mysql.o] Error 1 > > > >Two things: > > > >1. Make sure you have the mysql-devel package installed, or > equivalent. > > It is installed: > # rpm -qa|grep MySQL > MySQL-client-4.0.20-0 > MySQL-devel-4.0.20-0 > MySQL-shared-compat-4.0.18-0 > MySQL-server-4.0.20-0 > > Do you know if MySQL 4 is supposed to work at all, or do I > need to downgrade to 3.23? > > > >2. Make sure you have done a "make install" in "asterisk", > before trying > > to do a "make" in "asterisk-addons". > > Done that... > > Any ideas please? > > -Manuel___________________________________________________ Ticinocom SA - Via Stazione 5 - 6600 Muralto Tel 0844 007070 - Fax 0844 007071 http://www.ticinocom.com