[Asterisk-Users] Can't compile cdr_mysql

Jerk Face jerkface2099 at hotmail.com
Thu Aug 14 07:50:16 MST 2003


>You should instead update the appropriate Makefile to change:
>-I/usr/local/mysql/include
>to
>-I/usr/src/usr/include/mysql
>or you could just do:
>cp -a /usr/src/usr/include/mysql /usr/include/mysql

I did that, and I still get the same 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

I can only assume that the problem is at line 40 of cdr_mysql.c, but since 
I'm not a C programmer, I don't know what the error is.

Any ideas?

_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail




More information about the asterisk-users mailing list