superles / chan-dongle-asterisk12

Other
10 stars 7 forks source link

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 10 years ago

PolPavel commented 10 years ago

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 astchannel 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_assignedids ’ 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 ‘channeltech.devicestate’) [enabled by default] make: ** [channel.o] Error 1

MichaelVasilyev commented 10 years ago

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 commented 9 years ago

Same for me too!

CodyAnd commented 9 years ago

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