cdr_mysql.c: In function ‘mysql_log’: cdr_mysql.c:234:1: warning: passing argument 1 of ‘ast_cdr_getvar’ from incompatible pointer type [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘const char *’ but argument is of type ‘struct ast_cdr *’ cdr_mysql.c:234:1: warning: passing argument 3 of ‘ast_cdr_getvar’ from incompatible pointer type [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘char *’ but argument is of type ‘char **’ cdr_mysql.c:234:1: warning: passing argument 4 of ‘ast_cdr_getvar’ makes integer from pointer without a cast [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘size_t’ but argument is of type ‘char *’ cdr_mysql.c:234:1: error: too many arguments to function ‘ast_cdr_getvar’ In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: declared here cdr_mysql.c:257:6: warning: passing argument 1 of ‘ast_cdr_setvar’ from incompatible pointer type [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:386:5: note: expected ‘const char *’ but argument is of type ‘struct ast_cdr *’ cdr_mysql.c:257:6: error: too many arguments to function ‘ast_cdr_setvar’ In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:386:5: note: declared here cdr_mysql.c:283:5: warning: passing argument 1 of ‘ast_cdr_getvar’ from incompatible pointer type [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘const char *’ but argument is of type ‘struct ast_cdr *’ cdr_mysql.c:283:5: warning: passing argument 3 of ‘ast_cdr_getvar’ from incompatible pointer type [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘char *’ but argument is of type ‘char **’ cdr_mysql.c:283:5: warning: passing argument 4 of ‘ast_cdr_getvar’ makes integer from pointer without a cast [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘size_t’ but argument is of type ‘char *’ cdr_mysql.c:283:5: error: too many arguments to function ‘ast_cdr_getvar’ In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: declared here cdr_mysql.c:285:5: warning: passing argument 1 of ‘ast_cdr_getvar’ from incompatible pointer type [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘const char *’ but argument is of type ‘struct ast_cdr *’ cdr_mysql.c:285:5: warning: passing argument 3 of ‘ast_cdr_getvar’ from incompatible pointer type [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘char *’ but argument is of type ‘char **’ cdr_mysql.c:285:5: warning: passing argument 4 of ‘ast_cdr_getvar’ makes integer from pointer without a cast [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘size_t’ but argument is of type ‘char *’ cdr_mysql.c:285:5: error: too many arguments to function ‘ast_cdr_getvar’ In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: declared here make[1]: *** [cdr_mysql.o] Error 1 make: *** [addons] Error 2 CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" LDFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/usr/src/asterisk/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/usr/src/asterisk/menuselect' [CC] cdr_mysql.c -> cdr_mysql.o cdr_mysql.c: In function ‘mysql_log’: cdr_mysql.c:234:1: warning: passing argument 1 of ‘ast_cdr_getvar’ from incompatible pointer type [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘const char *’ but argument is of type ‘struct ast_cdr *’ cdr_mysql.c:234:1: warning: passing argument 3 of ‘ast_cdr_getvar’ from incompatible pointer type [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘char *’ but argument is of type ‘char **’ cdr_mysql.c:234:1: warning: passing argument 4 of ‘ast_cdr_getvar’ makes integer from pointer without a cast [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘size_t’ but argument is of type ‘char *’ cdr_mysql.c:234:1: error: too many arguments to function ‘ast_cdr_getvar’ In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: declared here cdr_mysql.c:257:6: warning: passing argument 1 of ‘ast_cdr_setvar’ from incompatible pointer type [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:386:5: note: expected ‘const char *’ but argument is of type ‘struct ast_cdr *’ cdr_mysql.c:257:6: error: too many arguments to function ‘ast_cdr_setvar’ In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:386:5: note: declared here cdr_mysql.c:283:5: warning: passing argument 1 of ‘ast_cdr_getvar’ from incompatible pointer type [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘const char *’ but argument is of type ‘struct ast_cdr *’ cdr_mysql.c:283:5: warning: passing argument 3 of ‘ast_cdr_getvar’ from incompatible pointer type [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘char *’ but argument is of type ‘char **’ cdr_mysql.c:283:5: warning: passing argument 4 of ‘ast_cdr_getvar’ makes integer from pointer without a cast [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘size_t’ but argument is of type ‘char *’ cdr_mysql.c:283:5: error: too many arguments to function ‘ast_cdr_getvar’ In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: declared here cdr_mysql.c:285:5: warning: passing argument 1 of ‘ast_cdr_getvar’ from incompatible pointer type [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘const char *’ but argument is of type ‘struct ast_cdr *’ cdr_mysql.c:285:5: warning: passing argument 3 of ‘ast_cdr_getvar’ from incompatible pointer type [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘char *’ but argument is of type ‘char **’ cdr_mysql.c:285:5: warning: passing argument 4 of ‘ast_cdr_getvar’ makes integer from pointer without a cast [enabled by default] In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: expected ‘size_t’ but argument is of type ‘char *’ cdr_mysql.c:285:5: error: too many arguments to function ‘ast_cdr_getvar’ In file included from /usr/src/asterisk/include/asterisk/channel.h:152:0, from cdr_mysql.c:52: /usr/src/asterisk/include/asterisk/cdr.h:373:5: note: declared here make[1]: *** [cdr_mysql.o] Error 1