[Asterisk-Users] Can't compile cdr_mysql

Jerk Face jerkface2099 at hotmail.com
Thu Aug 14 06:35:15 MST 2003


I am running Mandrake 9.1, and MySQL 3.23.57-1; and yes, I would think that 
/usr/src/usr/include/mysql is not the right place for errmsg.h.
What can I do to get around this?
I changed the cdr_mysql.c file:
#include <mysql/errmsg.h>
Changed to
#include </usr/src/usr/include/mysql/errmsg.h>

But I get the following error:

[root cdr]# make cdr_mysql
cc -fPIC -I/usr/local/mysql/include -I/usr/include/mysql     -c -o 
cdr_mysql.o cdr_mysql.c
cdr_mysql.c:40: parse error before "mysql_lock"
cdr_mysql.c:40: warning: excess elements in scalar initializer
cdr_mysql.c:40: warning: (near initialization for `mysql_lock')
cdr_mysql.c:40: warning: excess elements in scalar initializer
cdr_mysql.c:40: warning: (near initialization for `mysql_lock')
cdr_mysql.c:40: warning: excess elements in scalar initializer
cdr_mysql.c:40: warning: (near initialization for `mysql_lock')
cdr_mysql.c:40: warning: braces around scalar initializer
cdr_mysql.c:40: warning: (near initialization for `mysql_lock')
cdr_mysql.c:40: warning: excess elements in scalar initializer
cdr_mysql.c:40: warning: (near initialization for `mysql_lock')
cdr_mysql.c:40: warning: excess elements in scalar initializer
cdr_mysql.c:40: warning: (near initialization for `mysql_lock')
cdr_mysql.c:40: warning: data definition has no type or storage class
make: *** [cdr_mysql.o] Error 1

Any help is always appreciated.

On Wednesday 13 August 2003 03:24 pm, Jerk Face wrote:
>/usr/src/usr/include/mysql/errmsg.h
>The version of MySQL that I'm running is 3.23.57-1

What distribution are you running?  That's a pretty braindead place
to put the mysql header files.  You'd think someplace like
/usr/include, /usr/local/include, or even /usr/local/mysql/include,
but /usr/src/usr/include shouldn't be the correct location on any
Linux system.

-Tilghman

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




More information about the asterisk-users mailing list