[Home]

Summary:ASTERISK-26465: Unable to install asterisk 1.8 on ubuntu 16.04 tls
Reporter:Joseph Mina (Joey150)Labels:
Date Opened:2016-10-13 07:57:58Date Closed:2016-10-17 07:55:44
Priority:MajorRegression?
Status:Closed/CompleteComponents:
Versions:1.8.32.3 Frequency of
Occurrence
Related
Issues:
Environment:Linux 16.04 tlsAttachments:
Description: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
Comments:By: Asterisk Team (asteriskteam) 2016-10-13 07:57:59.725-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Joshua C. Colp (jcolp) 2016-10-13 08:00:17.431-0500

Per the Asterisk versions page [1], the maintenance (bug fix) support for the Asterisk branch you are using has ended. For continued maintenance support please move to a supported branch of Asterisk. After testing with a supported branch, if you find this problem has not been resolved, please open a new issue against the latest version of that Asterisk branch.

Thanks!

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Versions



By: Asterisk Team (asteriskteam) 2016-10-13 08:06:41.708-0500

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

By: Joshua C. Colp (jcolp) 2016-10-13 08:09:45.585-0500

That version of Asterisk 1.8 is no longer supported here, if you have any problems with it then you will not receive help. This includes the problem with building.