I have patched chan_mobile into ast-addons 1.4.3 and have a patch file for it. Nothing blows up, but I haven't had a chance to fully test this yet.
Sean Bright wrote: > The version of chan_mobile in trunk is only compatible with the trunk > version of Asterisk, not the 1.4 branch. Whoever maintains the > patches on chan-mobile.org <http://chan-mobile.org> will not to update > in order for you to compile the trunk version of chan_mobile against > Asterisk 1.4. > > Sean > > On 10/30/07, *Alejandro Vargas* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > I'm trying to compile chan_mobile for asterisk 1.4 > I've installed 1.4 from SVN and downloaded addons from SVN also. I > make ./configure, make menuconfig, select only chan_mobile, and make. > Then I obtain the following errors. (I've also tryed applying the > patches I found at http://www.chan-mobile.org/?page_id=5 but with no > better results. > > > make[1]: Entering directory `/usr/src/asterisk-addons' > [CC] chan_mobile.c -> chan_mobile.o > chan_mobile.c:178: warning: 'struct ast_cli_args' declared inside > parameter list > chan_mobile.c:178: warning: its scope is only this definition or > declaration, which is probably not what you want > chan_mobile.c:179: warning: 'struct ast_cli_args' declared inside > parameter list > chan_mobile.c:180: warning: 'struct ast_cli_args' declared inside > parameter list > chan_mobile.c:183: error: initializer element is not constant > chan_mobile.c:183: error: (near initialization for > 'mbl_cli[0].cmda[0]') > chan_mobile.c:184: error: initializer element is not constant > chan_mobile.c:184: error: (near initialization for > 'mbl_cli[0].cmda[1]') > chan_mobile.c:185: error: initializer element is not constant > chan_mobile.c:185: error: (near initialization for > 'mbl_cli[0].cmda[2]') > chan_mobile.c:248: warning: 'struct ast_cli_args' declared inside > parameter list > chan_mobile.c:249: error: conflicting types for > 'handle_cli_mobile_show_devices' > chan_mobile.c:178: error: previous declaration of > 'handle_cli_mobile_show_devices' was here > chan_mobile.c: In function 'handle_cli_mobile_show_devices': > chan_mobile.c:257: error: 'CLI_INIT' undeclared (first use in this > function) > chan_mobile.c:257: error: (Each undeclared identifier is reported > only once > chan_mobile.c:257: error: for each function it appears in.) > chan_mobile.c:258: error: 'struct ast_cli_entry' has no member > named 'command' > chan_mobile.c:263: error: 'CLI_GENERATE' undeclared (first use in > this function) > chan_mobile.c:267: error: dereferencing pointer to incomplete type > chan_mobile.c:267: error: request for member 'argc' in something not a > structure or union > chan_mobile.c:267: warning: comparison between pointer and integer > chan_mobile.c:268: error: 'CLI_SHOWUSAGE' undeclared (first use in > this function) > chan_mobile.c:268: warning: return from incompatible pointer type > chan_mobile.c:270: error: dereferencing pointer to incomplete type > chan_mobile.c:270: error: request for member 'fd' in something not a > structure or union > chan_mobile.c:270: warning: passing argument 1 of 'ast_cli' makes > integer from pointer without a cast > chan_mobile.c:274: error: dereferencing pointer to incomplete type > chan_mobile.c:274: error: request for member 'fd' in something not a > structure or union > chan_mobile.c:276: warning: passing argument 1 of 'ast_cli' makes > integer from pointer without a cast > chan_mobile.c:281: error: 'CLI_SUCCESS' undeclared (first use in > this function) > chan_mobile.c:281: warning: return from incompatible pointer type > chan_mobile.c: At top level: > chan_mobile.c:284: warning: 'struct ast_cli_args' declared inside > parameter list > chan_mobile.c:285: error: conflicting types for > 'handle_cli_mobile_search' > chan_mobile.c:179: error: previous declaration of > 'handle_cli_mobile_search' was here > chan_mobile.c: In function 'handle_cli_mobile_search': > chan_mobile.c:298: error: 'CLI_INIT' undeclared (first use in this > function) > chan_mobile.c:299: error: 'struct ast_cli_entry' has no member > named 'command' > chan_mobile.c:304: error: 'CLI_GENERATE' undeclared (first use in > this function) > chan_mobile.c:308: error: dereferencing pointer to incomplete type > chan_mobile.c:308: error: request for member 'argc' in something > not a > structure or union > chan_mobile.c:308: warning: comparison between pointer and integer > chan_mobile.c:309: error: 'CLI_SHOWUSAGE' undeclared (first use in > this function) > chan_mobile.c:309: warning: return from incompatible pointer type > chan_mobile.c:318: error: dereferencing pointer to incomplete type > chan_mobile.c:318: error: request for member 'fd' in something not a > structure or union > chan_mobile.c:318: warning: passing argument 1 of 'ast_cli' makes > integer from pointer without a cast > chan_mobile.c:319: error: 'CLI_SUCCESS' undeclared (first use in > this function) > chan_mobile.c:319: warning: return from incompatible pointer type > chan_mobile.c:329: error: dereferencing pointer to incomplete type > chan_mobile.c:329: error: request for member 'fd' in something not a > structure or union > chan_mobile.c:329: warning: passing argument 1 of 'ast_cli' makes > integer from pointer without a cast > chan_mobile.c:340: error: dereferencing pointer to incomplete type > chan_mobile.c:340: error: request for member 'fd' in something not a > structure or union > chan_mobile.c:341: warning: passing argument 1 of 'ast_cli' makes > integer from pointer without a cast > chan_mobile.c:344: error: dereferencing pointer to incomplete type > chan_mobile.c:344: error: request for member 'fd' in something not a > structure or union > chan_mobile.c:344: warning: passing argument 1 of 'ast_cli' makes > integer from pointer without a cast > chan_mobile.c:349: warning: return from incompatible pointer type > chan_mobile.c: At top level: > chan_mobile.c:352: warning: 'struct ast_cli_args' declared inside > parameter list > chan_mobile.c:353: error: conflicting types for > 'handle_cli_mobile_rfcomm' > chan_mobile.c:180: error: previous declaration of > 'handle_cli_mobile_rfcomm' was here > chan_mobile.c: In function 'handle_cli_mobile_rfcomm': > chan_mobile.c:358: error: 'CLI_INIT' undeclared (first use in this > function) > chan_mobile.c:359: error: 'struct ast_cli_entry' has no member > named 'command' > chan_mobile.c:365: error: 'CLI_GENERATE' undeclared (first use in > this function) > chan_mobile.c:369: error: dereferencing pointer to incomplete type > chan_mobile.c:369: error: request for member 'argc' in something not a > structure or union > chan_mobile.c:369: warning: comparison between pointer and integer > chan_mobile.c:370: error: 'CLI_SHOWUSAGE' undeclared (first use in > this function) > chan_mobile.c:370: warning: return from incompatible pointer type > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something > not a > structure or union > chan_mobile.c:373: error: incompatible type for argument 1 of 'strlen' > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something > not a > structure or union > chan_mobile.c:373: error: invalid operands to binary + > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something > not a > structure or union > chan_mobile.c:373: error: cannot convert to a pointer type > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something > not a > structure or union > chan_mobile.c:373: error: incompatible type for argument 2 of > '__builtin_strcmp' > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something > not a > structure or union > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: invalid operands to binary + > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: cannot convert to a pointer type > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: incompatible type for argument 2 of > '__builtin_strcmp' > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: cannot convert to a pointer type > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: invalid operands to binary + > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: cannot convert to a pointer type > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: incompatible type for argument 1 of 'strlen' > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: incompatible type for argument 2 of > '__builtin_strcmp' > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: cannot convert to a pointer type > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: cannot convert to a pointer type > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: cannot convert to a pointer type > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: cannot convert to a pointer type > chan_mobile.c:373: error: dereferencing pointer to incomplete type > chan_mobile.c:373: error: request for member 'argv' in something not a > structure or union > chan_mobile.c:373: error: incompatible type for argument 2 of > '__builtin_strcmp' > chan_mobile.c:378: error: dereferencing pointer to incomplete type > chan_mobile.c:378: error: request for member 'fd' in something not a > structure or union > chan_mobile.c:378: error: dereferencing pointer to incomplete type > chan_mobile.c:378: error: request for member 'argv' in something > not a > structure or union > chan_mobile.c:378: warning: passing argument 1 of 'ast_cli' makes > integer from pointer without a cast > chan_mobile.c:379: error: 'CLI_SUCCESS' undeclared (first use in > this function) > chan_mobile.c:379: warning: return from incompatible pointer type > chan_mobile.c:382: error: dereferencing pointer to incomplete type > chan_mobile.c:382: error: request for member 'argv' in something > not a > structure or union > chan_mobile.c:385: warning: return from incompatible pointer type > chan_mobile.c: In function 'mbl_load_config': > chan_mobile.c:1878: error: too many arguments to function > 'ast_config_load' > make[1]: *** [chan_mobile.o] Error 1 > make[1]: Leaving directory `/usr/src/asterisk-addons' > make: *** [all] Error 2 > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > > ------------------------------------------------------------------------ > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
