LCR fails to compile with Asterisk 11

Nico <[email protected]>
Newsgroups gmane.linux.isdn.i4l.user
Message-ID <75689475.HSlrK8cBxV@laptop-5>
LS,

 
I am new to this list, i do use lcr/asterisk together for quite some time now hardly with problems.
The distro (Gentoo) i use just changed over to asterisk 11, also i had mISDNuser to use the socket version instead of v1.
I allready did change the #include <asterisk/version.h> into #include <asterisk/ast_version.h>
because it otherwise stops in an #error in the version.h file.

This is when using the master tag from git.


lcr $ make
make  all-am
make[1]: Entering directory `/var/tmp/portage/net-voip/lcr-9999/work/lcr'
i686-pc-linux-gnu-gcc  -DWITH_MISDN -DWITH_CRYPT     -DWITH_SIP -I/usr/include/sofia-sip-1.12  -Wall -DCONFIG_DATA="\"/etc/lcr\"" -DSHARE_DATA="\"/usr/share/lcr\"" -DLOG_DIR="\"/var/log/lcr\"" -DEXTENSION_DATA="\"/var/lib/lcr/extensions\"" -Dast_tone_zone_sound=ast_tone_zone_sound -DAST_1_8_OR_HIGHER  -O2 -march=pentium4 -fomit-frame-pointer -pipe -mno-tls-direct-seg-refs -D_GNU_SOURCE -fPIC -c chan_lcr.c -o chan_lcr.po
chan_lcr.c: In function 'chan_lcr_log':
chan_lcr.c:253:24: error: dereferencing pointer to incomplete type
chan_lcr.c: In function 'send_message':
chan_lcr.c:395:7: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
chan_lcr.c: In function 'apply_opt':
chan_lcr.c:613:5: warning: passing argument 1 of 'ast_translator_build_path' makes pointer from integer without a cast [enabled by default]
/usr/include/asterisk/translate.h:299:23: note: expected 'struct ast_format *' but argument is of type 'int'
chan_lcr.c:613:5: warning: passing argument 2 of 'ast_translator_build_path' makes pointer from integer without a cast [enabled by default]
/usr/include/asterisk/translate.h:299:23: note: expected 'struct ast_format *' but argument is of type 'int'
chan_lcr.c: In function 'send_setup_to_lcr':
chan_lcr.c:698:2: warning: #warning DISABLED DUE TO DOUBLE LOCKING PROBLEM [-Wcpp]
chan_lcr.c:703:43: error: dereferencing pointer to incomplete type
chan_lcr.c: In function 'lcr_start_pbx':
chan_lcr.c:789:19: error: dereferencing pointer to incomplete type
chan_lcr.c:801:2: error: dereferencing pointer to incomplete type
chan_lcr.c:809:39: error: dereferencing pointer to incomplete type
chan_lcr.c:810:1: error: dereferencing pointer to incomplete type
chan_lcr.c:819:37: error: dereferencing pointer to incomplete type
chan_lcr.c:820:4: error: dereferencing pointer to incomplete type
chan_lcr.c:840:37: error: dereferencing pointer to incomplete type
chan_lcr.c:855:35: error: dereferencing pointer to incomplete type
chan_lcr.c:878:11: error: dereferencing pointer to incomplete type
chan_lcr.c:905:5: error: dereferencing pointer to incomplete type
chan_lcr.c: In function 'lcr_in_setup':
chan_lcr.c:968:18: error: dereferencing pointer to incomplete type
chan_lcr.c:969:19: error: dereferencing pointer to incomplete type
chan_lcr.c:989:5: error: dereferencing pointer to incomplete type
chan_lcr.c:990:5: error: dereferencing pointer to incomplete type
chan_lcr.c:991:5: error: dereferencing pointer to incomplete type
chan_lcr.c:1001:14: error: dereferencing pointer to incomplete type
chan_lcr.c:1003:14: error: dereferencing pointer to incomplete type
chan_lcr.c:1005:14: error: dereferencing pointer to incomplete type
chan_lcr.c:1186:5: error: dereferencing pointer to incomplete type
chan_lcr.c:1197:5: error: dereferencing pointer to incomplete type
chan_lcr.c:1198:5: error: dereferencing pointer to incomplete type
chan_lcr.c:1198:23: error: dereferencing pointer to incomplete type
chan_lcr.c:1198:44: error: dereferencing pointer to incomplete type
chan_lcr.c:1199:5: error: dereferencing pointer to incomplete type
chan_lcr.c:1199:24: error: dereferencing pointer to incomplete type
chan_lcr.c:1199:47: error: dereferencing pointer to incomplete type
chan_lcr.c:1216:5: error: dereferencing pointer to incomplete type
chan_lcr.c:1217:5: error: dereferencing pointer to incomplete type
chan_lcr.c: In function 'lcr_in_proceeding':
chan_lcr.c:1260:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
chan_lcr.c: In function 'lcr_in_alerting':
chan_lcr.c:1282:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
chan_lcr.c: In function 'lcr_in_connect':
chan_lcr.c:1305:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
chan_lcr.c: In function 'lcr_in_disconnect':
chan_lcr.c:1343:6: error: dereferencing pointer to incomplete type
chan_lcr.c:1351:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
chan_lcr.c: In function 'lcr_in_release':
chan_lcr.c:1382:6: error: dereferencing pointer to incomplete type
chan_lcr.c:1390:9: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
chan_lcr.c: In function 'lcr_in_information':
chan_lcr.c:1418:14: error: dereferencing pointer to incomplete type
chan_lcr.c:1440:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
chan_lcr.c:1456:10: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
chan_lcr.c: In function 'lcr_in_pattern':
chan_lcr.c:1518:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
chan_lcr.c: In function 'lcr_in_dtmf':
chan_lcr.c:1549:7: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
chan_lcr.c: In function 'release_all_calls':
chan_lcr.c:1734:8: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
chan_lcr.c: In function 'wake_event':
chan_lcr.c:1883:6: warning: variable 'rc' set but not used [-Wunused-but-set-variable]
chan_lcr.c: At top level:
chan_lcr.c:2028:51: error: unknown type name 'format_t'
chan_lcr.c: In function 'lcr_call':


It goes on a little further, like this.
Most probably a simple change is needed, or an extra include. I am just not into the code deep enough
to see the obvious

Hope someone has some advise
TIA.
Nico
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.