[asterisk-bugs] [JIRA] (ASTERISK-26465) Unable to install asterisk 1.8 on ubuntu 16.04 tls

Asterisk Team (JIRA) noreply at issues.asterisk.org
Thu Oct 13 08:08:01 CDT 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-26465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=232701#comment-232701 ] 

Asterisk Team commented on ASTERISK-26465:
------------------------------------------

This issue has been reopened as a result of your commenting on it as the reporter. It will be triaged once again as applicable.

> Unable to install asterisk 1.8 on ubuntu 16.04 tls
> --------------------------------------------------
>
>                 Key: ASTERISK-26465
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26465
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 1.8.32.3
>         Environment: Linux 16.04 tls
>            Reporter: Joseph Mina
>
> while running the 'Make' command I got 
> /home/joey/asterisk-1.8.32.3/Makefile.rules:109: recipe for target 'chan_bridge.o' failed
> make[1]: *** [chan_bridge.o] Error 1
> Makefile:351: recipe for target 'channels' failed
> make: *** [channels] Error 2
> the whole output 
> CC="cc" CXX="" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect CONFIGURE_SILENT="--silent" makeopts
> make[1]: Entering directory '/home/joey/asterisk-1.8.32.3/menuselect'
> make[1]: 'makeopts' is up to date.
> make[1]: Leaving directory '/home/joey/asterisk-1.8.32.3/menuselect'
> Generating input for menuselect ...
> menuselect/menuselect --check-deps menuselect.makeopts
> menuselect/menuselect --check-deps menuselect.makeopts  
> Generating embedded module rules ...
>    [CC] chan_bridge.c -> chan_bridge.o
> chan_bridge.c:54:102: warning: ‘struct ast_format_cap’ declared inside parameter list
>  truct ast_channel *bridge_request(const char *type, struct ast_format_cap *cap, const struct ast_channel
>                                                                                               ^
> chan_bridge.c:54:102: warning: its scope is only this definition or declaration, which is probably not what you want
> chan_bridge.c:64:15: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
>   .requester = bridge_request,
>                ^
> chan_bridge.c:64:15: note: (near initialization for ‘bridge_tech.requester’)
> chan_bridge.c:65:10: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
>   .call = bridge_call,
>           ^
> chan_bridge.c:65:10: note: (near initialization for ‘bridge_tech.call’)
> chan_bridge.c: In function ‘bridge_bridgedchannel’:
> chan_bridge.c:82:25: warning: implicit declaration of function ‘ast_channel_tech_pvt’ [-Wimplicit-function-declaration]
>   struct bridge_pvt *p = ast_channel_tech_pvt(chan);
>                          ^
> chan_bridge.c:82:25: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
> chan_bridge.c: In function ‘bridge_write’:
> chan_bridge.c:95:25: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
>   struct bridge_pvt *p = ast_channel_tech_pvt(ast);
>                          ^
> chan_bridge.c: In function ‘bridge_call’:
> chan_bridge.c:121:25: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
>   struct bridge_pvt *p = ast_channel_tech_pvt(ast);
>                          ^
> chan_bridge.c:124:7: warning: implicit declaration of function ‘ast_channel_internal_bridge’ [-Wimplicit-function-declaration]
>   if (!ast_channel_internal_bridge(ast)) {
>        ^
> chan_bridge.c:129:27: warning: passing argument 1 of ‘ast_bridge_impart’ makes pointer from integer without a cast [-Wint-conversion]
>   return ast_bridge_impart(ast_channel_internal_bridge(p->input), p->output, NULL, NULL, 0)
>                            ^
> In file included from chan_bridge.c:51:0:
> /home/joey/asterisk-1.8.32.3/include/asterisk/bridging.h:288:5: note: expected ‘struct ast_bridge *’ but argument is of type ‘int’
>  int ast_bridge_impart(struct ast_bridge *bridge, struct ast_channel *chan, struct ast_channel *swap, str
>      ^
> chan_bridge.c:129:9: error: too many arguments to function ‘ast_bridge_impart’
>   return ast_bridge_impart(ast_channel_internal_bridge(p->input), p->output, NULL, NULL, 0)
>          ^
> In file included from chan_bridge.c:51:0:
> /home/joey/asterisk-1.8.32.3/include/asterisk/bridging.h:288:5: note: declared here
>  int ast_bridge_impart(struct ast_bridge *bridge, struct ast_channel *chan, struct ast_channel *swap, str
>      ^
> chan_bridge.c: In function ‘bridge_hangup’:
> chan_bridge.c:136:25: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
>   struct bridge_pvt *p = ast_channel_tech_pvt(ast);
>                          ^
> chan_bridge.c:150:2: warning: implicit declaration of function ‘ast_channel_tech_pvt_set’ [-Wimplicit-function-declaration]
>   ast_channel_tech_pvt_set(ast, NULL);
>   ^
> chan_bridge.c: At top level:
> chan_bridge.c:157:102: warning: ‘struct ast_format_cap’ declared inside parameter list
>  truct ast_channel *bridge_request(const char *type, struct ast_format_cap *cap, const struct ast_channel
>                                                                                               ^
> chan_bridge.c:157:28: error: conflicting types for ‘bridge_request’
>  static struct ast_channel *bridge_request(const char *type, struct ast_format_cap *cap, const struct ast
>                             ^
> chan_bridge.c:54:28: note: previous declaration of ‘bridge_request’ was here
>  static struct ast_channel *bridge_request(const char *type, struct ast_format_cap *cap, const struct ast
>                             ^
> chan_bridge.c: In function ‘bridge_request’:
> chan_bridge.c:160:20: error: storage size of ‘slin’ isn’t known
>   struct ast_format slin;
>                     ^
> In file included from chan_bridge.c:40:0:
> chan_bridge.c:168:84: warning: implicit declaration of function ‘ast_channel_linkedid’ [-Wimplicit-function-declaration]
>   if (!(p->input = ast_channel_alloc(1, AST_STATE_UP, 0, 0, "", "", "", requestor ? ast_channel_linkedid(
>                                                                                     ^
> /home/joey/asterisk-1.8.32.3/include/asterisk/channel.h:1155:85: note: in definition of macro ‘ast_channel_alloc’
>   __ast_channel_alloc(needqueue, state, cid_num, cid_name, acctcode, exten, context, linkedid, amaflag, \
>                                                                                      ^
> chan_bridge.c:168:116: warning: pointer/integer type mismatch in conditional expression
>  channel_alloc(1, AST_STATE_UP, 0, 0, "", "", "", requestor ? ast_channel_linkedid(requestor) : NULL, 0, 
>                                                                                               ^
> /home/joey/asterisk-1.8.32.3/include/asterisk/channel.h:1155:85: note: in definition of macro ‘ast_channel_alloc’
>   __ast_channel_alloc(needqueue, state, cid_num, cid_name, acctcode, exten, context, linkedid, amaflag, \
>                                                                                      ^
> chan_bridge.c:172:117: warning: pointer/integer type mismatch in conditional expression
>  channel_alloc(1, AST_STATE_UP, 0, 0, "", "", "", requestor ? ast_channel_linkedid(requestor) : NULL, 0, 
>                                                                                               ^
> /home/joey/asterisk-1.8.32.3/include/asterisk/channel.h:1155:85: note: in definition of macro ‘ast_channel_alloc’
>   __ast_channel_alloc(needqueue, state, cid_num, cid_name, acctcode, exten, context, linkedid, amaflag, \
>                                                                                      ^
> chan_bridge.c:179:2: warning: implicit declaration of function ‘ast_channel_tech_set’ [-Wimplicit-function-declaration]
>   ast_channel_tech_set(p->input, &bridge_tech);
>   ^
> chan_bridge.c:186:2: warning: implicit declaration of function ‘ast_format_set’ [-Wimplicit-function-declaration]
>   ast_format_set(&slin, AST_FORMAT_SLINEAR, 0);
>   ^
> chan_bridge.c:188:2: warning: implicit declaration of function ‘ast_format_cap_add’ [-Wimplicit-function-declaration]
>   ast_format_cap_add(ast_channel_nativeformats(p->input), &slin);
>   ^
> chan_bridge.c:188:21: warning: implicit declaration of function ‘ast_channel_nativeformats’ [-Wimplicit-function-declaration]
>   ast_format_cap_add(ast_channel_nativeformats(p->input), &slin);
>                      ^
> chan_bridge.c:190:2: warning: implicit declaration of function ‘ast_format_copy’ [-Wimplicit-function-declaration]
>   ast_format_copy(ast_channel_readformat(p->input), &slin);
>   ^
> chan_bridge.c:190:18: warning: implicit declaration of function ‘ast_channel_readformat’ [-Wimplicit-function-declaration]
>   ast_format_copy(ast_channel_readformat(p->input), &slin);
>                   ^
> chan_bridge.c:192:18: warning: implicit declaration of function ‘ast_channel_rawreadformat’ [-Wimplicit-function-declaration]
>   ast_format_copy(ast_channel_rawreadformat(p->input), &slin);
>                   ^
> chan_bridge.c:194:18: warning: implicit declaration of function ‘ast_channel_writeformat’ [-Wimplicit-function-declaration]
>   ast_format_copy(ast_channel_writeformat(p->input), &slin);
>                   ^
> chan_bridge.c:196:18: warning: implicit declaration of function ‘ast_channel_rawwriteformat’ [-Wimplicit-function-declaration]
>   ast_format_copy(ast_channel_rawwriteformat(p->input), &slin);
>                   ^
> chan_bridge.c:160:20: warning: unused variable ‘slin’ [-Wunused-variable]
>   struct ast_format slin;
>                     ^
> chan_bridge.c: In function ‘load_module’:
> chan_bridge.c:210:35: warning: implicit declaration of function ‘ast_format_cap_alloc’ [-Wimplicit-function-declaration]
>   if (!(bridge_tech.capabilities = ast_format_cap_alloc())) {
>                                    ^
> chan_bridge.c:214:2: warning: implicit declaration of function ‘ast_format_cap_add_all’ [-Wimplicit-function-declaration]
>   ast_format_cap_add_all(bridge_tech.capabilities);
>   ^
> chan_bridge.c: In function ‘unload_module’:
> chan_bridge.c:227:29: warning: implicit declaration of function ‘ast_format_cap_destroy’ [-Wimplicit-function-declaration]
>   bridge_tech.capabilities = ast_format_cap_destroy(bridge_tech.capabilities);
>                              ^
> chan_bridge.c: At top level:
> chan_bridge.c:54:28: warning: ‘bridge_request’ used but never defined
>  static struct ast_channel *bridge_request(const char *type, struct ast_format_cap *cap, const struct ast
>                             ^
> chan_bridge.c:157:28: warning: ‘bridge_request’ defined but not used [-Wunused-function]
>  static struct ast_channel *bridge_request(const char *type, struct ast_format_cap *cap, const struct ast
>                             ^
> /home/joey/asterisk-1.8.32.3/Makefile.rules:109: recipe for target 'chan_bridge.o' failed
> make[1]: *** [chan_bridge.o] Error 1
> Makefile:351: recipe for target 'channels' failed
> make: *** [channels] Error 2
> I deselected it from the menu select but the same problem goes for 
> "chan_iax2", "chan_sip" and "asterisk" in "main" folder
> would you please help me solve this issue 
> thanks in advance



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list