[App_rpt-users] Can't compile latest svn

Buddy Brannan buddy at brannan.name
Sat Dec 17 21:28:56 UTC 2011


Hi,

I'm not sure what has changed (or what I should change), but for some reason, the latest asterisk from svn won't compile. This started a couple weeks ago, and I accidentally *really* broke things. Fortunately I had an old source tree and have a now working 0.281.

Even grabbing a fresh download, rather than updating what's already there, nets the same exiting of the make. Here's what happens right before things quit compiling:

CC] chan_voter.c -> chan_voter.o
chan_voter.c: In function ‘voter_write’:
chan_voter.c:769: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c: In function ‘ast_frcat’:
chan_voter.c:805: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:806: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:811: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c: In function ‘voter_mix_and_send’:
chan_voter.c:834: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:904: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:916: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:917: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:937: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:972: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:994: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:1015: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:1060: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c: In function ‘voter_xmit’:
chan_voter.c:1116: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:1147: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:1167: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:1198: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:1208: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:1245: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:1255: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c: In function ‘voter_request’:
chan_voter.c:1349: error: ‘DSP_FEATURE_DIGIT_DETECT’ undeclared (first use in this function)
chan_voter.c:1349: error: (Each undeclared identifier is reported only once
chan_voter.c:1349: error: for each function it appears in.)
chan_voter.c:1350: warning: implicit declaration of function ‘ast_dsp_set_digitmode’
chan_voter.c:1459: error: too many arguments to function ‘ast_config_load’
chan_voter.c: In function ‘res2cli’:
chan_voter.c:1767: error: ‘CLI_SUCCESS’ undeclared (first use in this function)
chan_voter.c:1769: error: ‘CLI_SHOWUSAGE’ undeclared (first use in this function)
chan_voter.c:1771: error: ‘CLI_FAILURE’ undeclared (first use in this function)
chan_voter.c: At top level:
chan_voter.c:1776: warning: ‘struct ast_cli_args’ declared inside parameter list
chan_voter.c:1776: warning: its scope is only this definition or declaration, which is probably not what you want
chan_voter.c: In function ‘handle_cli_debug’:
chan_voter.c:1779: error: ‘CLI_INIT’ undeclared (first use in this function)
chan_voter.c:1780: error: ‘struct ast_cli_entry’ has no member named ‘command’
chan_voter.c:1783: error: ‘CLI_GENERATE’ undeclared (first use in this function)
chan_voter.c:1786: error: dereferencing pointer to incomplete type
chan_voter.c:1786: error: dereferencing pointer to incomplete type
chan_voter.c:1786: error: dereferencing pointer to incomplete type
chan_voter.c: At top level:
chan_voter.c:1790: warning: ‘struct ast_cli_args’ declared inside parameter list
chan_voter.c: In function ‘handle_cli_test’:
chan_voter.c:1793: error: ‘CLI_INIT’ undeclared (first use in this function)
chan_voter.c:1794: error: ‘struct ast_cli_entry’ has no member named ‘command’
chan_voter.c:1797: error: ‘CLI_GENERATE’ undeclared (first use in this function)
chan_voter.c:1800: error: dereferencing pointer to incomplete type
chan_voter.c:1800: error: dereferencing pointer to incomplete type
chan_voter.c:1800: error: dereferencing pointer to incomplete type
chan_voter.c: At top level:
chan_voter.c:1804: warning: ‘struct ast_cli_args’ declared inside parameter list
chan_voter.c: In function ‘handle_cli_record’:
chan_voter.c:1807: error: ‘CLI_INIT’ undeclared (first use in this function)
chan_voter.c:1808: error: ‘struct ast_cli_entry’ has no member named ‘command’
chan_voter.c:1811: error: ‘CLI_GENERATE’ undeclared (first use in this function)
chan_voter.c:1814: error: dereferencing pointer to incomplete type
chan_voter.c:1814: error: dereferencing pointer to incomplete type
chan_voter.c:1814: error: dereferencing pointer to incomplete type
chan_voter.c: At top level:
chan_voter.c:1818: warning: ‘struct ast_cli_args’ declared inside parameter list
chan_voter.c: In function ‘handle_cli_tone’:
chan_voter.c:1821: error: ‘CLI_INIT’ undeclared (first use in this function)
chan_voter.c:1822: error: ‘struct ast_cli_entry’ has no member named ‘command’
chan_voter.c:1825: error: ‘CLI_GENERATE’ undeclared (first use in this function)
chan_voter.c:1828: error: dereferencing pointer to incomplete type
chan_voter.c:1828: error: dereferencing pointer to incomplete type
chan_voter.c:1828: error: dereferencing pointer to incomplete type
chan_voter.c: At top level:
chan_voter.c:1832: warning: ‘struct ast_cli_args’ declared inside parameter list
chan_voter.c: In function ‘handle_cli_reload’:
chan_voter.c:1835: error: ‘CLI_INIT’ undeclared (first use in this function)
chan_voter.c:1836: error: ‘struct ast_cli_entry’ has no member named ‘command’
chan_voter.c:1839: error: ‘CLI_GENERATE’ undeclared (first use in this function)
chan_voter.c:1842: error: dereferencing pointer to incomplete type
chan_voter.c:1842: error: dereferencing pointer to incomplete type
chan_voter.c:1842: error: dereferencing pointer to incomplete type
chan_voter.c: At top level:
chan_voter.c:1846: warning: ‘struct ast_cli_args’ declared inside parameter list
chan_voter.c: In function ‘handle_cli_display’:
chan_voter.c:1849: error: ‘CLI_INIT’ undeclared (first use in this function)
chan_voter.c:1850: error: ‘struct ast_cli_entry’ has no member named ‘command’
chan_voter.c:1853: error: ‘CLI_GENERATE’ undeclared (first use in this function)
chan_voter.c:1856: error: dereferencing pointer to incomplete type
chan_voter.c:1856: error: dereferencing pointer to incomplete type
chan_voter.c:1856: error: dereferencing pointer to incomplete type
chan_voter.c: At top level:
chan_voter.c:1860: warning: implicit declaration of function ‘AST_CLI_DEFINE’
chan_voter.c:1860: warning: missing braces around initializer
chan_voter.c:1860: warning: (near initialization for ‘voter_cli[0]’)
chan_voter.c:1860: error: initializer element is not constant
chan_voter.c:1860: error: (near initialization for ‘voter_cli[0].cmda[0]’)
chan_voter.c:1861: error: initializer element is not constant
chan_voter.c:1861: error: (near initialization for ‘voter_cli[0].cmda[1]’)
chan_voter.c:1862: error: initializer element is not constant
chan_voter.c:1862: error: (near initialization for ‘voter_cli[0].cmda[2]’)
chan_voter.c:1863: error: initializer element is not constant
chan_voter.c:1863: error: (near initialization for ‘voter_cli[0].cmda[3]’)
chan_voter.c:1864: error: initializer element is not constant
chan_voter.c:1864: error: (near initialization for ‘voter_cli[0].cmda[4]’)
chan_voter.c:1865: error: initializer element is not constant
chan_voter.c:1865: error: (near initialization for ‘voter_cli[0].cmda[5]’)
chan_voter.c: In function ‘voter_reader’:
chan_voter.c:2061: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:2061: warning: statement with no effect
chan_voter.c:2235: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:2235: warning: statement with no effect
chan_voter.c:2272: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:2272: warning: statement with no effect
chan_voter.c:2289: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:2289: warning: pointer type mismatch in conditional expression
chan_voter.c:2295: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:2295: warning: pointer type mismatch in conditional expression
chan_voter.c:2298: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:2298: warning: pointer type mismatch in conditional expression
chan_voter.c:2507: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:2507: warning: statement with no effect
chan_voter.c:2577: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:2577: warning: statement with no effect
chan_voter.c:2635: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:2635: warning: statement with no effect
chan_voter.c:2656: error: request for member ‘ptr’ in something not a structure or union
chan_voter.c:2656: warning: statement with no effect
chan_voter.c: In function ‘reload’:
chan_voter.c:2824: error: too many arguments to function ‘ast_config_load’
chan_voter.c: In function ‘load_module’:
chan_voter.c:3183: error: too many arguments to function ‘ast_config_load’
make[1]: *** [chan_voter.o] Error 1
make[1]: Leaving directory `/usr/src/trunk/asterisk/channels'
make: *** [channels] Error 2


Any idea what went wrong/what I'm missing?

I'm still using the Acid distro from last year sometime, all updated with yum. 
--
Buddy Brannan, KB5ELV - Erie, PA
Phone: (814) 860-3194 or 888-75-BUDDY






More information about the App_rpt-users mailing list