You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
gcc -g -O2 -O0 -g -I. -D_GNU_SOURCE -I/src/asterisk/asterisk-12.5.0/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT channel.o -MF .channel.o.d -MP -o channel.o -c channel.c
In file included from /src/asterisk/asterisk-12.5.0/include/asterisk/utils.h:826:0,
from /src/asterisk/asterisk-12.5.0/include/asterisk/config.h:30,
from /src/asterisk/asterisk-12.5.0/include/asterisk/channel.h:169,
from /src/asterisk/asterisk-12.5.0/include/asterisk/pbx.h:26,
from channel.c:17:
/src/asterisk/asterisk-12.5.0/include/asterisk/strings.h:93:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration]
static int force_inline attribute_pure ast_begins_with(const char str, const char *prefix)
^
/src/asterisk/asterisk-12.5.0/include/asterisk/strings.h:111:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration]
static int force_inline attribute_pure ast_ends_with(const char *str, const char *suffix)
^
channel.c: In function ‘channel_write’:
channel.c:787:33: warning: initialization from incompatible pointer type [enabled by default]
struct ast_channel bridged = ast_channel_get_bridge_channel(channel);
^
channel.c: In function ‘new_channel’:
channel.c:1160:3: warning: passing argument 8 of ‘__ast_channel_alloc’ from incompatible pointer type [enabled by default]
channel = ast_channel_alloc (1, ast_state, cid_num, PVT_ID(pvt), NULL, dnid, CONF_SHARED(pvt, context), requestor ? ast_channel_linkedid(requestor): NULL, 0, "%s/%s-%02u%08lx", channel_tech.type, PVT_ID(pvt), call_idx, pvt->channel_instanse);
^
In file included from /src/asterisk/asterisk-12.5.0/include/asterisk/pbx.h:26:0,
from channel.c:17:
/src/asterisk/asterisk-12.5.0/include/asterisk/channel.h:1162:2: note: expected ‘const struct ast_assigned_ids ’ but argument is of type ‘const char *’
__ast_channel_alloc(int needqueue, int state, const char *cid_num,
^
channel.c:1160:3: error: incompatible type for argument 10 of ‘__ast_channel_alloc’
channel = ast_channel_alloc (1, ast_state, cid_num, PVT_ID(pvt), NULL, dnid, CONF_SHARED(pvt, context), requestor ? ast_channel_linkedid(requestor): NULL, 0, "%s/%s-%02u%08lx", channel_tech.type, PVT_ID(pvt), call_idx, pvt->channel_instanse);
^
In file included from /src/asterisk/asterisk-12.5.0/include/asterisk/pbx.h:26:0,
from channel.c:17:
/src/asterisk/asterisk-12.5.0/include/asterisk/channel.h:1162:2: note: expected ‘enum ama_flags’ but argument is of type ‘char *’
__ast_channel_alloc(int needqueue, int state, const char *cid_num,
^
channel.c: In function ‘start_local_channel’:
channel.c:1268:2: warning: passing argument 4 of ‘ast_request’ from incompatible pointer type [enabled by default]
channel = ast_request ("Local", chan_dongle_format_cap, NULL, channel_name, &cause);
^
In file included from /src/asterisk/asterisk-12.5.0/include/asterisk/pbx.h:26:0,
from channel.c:17:
/src/asterisk/asterisk-12.5.0/include/asterisk/channel.h:1388:21: note: expected ‘const struct ast_channel *’ but argument is of type ‘char *’
struct ast_channel *ast_request(const char *type, struct ast_format_cap *request_cap, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *addr, int *cause);
^
channel.c:1268:2: warning: passing argument 5 of ‘ast_request’ from incompatible pointer type [enabled by default]
channel = ast_request ("Local", chan_dongle_format_cap, NULL, channel_name, &cause);
^
In file included from /src/asterisk/asterisk-12.5.0/include/asterisk/pbx.h:26:0,
from channel.c:17:
/src/asterisk/asterisk-12.5.0/include/asterisk/channel.h:1388:21: note: expected ‘const char *’ but argument is of type ‘int *’
struct ast_channel *ast_request(const char *type, struct ast_format_cap *request_cap, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *addr, int *cause);
^
channel.c:1268:2: error: too few arguments to function ‘ast_request’
channel = ast_request ("Local", chan_dongle_format_cap, NULL, channel_name, &cause);
^
In file included from /src/asterisk/asterisk-12.5.0/include/asterisk/pbx.h:26:0,
from channel.c:17:
/src/asterisk/asterisk-12.5.0/include/asterisk/channel.h:1388:21: note: declared here
struct ast_channel *ast_request(const char *type, struct ast_format_cap *request_cap, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *addr, int *cause);
^
channel.c: At top level:
channel.c:1438:2: warning: initialization from incompatible pointer type [enabled by default]
.requester = channel_request,
^
channel.c:1438:2: warning: (near initialization for ‘channel_tech.requester’) [enabled by default]
channel.c:1439:2: warning: initialization from incompatible pointer type [enabled by default]
.call = channel_call,
^
channel.c:1439:2: warning: (near initialization for ‘channel_tech.call’) [enabled by default]
channel.c:1448:2: warning: initialization from incompatible pointer type [enabled by default]
.devicestate = channel_devicestate,
^
channel.c:1448:2: warning: (near initialization for ‘channel_tech.devicestate’) [enabled by default]
make: ** [channel.o] Error 1
The text was updated successfully, but these errors were encountered:
make
./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
gcc -g -O2 -O0 -g -I. -D_GNU_SOURCE -I/src/asterisk/asterisk-12.5.0/include -I/usr/include -DASTERISK_VERSION_NUM=110000 -DHAVE_CONFIG_H -fvisibility=hidden -fPIC -Wall -Wextra -MD -MT channel.o -MF .channel.o.d -MP -o channel.o -c channel.c
In file included from /src/asterisk/asterisk-12.5.0/include/asterisk/utils.h:826:0,
from /src/asterisk/asterisk-12.5.0/include/asterisk/config.h:30,
from /src/asterisk/asterisk-12.5.0/include/asterisk/channel.h:169,
from /src/asterisk/asterisk-12.5.0/include/asterisk/pbx.h:26,
from channel.c:17:
/src/asterisk/asterisk-12.5.0/include/asterisk/strings.h:93:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration]
static int force_inline attribute_pure ast_begins_with(const char str, const char *prefix)
^
/src/asterisk/asterisk-12.5.0/include/asterisk/strings.h:111:1: warning: ‘inline’ is not at beginning of declaration [-Wold-style-declaration]
static int force_inline attribute_pure ast_ends_with(const char *str, const char *suffix)
^
channel.c: In function ‘channel_write’:
channel.c:787:33: warning: initialization from incompatible pointer type [enabled by default]
struct ast_channel bridged = ast_channel_get_bridge_channel(channel);
^
channel.c: In function ‘new_channel’:
channel.c:1160:3: warning: passing argument 8 of ‘__ast_channel_alloc’ from incompatible pointer type [enabled by default]
channel = ast_channel_alloc (1, ast_state, cid_num, PVT_ID(pvt), NULL, dnid, CONF_SHARED(pvt, context), requestor ? ast_channel_linkedid(requestor): NULL, 0, "%s/%s-%02u%08lx", channel_tech.type, PVT_ID(pvt), call_idx, pvt->channel_instanse);
^
In file included from /src/asterisk/asterisk-12.5.0/include/asterisk/pbx.h:26:0,
from channel.c:17:
/src/asterisk/asterisk-12.5.0/include/asterisk/channel.h:1162:2: note: expected ‘const struct ast_assigned_ids ’ but argument is of type ‘const char *’
__ast_channel_alloc(int needqueue, int state, const char *cid_num,
^
channel.c:1160:3: error: incompatible type for argument 10 of ‘__ast_channel_alloc’
channel = ast_channel_alloc (1, ast_state, cid_num, PVT_ID(pvt), NULL, dnid, CONF_SHARED(pvt, context), requestor ? ast_channel_linkedid(requestor): NULL, 0, "%s/%s-%02u%08lx", channel_tech.type, PVT_ID(pvt), call_idx, pvt->channel_instanse);
^
In file included from /src/asterisk/asterisk-12.5.0/include/asterisk/pbx.h:26:0,
from channel.c:17:
/src/asterisk/asterisk-12.5.0/include/asterisk/channel.h:1162:2: note: expected ‘enum ama_flags’ but argument is of type ‘char *’
__ast_channel_alloc(int needqueue, int state, const char *cid_num,
^
channel.c: In function ‘start_local_channel’:
channel.c:1268:2: warning: passing argument 4 of ‘ast_request’ from incompatible pointer type [enabled by default]
channel = ast_request ("Local", chan_dongle_format_cap, NULL, channel_name, &cause);
^
In file included from /src/asterisk/asterisk-12.5.0/include/asterisk/pbx.h:26:0,
from channel.c:17:
/src/asterisk/asterisk-12.5.0/include/asterisk/channel.h:1388:21: note: expected ‘const struct ast_channel *’ but argument is of type ‘char *’
struct ast_channel *ast_request(const char *type, struct ast_format_cap *request_cap, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *addr, int *cause);
^
channel.c:1268:2: warning: passing argument 5 of ‘ast_request’ from incompatible pointer type [enabled by default]
channel = ast_request ("Local", chan_dongle_format_cap, NULL, channel_name, &cause);
^
In file included from /src/asterisk/asterisk-12.5.0/include/asterisk/pbx.h:26:0,
from channel.c:17:
/src/asterisk/asterisk-12.5.0/include/asterisk/channel.h:1388:21: note: expected ‘const char *’ but argument is of type ‘int *’
struct ast_channel *ast_request(const char *type, struct ast_format_cap *request_cap, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *addr, int *cause);
^
channel.c:1268:2: error: too few arguments to function ‘ast_request’
channel = ast_request ("Local", chan_dongle_format_cap, NULL, channel_name, &cause);
^
In file included from /src/asterisk/asterisk-12.5.0/include/asterisk/pbx.h:26:0,
from channel.c:17:
/src/asterisk/asterisk-12.5.0/include/asterisk/channel.h:1388:21: note: declared here
struct ast_channel *ast_request(const char *type, struct ast_format_cap *request_cap, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *addr, int *cause);
^
channel.c: At top level:
channel.c:1438:2: warning: initialization from incompatible pointer type [enabled by default]
.requester = channel_request,
^
channel.c:1438:2: warning: (near initialization for ‘channel_tech.requester’) [enabled by default]
channel.c:1439:2: warning: initialization from incompatible pointer type [enabled by default]
.call = channel_call,
^
channel.c:1439:2: warning: (near initialization for ‘channel_tech.call’) [enabled by default]
channel.c:1448:2: warning: initialization from incompatible pointer type [enabled by default]
.devicestate = channel_devicestate,
^
channel.c:1448:2: warning: (near initialization for ‘channel_tech.devicestate’) [enabled by default]
make: ** [channel.o] Error 1
The text was updated successfully, but these errors were encountered: