[Asterisk-bsd] cdr_mysql.c error on FreeBSD 5.2.1

Vitaly Apolonsky asterisk-bsd@lists.digium.com
Mon, 19 Jul 2004 22:55:38 +0300


asterisk# uname -a
FreeBSD asterisk 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #0: Sun Jun  6 22:09:46 GMT 2004     root@:/usr/src/sys/i386/compile/asterisk  i386


cdr_addon_mysql.c 1.5 Fri Jul  9 16:24:28 2004


asterisk# gmake
./mkdep -fPIC -I/usr/local/include -D_GNU_SOURCE   -I/usr/local/include/mysql  `ls *.c`
cc -fPIC -I/usr/local/include -D_GNU_SOURCE   -I/usr/local/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:107: error: `mysql_lock' undeclared (first use in this function)
cdr_addon_mysql.c:107: error: (Each undeclared identifier is reported only once
cdr_addon_mysql.c:107: error: for each function it appears in.)
cdr_addon_mysql.c:111: warning: passing arg 1 of `localtime_r' from incompatible pointer type
cdr_addon_mysql.c: In function `usecount':
cdr_addon_mysql.c:417: error: `mysql_lock' undeclared (first use in this function)
gmake: *** [cdr_addon_mysql.o] Error 1
  
asterisk#

Can anyone help ?

-- 
Best regards,
 Vitaly Apolonsky            mailto:apollo@nameserver.net.ua