[Asterisk-Users] Cdr_addon_mysql.c compile problem.

Luckcuck Nick-LCKN001 LCKN001 at motorola.com
Tue Jun 15 05:59:13 MST 2004


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_PREFIX=
ASTLIBDIR=$(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



More information about the asterisk-users mailing list