lcr with asterisk for 1.11 doesn't compile ?!
Tamer Higazi <th982a-gM/[email protected]> Fri, 28 Mar 2014 21:25:58 +0100
| Newsgroups | gmane.linux.isdn.i4l.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi people!
I tried to built the asterisk chan_lcr module and don't know why all
these errors do all appear ?!
I have the latest debian testing version running and hope you can give
me some answers.
I would be really happy to get mISDN to run.
Tamer
./configure --with-asterisk --with-misdn --with-ssl --with-sip brings me
this result:
tamer@babe3306:/usr/local/src/lcr$ make
make all-recursive
make[1]: Entering directory `/usr/local/src/lcr'
make[2]: Entering directory `/usr/local/src/lcr'
gcc -I./include -DWITH_MISDN -DWITH_CRYPT -DWITH_SIP
-I/usr/include/sofia-sip-1.12 -Wall
-DCONFIG_DATA=3D"\"/usr/local/etc/lcr\""
-DSHARE_DATA=3D"\"/usr/local/share/lcr\""
-DLOG_DIR=3D"\"/usr/local/var/log/lcr\""
-DEXTENSION_DATA=3D"\"/usr/local/var/lib/lcr/extensions\""
-Dast_tone_zone_sound=3Dast_tone_zone_sound -DAST_1_8_OR_HIGHER -g -O2
-D_GNU_SOURCE -fPIC -c chan_lcr.c -o chan_lcr.po
In file included from chan_lcr.c:172:0:
/usr/include/asterisk/version.h:1:2: error: #error "Do not include
'asterisk/version.h'; use 'asterisk/ast_version.h' instead."
#error "Do not include 'asterisk/version.h'; use
'asterisk/ast_version.h' instead."
^
In file included from /usr/include/string.h:631:0,
from chan_lcr.c:115:
chan_lcr.c: In function =91chan_lcr_log=92:
chan_lcr.c:254:24: error: dereferencing pointer to incomplete type
strncpy(ast_text, ast->name, sizeof(ast_text)-1);
^
chan_lcr.c: In function =91send_message=92:
chan_lcr.c:396:7: warning: variable =91rc=92 set but not used
[-Wunused-but-set-variable]
int rc;
^
chan_lcr.c: In function =91apply_opt=92:
chan_lcr.c:614:5: warning: passing argument 1 of
=91ast_translator_build_path=92 makes pointer from integer without a cast
[enabled by default]
call->trans=3Dast_translator_build_path(AST_FORMAT_SLINEAR,
(options.law=3D=3D'a')?AST_FORMAT_ALAW:AST_FORMAT_ULAW);
^
In file included from chan_lcr.c:154:0:
/usr/include/asterisk/translate.h:299:23: note: expected =91struct
ast_format *=92 but argument is of type =91int=92
struct ast_trans_pvt *ast_translator_build_path(struct ast_format *dest,
struct ast_format *source);
^
chan_lcr.c:614:5: warning: passing argument 2 of
=91ast_translator_build_path=92 makes pointer from integer without a cast
[enabled by default]
call->trans=3Dast_translator_build_path(AST_FORMAT_SLINEAR,
(options.law=3D=3D'a')?AST_FORMAT_ALAW:AST_FORMAT_ULAW);
^
In file included from chan_lcr.c:154:0:
/usr/include/asterisk/translate.h:299:23: note: expected =91struct
ast_format *=92 but argument is of type =91int=92
struct ast_trans_pvt *ast_translator_build_path(struct ast_format *dest,
struct ast_format *source);
^
chan_lcr.c: In function =91send_setup_to_lcr=92:
chan_lcr.c:699:2: warning: #warning DISABLED DUE TO DOUBLE LOCKING
PROBLEM [-Wcpp]
#warning DISABLED DUE TO DOUBLE LOCKING PROBLEM
^
chan_lcr.c:704:43: error: dereferencing pointer to incomplete type
newparam.setup.capainfo.bearer_capa =3D ast->transfercapability;
^
chan_lcr.c: In function =91lcr_start_pbx=92:
chan_lcr.c:790:19: error: dereferencing pointer to incomplete type
char *exten =3D ast->exten;
^
In file included from chan_lcr.c:181:0:
chan_lcr.c:802:87: error: dereferencing pointer to incomplete type
CDEBUG(call, ast, "Try to start pbx. (exten=3D%s context=3D%s
complete=3D%s)\n", exten, ast->context, complete?"yes":"no");
^
chan_lcr.h:138:110: note: in definition of macro =91CDEBUG=92
#define CDEBUG(call, ast, arg...) chan_lcr_log(__LOG_NOTICE, __FILE__,
__LINE__, __FUNCTION__, call, ast, ##arg)
^
chan_lcr.c:810:39: error: dereferencing pointer to incomplete type
if (!ast_canmatch_extension(ast, ast->context, exten, 1, call->oad)) {
^
In file included from chan_lcr.c:181:0:
chan_lcr.c:811:121: error: dereferencing pointer to incomplete type
CDEBUG(call, ast, "Got 'sending complete', but extension '%s' will not
match at context '%s' - releasing.\n", exten, ast->context);
^
chan_lcr.h:138:110: note: in definition of macro =91CDEBUG=92
#define CDEBUG(call, ast, arg...) chan_lcr_log(__LOG_NOTICE, __FILE__,
__LINE__, __FUNCTION__, call, ast, ##arg)
^
chan_lcr.c:820:37: error: dereferencing pointer to incomplete type
if (!ast_exists_extension(ast, ast->context, exten, 1, call->oad)) {
^
In file included from chan_lcr.c:181:0:
chan_lcr.c:821:153: error: dereferencing pointer to incomplete type
CDEBUG(call, ast, "Got 'sending complete', but extension '%s' would
match at context '%s', if more digits would be dialed - releasing.\n",
exten, ast->context);
^
chan_lcr.h:138:110: note: in definition of macro =91CDEBUG=92
#define CDEBUG(call, ast, arg...) chan_lcr_log(__LOG_NOTICE, __FILE__,
__LINE__, __FUNCTION__, call, ast, ##arg)
^
chan_lcr.c:841:37: error: dereferencing pointer to incomplete type
if (ast_canmatch_extension(ast, ast->context, exten, 1, call->oad)) {
^
chan_lcr.c:856:35: error: dereferencing pointer to incomplete type
if (ast_exists_extension(ast, ast->context, exten, 1, call->oad)) {
^
chan_lcr.c:879:11: error: dereferencing pointer to incomplete type
if (!*ast->exten) {
^
chan_lcr.c:906:5: error: dereferencing pointer to incomplete type
ast->hangupcause =3D call->cause;
^
chan_lcr.c: In function =91lcr_in_setup=92:
chan_lcr.c:969:18: error: dereferencing pointer to incomplete type
ast_redir =3D &ast->redirecting;
^
chan_lcr.c:970:19: error: dereferencing pointer to incomplete type
ast_caller =3D &ast->caller;
^
chan_lcr.c:990:5: error: dereferencing pointer to incomplete type
ast->tech_pvt =3D call;
^
chan_lcr.c:991:5: error: dereferencing pointer to incomplete type
ast->tech =3D &lcr_tech;
^
chan_lcr.c:992:5: error: dereferencing pointer to incomplete type
ast->fds[0] =3D call->pipe[0];
^
In file included from /usr/include/string.h:631:0,
from chan_lcr.c:115:
chan_lcr.c:1002:14: error: dereferencing pointer to incomplete type
strncpy(ast->exten, param->setup.dialinginfo.id, AST_MAX_EXTENSION-1);
^
chan_lcr.c:1004:14: error: dereferencing pointer to incomplete type
strncpy(ast->context, param->setup.dialinginfo.context, AST_MAX_CONTEXT-1);
^
chan_lcr.c:1006:14: error: dereferencing pointer to incomplete type
strncpy(ast->context, param->setup.callerinfo.interface, AST_MAX_CONTEXT-1);
^
chan_lcr.c:1187:5: error: dereferencing pointer to incomplete type
ast->transfercapability =3D param->setup.capainfo.bearer_capa;
^
chan_lcr.c:1198:5: error: dereferencing pointer to incomplete type
ast->nativeformats =3D (options.law=3D=3D'a')?AST_FORMAT_ALAW:AST_FORMAT_UL=
AW;
^
chan_lcr.c:1199:5: error: dereferencing pointer to incomplete type
ast->readformat =3D ast->rawreadformat =3D ast->nativeformats;
^
chan_lcr.c:1199:23: error: dereferencing pointer to incomplete type
ast->readformat =3D ast->rawreadformat =3D ast->nativeformats;
^
chan_lcr.c:1199:44: error: dereferencing pointer to incomplete type
ast->readformat =3D ast->rawreadformat =3D ast->nativeformats;
^
chan_lcr.c:1200:5: error: dereferencing pointer to incomplete type
ast->writeformat =3D ast->rawwriteformat =3D ast->nativeformats;
^
chan_lcr.c:1200:24: error: dereferencing pointer to incomplete type
ast->writeformat =3D ast->rawwriteformat =3D ast->nativeformats;
^
chan_lcr.c:1200:47: error: dereferencing pointer to incomplete type
ast->writeformat =3D ast->rawwriteformat =3D ast->nativeformats;
^
chan_lcr.c:1217:5: error: dereferencing pointer to incomplete type
ast->priority =3D 1;
^
chan_lcr.c:1218:5: error: dereferencing pointer to incomplete type
ast->hangupcause =3D 0;
^
chan_lcr.c: In function =91lcr_in_proceeding=92:
chan_lcr.c:1261:8: warning: variable =91rc=92 set but not used
[-Wunused-but-set-variable]
int rc;
^
chan_lcr.c: In function =91lcr_in_alerting=92:
chan_lcr.c:1283:8: warning: variable =91rc=92 set but not used
[-Wunused-but-set-variable]
int rc;
^
chan_lcr.c: In function =91lcr_in_connect=92:
chan_lcr.c:1306:8: warning: variable =91rc=92 set but not used
[-Wunused-but-set-variable]
int rc;
^
chan_lcr.c: In function =91lcr_in_disconnect=92:
chan_lcr.c:1344:6: error: dereferencing pointer to incomplete type
ast->hangupcause =3D call->cause;
^
chan_lcr.c:1352:9: warning: variable =91rc=92 set but not used
[-Wunused-but-set-variable]
int rc;
^
chan_lcr.c: In function =91lcr_in_release=92:
chan_lcr.c:1383:6: error: dereferencing pointer to incomplete type
ast->hangupcause =3D call->cause;
^
chan_lcr.c:1391:9: warning: variable =91rc=92 set but not used
[-Wunused-but-set-variable]
int rc;
^
In file included from /usr/include/string.h:631:0,
from chan_lcr.c:115:
chan_lcr.c: In function =91lcr_in_information=92:
chan_lcr.c:1419:14: error: dereferencing pointer to incomplete type
strncat(ast->exten, param->information.id, AST_MAX_EXTENSION-1);
^
chan_lcr.c:1441:8: warning: variable =91rc=92 set but not used
[-Wunused-but-set-variable]
int rc;
^
chan_lcr.c:1457:10: warning: variable =91rc=92 set but not used
[-Wunused-but-set-variable]
int rc;
^
chan_lcr.c: In function =91lcr_in_pattern=92:
chan_lcr.c:1519:8: warning: variable =91rc=92 set but not used
[-Wunused-but-set-variable]
int rc;
^
chan_lcr.c: In function =91lcr_in_dtmf=92:
chan_lcr.c:1550:7: warning: variable =91rc=92 set but not used
[-Wunused-but-set-variable]
int rc;
^
chan_lcr.c: In function =91release_all_calls=92:
chan_lcr.c:1735:8: warning: variable =91rc=92 set but not used
[-Wunused-but-set-variable]
int rc;
^
chan_lcr.c: In function =91wake_event=92:
chan_lcr.c:1884:6: warning: variable =91rc=92 set but not used
[-Wunused-but-set-variable]
int rc;
^
chan_lcr.c: At top level:
chan_lcr.c:2029:51: error: unknown type name =91format_t=92
struct ast_channel *lcr_request(const char *type, format_t format, const
struct ast_channel *requestor, void *data, int *cause)
^
chan_lcr.c: In function =91lcr_call=92:
chan_lcr.c:2407:12: error: dereferencing pointer to incomplete type
call =3D ast->tech_pvt;
^
chan_lcr.c:2435:9: error: dereferencing pointer to incomplete type
if (ast->transfercapability =3D=3D INFO_BC_DATAUNRESTRICTED
^
chan_lcr.c:2436:9: error: dereferencing pointer to incomplete type
|| ast->transfercapability =3D=3D INFO_BC_DATARESTRICTED
^
chan_lcr.c:2437:9: error: dereferencing pointer to incomplete type
|| ast->transfercapability =3D=3D INFO_BC_VIDEO)
^
chan_lcr.c:2448:9: error: dereferencing pointer to incomplete type
&& ast->transfercapability !=3D INFO_BC_DATAUNRESTRICTED
^
chan_lcr.c:2449:9: error: dereferencing pointer to incomplete type
&& ast->transfercapability !=3D INFO_BC_DATARESTRICTED
^
chan_lcr.c:2450:9: error: dereferencing pointer to incomplete type
&& ast->transfercapability !=3D INFO_BC_VIDEO)
^
chan_lcr.c:2451:6: error: dereferencing pointer to incomplete type
ast->transfercapability =3D INFO_BC_DATAUNRESTRICTED;
^
In file included from chan_lcr.c:181:0:
chan_lcr.c: In function =91send_digit_to_chan=92:
chan_lcr.c:2509:77: error: dereferencing pointer to incomplete type
CDEBUG(NULL, ast, "Unable to handle DTMF tone '%c' for '%s'\n", digit,
ast->name);
^
chan_lcr.h:138:110: note: in definition of macro =91CDEBUG=92
#define CDEBUG(call, ast, arg...) chan_lcr_log(__LOG_NOTICE, __FILE__,
__LINE__, __FUNCTION__, call, ast, ##arg)
^
chan_lcr.c: In function =91lcr_digit_begin=92:
chan_lcr.c:2537:12: error: dereferencing pointer to incomplete type
call =3D ast->tech_pvt;
^
chan_lcr.c: In function =91lcr_digit_end=92:
chan_lcr.c:2584:12: error: dereferencing pointer to incomplete type
call =3D ast->tech_pvt;
^
chan_lcr.c: In function =91lcr_answer=92:
chan_lcr.c:2620:12: error: dereferencing pointer to incomplete type
call =3D ast->tech_pvt;
^
chan_lcr.c: In function =91lcr_hangup=92:
chan_lcr.c:2660:12: error: dereferencing pointer to incomplete type
call =3D ast->tech_pvt;
^
chan_lcr.c:2679:5: error: dereferencing pointer to incomplete type
ast->tech_pvt =3D NULL;
^
chan_lcr.c:2680:5: error: dereferencing pointer to incomplete type
ast->fds[0] =3D -1;
^
chan_lcr.c:2689:10: error: dereferencing pointer to incomplete type
if (ast->hangupcause > 0)
^
chan_lcr.c:2690:26: error: dereferencing pointer to incomplete type
send_release(call, ast->hangupcause, LOCATION_PRIVATE_LOCAL);
^
chan_lcr.c: In function =91lcr_write=92:
chan_lcr.c:2732:18: error: =91union ast_frame_subclass=92 has no member
named =91codec=92
if (!f->subclass.codec)
^
chan_lcr.c:2741:19: error: =91union ast_frame_subclass=92 has no member
named =91codec=92
if (!(f->subclass.codec & ast->nativeformats)) {
^
chan_lcr.c:2741:31: error: dereferencing pointer to incomplete type
if (!(f->subclass.codec & ast->nativeformats)) {
^
chan_lcr.c:2765:40: error: =91union ast_frame_subclass=92 has no member
named =91codec=92
ast_set_write_format(ast, f->subclass.codec);
^
chan_lcr.c:2773:11: error: dereferencing pointer to incomplete type
f =3D (ast->writetrans) ? ast_translate(
^
chan_lcr.c:2774:7: error: dereferencing pointer to incomplete type
ast->writetrans, fr, 0) : fr;
^
chan_lcr.c:2783:12: error: dereferencing pointer to incomplete type
call =3D ast->tech_pvt;
^
chan_lcr.c: In function =91lcr_read=92:
chan_lcr.c:2823:12: error: dereferencing pointer to incomplete type
call =3D ast->tech_pvt;
^
chan_lcr.c:2870:24: error: =91union ast_frame_subclass=92 has no member
named =91codec=92
call->read_fr.subclass.codec =3D ast->nativeformats;
^
chan_lcr.c:2870:36: error: dereferencing pointer to incomplete type
call->read_fr.subclass.codec =3D ast->nativeformats;
^
chan_lcr.c: In function =91lcr_indicate=92:
chan_lcr.c:2926:12: error: dereferencing pointer to incomplete type
call =3D ast->tech_pvt;
^
chan_lcr.c:2951:37: error: dereferencing pointer to incomplete type
ts =3D ast_get_indication_tone(ast->zone, "busy");
^
In file included from chan_lcr.c:181:0:
chan_lcr.c:2959:97: error: dereferencing pointer to incomplete type
CDEBUG(call, ast, "Received indicate AST_CONTROL_CONGESTION from
Asterisk. (cause %d)\n", ast->hangupcause);
^
chan_lcr.h:138:110: note: in definition of macro =91CDEBUG=92
#define CDEBUG(call, ast, arg...) chan_lcr_log(__LOG_NOTICE, __FILE__,
__LINE__, __FUNCTION__, call, ast, ##arg)
^
chan_lcr.c:2967:40: error: dereferencing pointer to incomplete type
newparam.disconnectinfo.cause =3D ast->hangupcause;
^
chan_lcr.c:2978:37: error: dereferencing pointer to incomplete type
ts =3D ast_get_indication_tone(ast->zone, "congestion");
^
chan_lcr.c:3009:37: error: dereferencing pointer to incomplete type
ts =3D ast_get_indication_tone(ast->zone, "ring");
^
chan_lcr.c:3051:30: error: dereferencing pointer to incomplete type
ast_moh_start(ast,data,ast->musicclass);
^
chan_lcr.c: In function =91lcr_fixup=92:
chan_lcr.c:3109:12: error: dereferencing pointer to incomplete type
call =3D ast->tech_pvt;
^
chan_lcr.c: In function =91lcr_send_text=92:
chan_lcr.c:3135:12: error: dereferencing pointer to incomplete type
call =3D ast->tech_pvt;
^
chan_lcr.c: In function =91lcr_bridge=92:
chan_lcr.c:3179:14: error: dereferencing pointer to incomplete type
call1 =3D ast1->tech_pvt;
^
chan_lcr.c:3180:14: error: dereferencing pointer to incomplete type
call2 =3D ast2->tech_pvt;
^
chan_lcr.c:3292:14: error: dereferencing pointer to incomplete type
call1 =3D ast1->tech_pvt;
^
chan_lcr.c:3293:14: error: dereferencing pointer to incomplete type
call2 =3D ast2->tech_pvt;
^
chan_lcr.c: At top level:
chan_lcr.c:3318:2: warning: initialization makes pointer from integer
without a cast [enabled by default]
.capabilities =3D AST_FORMAT_ALAW,
^
chan_lcr.c:3318:2: warning: (near initialization for
=91lcr_tech.capabilities=92) [enabled by default]
chan_lcr.c:3320:15: error: =91lcr_request=92 undeclared here (not in a func=
tion)
.requester =3D lcr_request,
^
chan_lcr.c:3331:2: warning: initialization from incompatible pointer
type [enabled by default]
.call =3D lcr_call,
^
chan_lcr.c:3331:2: warning: (near initialization for =91lcr_tech.call=92)
[enabled by default]
chan_lcr.c: In function =91load_module=92:
chan_lcr.c:3520:24: warning: assignment makes pointer from integer
without a cast [enabled by default]
lcr_tech.capabilities =3D (options.law=3D=3D'a')?AST_FORMAT_ALAW:AST_FORMAT=
_ULAW;
^
make[2]: *** [chan_lcr.po] Fehler 1
make[2]: Leaving directory `/usr/local/src/lcr'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/usr/local/src/lcr'
make: *** [all] Fehler 2
tamer@babe3306:/usr/local/src/lcr$