Folks I am getting the following error as of today after updating both asterisk and asterisk-addons. These are both under /usr/src. Any ideas? dora-debian:/usr/local/src/asterisk-addons# make ./mkdep -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/include/mysql `ls *.c` 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 dora-debian:/usr/local/src/asterisk-addons#
Luckcuck Nick-LCKN001
2004-Jun-17 07:22 UTC
[Asterisk-Users] asterisk-addons compilation error
Hi, I posted the same problem yesterday/day b4? Add "CFLAGS+=-I../asterisk/include" to the top of the Makefile -- [ 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 Santiago > Sent: 17 June 2004 15:07 > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] asterisk-addons compilation error > > > Folks > > > > I am getting the following error as of today after updating both > asterisk and asterisk-addons. These are both under /usr/src. > > > > Any ideas? > > > > dora-debian:/usr/local/src/asterisk-addons# make > > ./mkdep -fPIC -I../asterisk -D_GNU_SOURCE > -I/usr/include/mysql `ls *.c` > > 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 > dora-debian:/usr/local/src/asterisk-addons# > > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@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 >
Tony Mountifield
2004-Jun-17 08:18 UTC
[Asterisk-Users] Re: asterisk-addons compilation error
Luckcuck Nick-LCKN001 <LCKN001@motorola.com> wrote:> I posted the same problem yesterday/day b4? > > Add "CFLAGS+=-I../asterisk/include" to the top of the MakefileAlternatively (and IMHO, better), make sure you do "make install" in asterisk BEFORE trying to do "make" in asterisk-addons. Cheers Tony -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org
> > I am getting the following error as of today after updating both > asterisk and asterisk-addons. These are both under /usr/src....>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: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>Hi I'm having the same problem. I've tried to solve the problem using the all the tips&tricks from the mailingslists - But with no luck :-( System: RH9, mysql 4.0.20 NRB