Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compiled for Asterisk12.5.0 (Linux Ubuntu Kernel 3.13.0-35-generic Fri Aug 15 01:58:42 UTC 2014 x86_64) #2

Open
PolPavel opened this issue Sep 18, 2014 · 3 comments

Comments

@PolPavel
Copy link

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

@MichaelVasilyev
Copy link

Same problem for me! Asterisk 12.6
3.16-2-amd64 #1 SMP Debian 3.16.3-2 (2014-09-20) x86_64 GNU/Linux

@WiltonFerreira
Copy link

Same for me too!

@CodyAnd
Copy link

CodyAnd commented Dec 11, 2014

Same problem for me.
asterisk-12.7.1
Linux 3.16.5-gentoo #1 SMP Fri Dec 5 00:54:18 EET 2014 GenuineIntel GNU/Linux
gcc-4.8.3, glibc-2.19-r1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants