[Asterisk-Users] Can't compile cdr_mysql

Martin Pycko martinp at digium.com
Thu Aug 14 08:00:40 MST 2003


Try "cvs update -dA" in asterisk

On Thu, 14 Aug 2003, Jerk Face wrote:

> >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
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list