I am trying to compile current cvs asterisk-addons for mysql cdr but I get the following error. Iam running mysql 4.0.20 and cvs v1 stable version of asterisk. cc -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/local/mysql/include -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) make: *** [cdr_addon_mysql.o] Error 1 Any idea? -- Manuel Marin Garcia TRANSTELCO S.A. DE C.V. Campos Eliseos 9050 B4 – Cd. Juárez, Chih. 32452 - México Oficina: +52 656 692 11 09 – Fax: +52 656 692 1112 - Celular: 915 727 6141 http://www.transtelco.com.mx
In article <1087978496.3947.3.camel@localhost.localdomain>, Manuel Marin Garcia <mmg@transtelco.com.mx> wrote:> I am trying to compile current cvs asterisk-addons for mysql cdr but I > get the following error. Iam running mysql 4.0.20 and cvs v1 stable > version of asterisk.That is your problem. asterisk-addons is not in sync with the "v1 stable" branch of asterisk. 1. Update your asterisk from the CVS HEAD 2. "make" AND "make install" in the asterisk tree 3. You can then successfully "make" in asterisk-addons. This has been answered on this list at least twice in the last week! If you are new to the list, you should always look through the last few weeks' messages to see if your question has already been answered recently. See http://lists.digium.com/pipermail/asterisk-users/ Cheers Tony -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org