[asterisk-users] cdr_addon_mysql - additional fields

Marcin J. Kowalczyk marcin.kowalczyk at ccig.pl
Mon Jul 7 14:22:25 CDT 2008


Tilghman Lesher pisze:
> Use the one in trunk.  It already supports arbitrary fields, no source change
> necessary.  Motivate the right person, and it may even get backported to 1.4
> (or backport it yourself).
>   
I've tried to use:

    svn co http://svn.digium.com/svn/asterisk-addons/trunk/ asterisk-addons

    Fetching external item into 'asterisk-addons/menuselect'

    Fetching external item into 'asterisk-addons/menuselect/mxml'
    Checked out external at revision 82.

    Checked out revision 342.
    Checked out revision 645.

and I have problem with compiling

    make[1]: Entering directory `/usr/src/asterisk-addons/cdr'
       [CC] cdr_addon_mysql.c -> cdr_addon_mysql.o
    cdr_addon_mysql.c:94: warning: 'struct ast_cli_args' declared inside
    parameter list
    cdr_addon_mysql.c:94: warning: its scope is only this definition or
    declaration, which is probably not what you want
    cdr_addon_mysql.c: In function 'handle_cli_cdr_mysql_status':
    cdr_addon_mysql.c:97: error: 'CLI_INIT' undeclared (first use in
    this function)
    cdr_addon_mysql.c:97: error: (Each undeclared identifier is reported
    only once
    cdr_addon_mysql.c:97: error: for each function it appears in.)
    cdr_addon_mysql.c:98: error: 'struct ast_cli_entry' has no member
    named 'command'
    cdr_addon_mysql.c:103: error: 'CLI_GENERATE' undeclared (first use
    in this function)
    cdr_addon_mysql.c:107: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:108: error: 'CLI_SHOWUSAGE' undeclared (first use
    in this function)
    cdr_addon_mysql.c:114: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:114: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:116: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:116: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:116: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:118: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:118: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:120: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:121: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:122: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:123: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:125: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:127: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:129: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:131: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:133: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:136: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:138: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:140: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:143: error: 'CLI_SUCCESS' undeclared (first use in
    this function)
    cdr_addon_mysql.c: At top level:
    cdr_addon_mysql.c:147: error: initializer element is not constant
    cdr_addon_mysql.c:147: error: (near initialization for
    'cdr_mysql_status_cli[0].cmda[0]')
    cdr_addon_mysql.c: In function 'mysql_log':
    cdr_addon_mysql.c:182: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:182: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:182: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:182: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:182: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:182: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:182: warning: passing argument 2 of
    'mysql_ssl_set' from incompatible pointer type
    cdr_addon_mysql.c:182: warning: passing argument 3 of
    'mysql_ssl_set' from incompatible pointer type
    cdr_addon_mysql.c:182: warning: passing argument 4 of
    'mysql_ssl_set' from incompatible pointer type
    cdr_addon_mysql.c:184: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:184: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:184: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:184: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:184: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:184: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:184: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:184: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:184: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:184: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:184: warning: passing argument 1 of
    'ast_strlen_zero' from incompatible pointer type
    cdr_addon_mysql.c:184: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:184: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:184: warning: passing argument 2 of
    'mysql_real_connect' from incompatible pointer type
    cdr_addon_mysql.c:184: warning: passing argument 3 of
    'mysql_real_connect' from incompatible pointer type
    cdr_addon_mysql.c:184: warning: passing argument 4 of
    'mysql_real_connect' from incompatible pointer type
    cdr_addon_mysql.c:184: warning: passing argument 5 of
    'mysql_real_connect' from incompatible pointer type
    cdr_addon_mysql.c:184: warning: passing argument 7 of
    'mysql_real_connect' from incompatible pointer type
    cdr_addon_mysql.c:189: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:189: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:219: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:219: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:219: warning: pointer type mismatch in conditional
    expression
    cdr_addon_mysql.c:223: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:223: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:223: warning: pointer type mismatch in conditional
    expression
    cdr_addon_mysql.c:263: error: storage size of 'tm' isn't known
    cdr_addon_mysql.c:265: warning: passing argument 1 of
    'ast_localtime' from incompatible pointer type
    cdr_addon_mysql.c:265: warning: passing argument 2 of
    'ast_localtime' from incompatible pointer type
    cdr_addon_mysql.c: In function 'my_load_config_string':
    cdr_addon_mysql.c:399: warning: assignment makes pointer from
    integer without a cast
    cdr_addon_mysql.c: In function 'my_load_module':
    cdr_addon_mysql.c:434: error: 'CONFIG_FLAG_FILEUNCHANGED' undeclared
    (first use in this function)
    cdr_addon_mysql.c:434: warning: initialization makes integer from
    pointer without a cast
    cdr_addon_mysql.c:442: error: too many arguments to function
    'ast_config_load'
    cdr_addon_mysql.c:446: error: 'CONFIG_STATUS_FILEUNCHANGED'
    undeclared (first use in this function)
    cdr_addon_mysql.c:446: warning: comparison of distinct pointer types
    lacks a cast
    cdr_addon_mysql.c:474: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:474: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:474: warning: passing argument 1 of 'ast_true'
    from incompatible pointer type
    cdr_addon_mysql.c:502: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:502: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:506: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:506: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:507: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:507: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:508: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:508: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:509: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:509: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:525: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:525: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:525: warning: passing argument 1 of
    'ast_strlen_zero' from incompatible pointer type
    cdr_addon_mysql.c:525: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:525: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:525: warning: passing argument 1 of
    'ast_strlen_zero' from incompatible pointer type
    cdr_addon_mysql.c:525: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:525: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:525: warning: passing argument 1 of
    'ast_strlen_zero' from incompatible pointer type
    cdr_addon_mysql.c:526: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:526: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:526: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:526: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:526: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:526: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:526: warning: passing argument 2 of
    'mysql_ssl_set' from incompatible pointer type
    cdr_addon_mysql.c:526: warning: passing argument 3 of
    'mysql_ssl_set' from incompatible pointer type
    cdr_addon_mysql.c:526: warning: passing argument 4 of
    'mysql_ssl_set' from incompatible pointer type
    cdr_addon_mysql.c:528: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:528: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:528: warning: passing argument 1 of
    'ast_strlen_zero' from incompatible pointer type
    cdr_addon_mysql.c:528: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:528: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:528: warning: assignment from incompatible pointer
    type
    cdr_addon_mysql.c:529: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:529: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:529: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:529: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:529: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:529: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:529: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:529: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:529: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:529: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:529: warning: passing argument 1 of
    'ast_strlen_zero' from incompatible pointer type
    cdr_addon_mysql.c:529: warning: passing argument 2 of
    'mysql_real_connect' from incompatible pointer type
    cdr_addon_mysql.c:529: warning: passing argument 3 of
    'mysql_real_connect' from incompatible pointer type
    cdr_addon_mysql.c:529: warning: passing argument 4 of
    'mysql_real_connect' from incompatible pointer type
    cdr_addon_mysql.c:529: warning: passing argument 5 of
    'mysql_real_connect' from incompatible pointer type
    cdr_addon_mysql.c:530: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:530: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:530: error: dereferencing pointer to incomplete type
    cdr_addon_mysql.c:530: error: request for member 'str' in something
    not a structure or union
    cdr_addon_mysql.c:544: error: void value not ignored as it ought to be
    make[1]: *** [cdr_addon_mysql.o] Error 1
    make[1]: Leaving directory `/usr/src/asterisk-addons/cdr'
    make: *** [cdr] Error 2
    asterisk-IBM:/usr/src/asterisk-addons#

Do you have idea what could be wrong?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080707/0e565e34/attachment.htm 


More information about the asterisk-users mailing list