Luckcuck Nick-LCKN001
2004-Jun-15 05:59 UTC
[Asterisk-Users] Cdr_addon_mysql.c compile problem.
Good Afternoon Everyone, I am having a problem with compiling the CVS version of *-addons downloaded today. I am also having problems compiling an older version as well but im ignoring that one for now. I believe I have all the correct libraries, and I have done extensive searches everywhere I just wondered if I was missing something really silly, or if this is a problem other people have experienced before? Any comments appreciated. ------------------------------------------------------------ $> head -25 Makefile | tail -12 MODS CFLAGS+=-fPIC CFLAGS+=-I../asterisk CFLAGS+=-I/usr/include CFLAGS+=-DMYSQL_LOGUNIQUEID CFLAGS+=-D_GNU_SOURCE INSTALL=install INSTALL_PREFIXASTLIBDIR=$(INSTALL_PREFIX)/usr/lib/asterisk MODULES_DIR=$(ASTLIBDIR)/modules $> make cc -fPIC -I../asterisk -I/usr/include -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: `mysql_lock' undeclared (first use in this function) cdr_addon_mysql.c:108: (Each undeclared identifier is reported only once cdr_addon_mysql.c:108: for each function it appears in.) cdr_addon_mysql.c: In function `usecount': cdr_addon_mysql.c:420: `mysql_lock' undeclared (first use in this function) $> rpm -qa | grep mysql mysql-3.23.54a-11 mysql-devel-3.23.54a-11 mysql-server-3.23.54a-11 -- Nick
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 15 June 2004 14:59, Luckcuck Nick-LCKN001 wrote:> CFLAGS+=-fPIC > CFLAGS+=-I../asterisk > CFLAGS+=-I/usr/includeDon't know if it helps, but try adding: CFLAGS+=-I../asterisk/include - -- Regards, Tais M. Hansen ComX Networks Tel: +45-70257474 Fax: +45-70257374 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAzwZo32si/nlrQ5gRAj5ZAJ4qNdMtBmGpGZOQafvRzIUf2K+L9QCfUt2a mAQPbz+0O9p9HGTj3N+jG1k=AamJ -----END PGP SIGNATURE-----
Luckcuck Nick-LCKN001
2004-Jun-15 08:13 UTC
[Asterisk-Users] Cdr_addon_mysql.c compile problem.
Tais, Genius.. I honestly thought I had tried every combination of includes :P Cheers. -- Nick -----Original Message----- From: asterisk-users-admin@lists.digium.com [mailto:asterisk-users-admin@lists.digium.com] On Behalf Of Tais M. Hansen Sent: 15 June 2004 15:24 To: asterisk-users@lists.digium.com Subject: Re: [Asterisk-Users] Cdr_addon_mysql.c compile problem. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 15 June 2004 14:59, Luckcuck Nick-LCKN001 wrote:> CFLAGS+=-fPIC > CFLAGS+=-I../asterisk > CFLAGS+=-I/usr/includeDon't know if it helps, but try adding: CFLAGS+=-I../asterisk/include - -- Regards, Tais M. Hansen ComX Networks Tel: +45-70257474 Fax: +45-70257374 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQFAzwZo32si/nlrQ5gRAj5ZAJ4qNdMtBmGpGZOQafvRzIUf2K+L9QCfUt2a mAQPbz+0O9p9HGTj3N+jG1k=AamJ -----END PGP SIGNATURE----- _______________________________________________ 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