Stefan Gofferje
2008-Aug-08 09:48 UTC
[asterisk-users] asterisk-addons-1.6.0-beta4 compile error
Hi, addons 1.6 don't compile here. Any ideas? Terve, Stefan root at k-tanco:/usr/src/asterisk-addons-1.6.0-beta4> make CC="gcc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts make[1]: Entering directory `/usr/src/asterisk-addons-1.6.0-beta4/menuselect' make[1]: Leaving directory `/usr/src/asterisk-addons-1.6.0-beta4/menuselect' make[1]: Entering directory `/usr/src/asterisk-addons-1.6.0-beta4/menuselect' make[1]: `makeopts' is up to date. make[1]: Leaving directory `/usr/src/asterisk-addons-1.6.0-beta4/menuselect' CC="gcc" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" make[1]: Entering directory `/usr/src/asterisk-addons-1.6.0-beta4/menuselect' make[2]: Entering directory `/usr/src/asterisk-addons-1.6.0-beta4/menuselect' gcc -g -c -D_GNU_SOURCE -Wall -c -o menuselect.o menuselect.c gcc -g -c -D_GNU_SOURCE -Wall -c -o strcompat.o strcompat.c gcc -g -c -D_GNU_SOURCE -Wall -c -o menuselect_curses.o menuselect_curses.c make[3]: Entering directory `/usr/src/asterisk-addons-1.6.0-beta4/menuselect/mxml' gcc -O -Wall -c mxml-attr.c gcc -O -Wall -c mxml-entity.c gcc -O -Wall -c mxml-file.c gcc -O -Wall -c mxml-index.c gcc -O -Wall -c mxml-node.c gcc -O -Wall -c mxml-search.c gcc -O -Wall -c mxml-set.c gcc -O -Wall -c mxml-private.c gcc -O -Wall -c mxml-string.c /bin/rm -f libmxml.a /usr/bin/ar crvs libmxml.a mxml-attr.o mxml-entity.o mxml-file.o mxml-index.o mxml-node.o mxml-search.o mxml-set.o mxml-private.o mxml-string.o a - mxml-attr.o a - mxml-entity.o a - mxml-file.o a - mxml-index.o a - mxml-node.o a - mxml-search.o a - mxml-set.o a - mxml-private.o a - mxml-string.o ranlib libmxml.a make[3]: Leaving directory `/usr/src/asterisk-addons-1.6.0-beta4/menuselect/mxml' gcc -o menuselect menuselect.o strcompat.o menuselect_curses.o mxml/libmxml.a -lncurses make[2]: Leaving directory `/usr/src/asterisk-addons-1.6.0-beta4/menuselect' make[1]: Leaving directory `/usr/src/asterisk-addons-1.6.0-beta4/menuselect' Generating input for menuselect ... menuselect/menuselect --check-deps menuselect.makeopts Generating embedded module rules ... make[1]: Entering directory `/usr/src/asterisk-addons-1.6.0-beta4' make[1]: Leaving directory `/usr/src/asterisk-addons-1.6.0-beta4' make[1]: Entering directory `/usr/src/asterisk-addons-1.6.0-beta4' make[1]: Leaving directory `/usr/src/asterisk-addons-1.6.0-beta4' make[1]: Entering directory `/usr/src/asterisk-addons-1.6.0-beta4' make[1]: Leaving directory `/usr/src/asterisk-addons-1.6.0-beta4' make[1]: Entering directory `/usr/src/asterisk-addons-1.6.0-beta4/channels' [CC] chan_mobile.c -> chan_mobile.o chan_mobile.c:177: warning: ?struct ast_cli_args? declared inside parameter list chan_mobile.c:177: warning: its scope is only this definition or declaration, which is probably not what you want chan_mobile.c:178: warning: ?struct ast_cli_args? declared inside parameter list chan_mobile.c:179: warning: ?struct ast_cli_args? declared inside parameter list chan_mobile.c:182: error: initializer element is not constant chan_mobile.c:182: error: (near initialization for ?mbl_cli[0].cmda[0]?) chan_mobile.c:183: error: initializer element is not constant chan_mobile.c:183: error: (near initialization for ?mbl_cli[0].cmda[1]?) chan_mobile.c:184: error: initializer element is not constant chan_mobile.c:184: error: (near initialization for ?mbl_cli[0].cmda[2]?) chan_mobile.c:247: warning: ?struct ast_cli_args? declared inside parameter list chan_mobile.c:248: error: conflicting types for ?handle_cli_mobile_show_devices? chan_mobile.c:177: error: previous declaration of ?handle_cli_mobile_show_devices? was here chan_mobile.c: In function ?handle_cli_mobile_show_devices?: chan_mobile.c:256: error: ?CLI_INIT? undeclared (first use in this function) chan_mobile.c:256: error: (Each undeclared identifier is reported only once chan_mobile.c:256: error: for each function it appears in.) chan_mobile.c:257: error: ?struct ast_cli_entry? has no member named ?command? chan_mobile.c:262: error: ?CLI_GENERATE? undeclared (first use in this function) chan_mobile.c:266: error: dereferencing pointer to incomplete type chan_mobile.c:266: error: request for member ?argc? in something not a structure or union chan_mobile.c:266: warning: comparison between pointer and integer chan_mobile.c:267: error: ?CLI_SHOWUSAGE? undeclared (first use in this function) chan_mobile.c:267: warning: return from incompatible pointer type chan_mobile.c:269: error: dereferencing pointer to incomplete type chan_mobile.c:269: error: request for member ?fd? in something not a structure or union chan_mobile.c:269: warning: passing argument 1 of ?ast_cli? makes integer from pointer without a cast chan_mobile.c:273: error: dereferencing pointer to incomplete type chan_mobile.c:273: error: request for member ?fd? in something not a structure or union chan_mobile.c:275: warning: passing argument 1 of ?ast_cli? makes integer from pointer without a cast chan_mobile.c:280: error: ?CLI_SUCCESS? undeclared (first use in this function) chan_mobile.c:280: warning: return from incompatible pointer type chan_mobile.c: At top level: chan_mobile.c:283: warning: ?struct ast_cli_args? declared inside parameter list chan_mobile.c:284: error: conflicting types for ?handle_cli_mobile_search? chan_mobile.c:178: error: previous declaration of ?handle_cli_mobile_search? was here chan_mobile.c: In function ?handle_cli_mobile_search?: chan_mobile.c:297: error: ?CLI_INIT? undeclared (first use in this function) chan_mobile.c:298: error: ?struct ast_cli_entry? has no member named ?command? chan_mobile.c:303: error: ?CLI_GENERATE? undeclared (first use in this function) chan_mobile.c:307: error: dereferencing pointer to incomplete type chan_mobile.c:307: error: request for member ?argc? in something not a structure or union chan_mobile.c:307: warning: comparison between pointer and integer chan_mobile.c:308: error: ?CLI_SHOWUSAGE? undeclared (first use in this function) chan_mobile.c:308: warning: return from incompatible pointer type chan_mobile.c:317: error: dereferencing pointer to incomplete type chan_mobile.c:317: error: request for member ?fd? in something not a structure or union chan_mobile.c:317: warning: passing argument 1 of ?ast_cli? makes integer from pointer without a cast chan_mobile.c:318: error: ?CLI_SUCCESS? undeclared (first use in this function) chan_mobile.c:318: warning: return from incompatible pointer type chan_mobile.c:328: error: dereferencing pointer to incomplete type chan_mobile.c:328: error: request for member ?fd? in something not a structure or union chan_mobile.c:328: warning: passing argument 1 of ?ast_cli? makes integer from pointer without a cast chan_mobile.c:339: error: dereferencing pointer to incomplete type chan_mobile.c:339: error: request for member ?fd? in something not a structure or union chan_mobile.c:340: warning: passing argument 1 of ?ast_cli? makes integer from pointer without a cast chan_mobile.c:343: error: dereferencing pointer to incomplete type chan_mobile.c:343: error: request for member ?fd? in something not a structure or union chan_mobile.c:343: warning: passing argument 1 of ?ast_cli? makes integer from pointer without a cast chan_mobile.c:348: warning: return from incompatible pointer type chan_mobile.c: At top level: chan_mobile.c:351: warning: ?struct ast_cli_args? declared inside parameter list chan_mobile.c:352: error: conflicting types for ?handle_cli_mobile_rfcomm? chan_mobile.c:179: error: previous declaration of ?handle_cli_mobile_rfcomm? was here chan_mobile.c: In function ?handle_cli_mobile_rfcomm?: chan_mobile.c:357: error: ?CLI_INIT? undeclared (first use in this function) chan_mobile.c:358: error: ?struct ast_cli_entry? has no member named ?command? chan_mobile.c:364: error: ?CLI_GENERATE? undeclared (first use in this function) chan_mobile.c:368: error: dereferencing pointer to incomplete type chan_mobile.c:368: error: request for member ?argc? in something not a structure or union chan_mobile.c:368: warning: comparison between pointer and integer chan_mobile.c:369: error: ?CLI_SHOWUSAGE? undeclared (first use in this function) chan_mobile.c:369: warning: return from incompatible pointer type chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: incompatible type for argument 1 of ?strlen? chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: invalid operands to binary + chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: cannot convert to a pointer type chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: incompatible type for argument 2 of ?__builtin_strcmp? chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: invalid operands to binary + chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: cannot convert to a pointer type chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: incompatible type for argument 2 of ?__builtin_strcmp? chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: cannot convert to a pointer type chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: invalid operands to binary + chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: cannot convert to a pointer type chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: incompatible type for argument 1 of ?strlen? chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: incompatible type for argument 2 of ?__builtin_strcmp? chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: cannot convert to a pointer type chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: cannot convert to a pointer type chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: cannot convert to a pointer type chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: cannot convert to a pointer type chan_mobile.c:372: error: dereferencing pointer to incomplete type chan_mobile.c:372: error: request for member ?argv? in something not a structure or union chan_mobile.c:372: error: incompatible type for argument 2 of ?__builtin_strcmp? chan_mobile.c:377: error: dereferencing pointer to incomplete type chan_mobile.c:377: error: request for member ?fd? in something not a structure or union chan_mobile.c:377: error: dereferencing pointer to incomplete type chan_mobile.c:377: error: request for member ?argv? in something not a structure or union chan_mobile.c:377: warning: passing argument 1 of ?ast_cli? makes integer from pointer without a cast chan_mobile.c:378: error: ?CLI_SUCCESS? undeclared (first use in this function) chan_mobile.c:378: warning: return from incompatible pointer type chan_mobile.c:381: error: dereferencing pointer to incomplete type chan_mobile.c:381: error: request for member ?argv? in something not a structure or union chan_mobile.c:384: warning: return from incompatible pointer type chan_mobile.c: In function ?mbl_load_config?: chan_mobile.c:1885: error: too many arguments to function ?ast_config_load? make[1]: *** [chan_mobile.o] Error 1 make[1]: Leaving directory `/usr/src/asterisk-addons-1.6.0-beta4/channels' make: *** [channels] Error 2 root at k-tanco:/usr/src/asterisk-addons-1.6.0-beta4>
Russell Bryant
2008-Aug-08 12:09 UTC
[asterisk-users] asterisk-addons-1.6.0-beta4 compile error
On Aug 8, 2008, at 4:48 AM, Stefan Gofferje wrote:> Hi, > > addons 1.6 don't compile here. Any ideas?It looks like you're trying to compiled Asterisk-addons 1.6 against Asterisk 1.4. You will need to install Asterisk 1.6 before you can compile and install Asterisk-addons 1.6. -- Russell Bryant Senior Software Engineer Open Source Team Lead Digium, Inc.