[Problem] CentOS7 Elastix 4, Asterisk 11, HFC-4, mISDN Fehler beim Kompilieren error compiling

Cartoon2

Neuer User
Mitglied seit
19 Mrz 2010
Beiträge
18
Punkte für Reaktionen
0
Punkte
1
mISDN V2 is needed for using an old ISDN hardware (Eicon Diva, AVM, HFC chip ISDN cards etc).

I need help with mISDN V2 on:
Elastix 4 on CentOS7
Asterix: 11.20.0
Kernel: 3.10.0
DAHDI: 2.10.2

I can not install LCR, I got error, and I can't make mISDN module automaticaly start with LCR script.


Procedure before error, steps:
Code:
[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# systemctl disable firewalld.service
[root@localhost ~]# yum install nano                               (This is optionaly)
[root@localhost ~]# yum -y groupinstall 'Development Tools'
[root@localhost ~]# git clone git://git.misdn.eu/mISDN.git/            mISDN download
[root@localhost ~]# git clone git://git.misdn.eu/mISDNuser.git/       mISDNuser download
[root@localhost ~]# cd mISDN
[root@localhost ~]# ./configure
[root@localhost ~]# cp mISDN.cfg.default standalone/mISDN.cfg 
[root@localhost ~]# make modules
[root@localhost ~]# make modules_install

mISDNuser

cd mISDNuser
[root@localhost ~]# make
[root@localhost ~]# ./configure 
[root@localhost ~]# make 
[root@localhost ~]# make install


make modules
make modules_install

After this procedure, one more step with mISDNuser. To compile and install the mISDN user lib and tools, just switch to the mISDNuser dir and run:
  [CODE]cd mISDNuser
 make
make install

Please help about last step!
Start services/drivers with some automatic start script or LCR.
I tryed LCR and I can't instal LCR.

LCR is latest. Procedure is:
Code:
cd /usr/src
git clone git://git.misdn.eu/lcr.git/  
cd /usr/src/lcr
#If compile from GIT, run "./autogen.sh" first.
./autogen.sh
./configure 
make
make install
but i get errors:
Code:
[root@Elastix4 lcr]# ./autogen.sh
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `build-aux'.
libtoolize: copying file `build-aux/ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.

Configure seems OK,:
Code:
[root@Elastix4 lcr]# ./configure 
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether make sets $(MAKE)... (cached) yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking mISDN/mbuffer.h usability... yes
checking mISDN/mbuffer.h presence... yes
checking for mISDN/mbuffer.h... yes
checking asterisk/compiler.h usability... yes
checking asterisk/compiler.h presence... yes
checking for asterisk/compiler.h... yes
checking for struct ast_tone_zone_sound... yes
checking for struct ast_party_caller... yes
checking openssl/rsa.h usability... yes
checking openssl/rsa.h presence... yes
checking for openssl/rsa.h... yes
checking for main in -lcrypto... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OPENCORE_AMRNB... no
checking for main in -lm... yes
checking for main in -lncurses... yes
checking for main in -lpthread... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/file.h usability... yes
checking sys/file.h presence... yes
checking for sys/file.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking for assert.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pid_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking whether gcc needs -traditional... no
checking whether lstat correctly handles trailing slash... yes
checking whether lstat accepts an empty string... no
checking whether lstat correctly handles trailing slash... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working memcmp... yes
checking return type of signal handlers... void
checking for working strnlen... yes
checking for working strtod... yes
checking for vprintf... yes
checking for _doprnt... no
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strchr... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating include/gsmhr/Makefile
config.status: creating libgsmhr/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure: Compiled with mISDN support 
configure: Not compiled with GSM network side support
configure: Not compiled with GSM mobile side support
configure: Not compiled with GSM half rate codec support
configure: Not compiled with GSM AMR codec support
configure: Compiled with Asterisk channel driver support 
configure: Not compiled with CCITT No.5 support
configure: Not compiled with SIP support
configure: Not compiled with VoOTP support

but "make" not:
Code:
[root@Elastix4 lcr]# make
make  all-recursive
make[1]: Entering directory `/usr/src/lcr'
Making all in include
make[2]: Entering directory `/usr/src/lcr/include'
make[3]: Entering directory `/usr/src/lcr/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/src/lcr/include'
make[2]: Leaving directory `/usr/src/lcr/include'
make[2]: Entering directory `/usr/src/lcr'
gcc  -DWITH_MISDN -DWITH_CRYPT         -Wall -DCONFIG_DATA="\"/usr/local/etc/lcr\"" -DSHARE_DATA="\"/usr/local/share/lcr\"" -DLOG_DIR="\"/usr/local/var/log/lcr\"" -DEXTENSION_DATA="\"/usr/local/var/lib/lcr/extensions\"" -Dast_tone_zone_sound=ast_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:633:0,
                 from chan_lcr.c:115:
chan_lcr.c: In function chan_lcr_log:
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 send_message:
chan_lcr.c:396:7: warning: variable rc set but not used [-Wunused-but-set-variable]
   int rc;
       ^
chan_lcr.c: In function apply_opt:
chan_lcr.c:614:5: warning: passing argument 1 of ast_translator_build_path makes pointer from integer without a cast [enabled by default]
     call->trans=ast_translator_build_path(AST_FORMAT_SLINEAR, (options.law=='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 struct ast_format * but argument is of type int
 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 ast_translator_build_path makes pointer from integer without a cast [enabled by default]
     call->trans=ast_translator_build_path(AST_FORMAT_SLINEAR, (options.law=='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 struct ast_format * but argument is of type int
 struct ast_trans_pvt *ast_translator_build_path(struct ast_format *dest, struct ast_format *source);
                       ^
chan_lcr.c: In function send_setup_to_lcr:
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 = ast->transfercapability;
                                           ^
chan_lcr.c: In function lcr_start_pbx:
chan_lcr.c:790:19: error: dereferencing pointer to incomplete type
  char *exten = 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=%s context=%s complete=%s)\n", exten, ast->context, complete?"yes":"no");
                                                                                       ^
chan_lcr.h:138:110: note: in definition of macro CDEBUG
 #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 CDEBUG
 #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 CDEBUG
 #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 = call->cause;
     ^
chan_lcr.c: In function lcr_in_setup:
chan_lcr.c:969:18: error: dereferencing pointer to incomplete type
  ast_redir = &ast->redirecting;
                  ^
chan_lcr.c:970:19: error: dereferencing pointer to incomplete type
  ast_caller = &ast->caller;
                   ^
chan_lcr.c:990:5: error: dereferencing pointer to incomplete type
  ast->tech_pvt = call;
     ^
chan_lcr.c:991:5: error: dereferencing pointer to incomplete type
  ast->tech = &lcr_tech;
     ^
chan_lcr.c:992:5: error: dereferencing pointer to incomplete type
  ast->fds[0] = call->pipe[0];
     ^
In file included from /usr/include/string.h:633: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 = param->setup.capainfo.bearer_capa;
     ^
chan_lcr.c:1198:5: error: dereferencing pointer to incomplete type
  ast->nativeformats = (options.law=='a')?AST_FORMAT_ALAW:AST_FORMAT_ULAW;
     ^
chan_lcr.c:1199:5: error: dereferencing pointer to incomplete type
  ast->readformat = ast->rawreadformat = ast->nativeformats;
     ^
chan_lcr.c:1199:23: error: dereferencing pointer to incomplete type
  ast->readformat = ast->rawreadformat = ast->nativeformats;
                       ^
chan_lcr.c:1199:44: error: dereferencing pointer to incomplete type
  ast->readformat = ast->rawreadformat = ast->nativeformats;
                                            ^
chan_lcr.c:1200:5: error: dereferencing pointer to incomplete type
  ast->writeformat = ast->rawwriteformat =  ast->nativeformats;
     ^
chan_lcr.c:1200:24: error: dereferencing pointer to incomplete type
  ast->writeformat = ast->rawwriteformat =  ast->nativeformats;
                        ^
chan_lcr.c:1200:47: error: dereferencing pointer to incomplete type
  ast->writeformat = ast->rawwriteformat =  ast->nativeformats;
                                               ^
chan_lcr.c:1217:5: error: dereferencing pointer to incomplete type
  ast->priority = 1;
     ^
chan_lcr.c:1218:5: error: dereferencing pointer to incomplete type
  ast->hangupcause = 0;
     ^
chan_lcr.c: In function lcr_in_proceeding:
chan_lcr.c:1261:8: warning: variable rc set but not used [-Wunused-but-set-variable]
    int rc;
        ^
chan_lcr.c: In function lcr_in_alerting:
chan_lcr.c:1283:8: warning: variable rc set but not used [-Wunused-but-set-variable]
    int rc;
        ^
chan_lcr.c: In function lcr_in_connect:
chan_lcr.c:1306:8: warning: variable rc set but not used [-Wunused-but-set-variable]
    int rc;
        ^
chan_lcr.c: In function lcr_in_disconnect:
chan_lcr.c:1344:6: error: dereferencing pointer to incomplete type
   ast->hangupcause = call->cause;
      ^
chan_lcr.c:1352:9: warning: variable rc set but not used [-Wunused-but-set-variable]
     int rc;
         ^
chan_lcr.c: In function lcr_in_release:
chan_lcr.c:1383:6: error: dereferencing pointer to incomplete type
   ast->hangupcause = call->cause;
      ^
chan_lcr.c:1391:9: warning: variable rc set but not used [-Wunused-but-set-variable]
     int rc;
         ^
In file included from /usr/include/string.h:633:0,
                 from chan_lcr.c:115:
chan_lcr.c: In function lcr_in_information:
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 rc set but not used [-Wunused-but-set-variable]
    int rc;
        ^
chan_lcr.c:1457:10: warning: variable rc set but not used [-Wunused-but-set-variable]
      int rc;
          ^
chan_lcr.c: In function lcr_in_pattern:
chan_lcr.c:1519:8: warning: variable rc set but not used [-Wunused-but-set-variable]
    int rc;
        ^
chan_lcr.c: In function lcr_in_dtmf:
chan_lcr.c:1550:7: warning: variable rc set but not used [-Wunused-but-set-variable]
   int rc;
       ^
chan_lcr.c: In function release_all_calls:
chan_lcr.c:1735:8: warning: variable rc set but not used [-Wunused-but-set-variable]
    int rc;
        ^
chan_lcr.c: In function wake_event:
chan_lcr.c:1884:6: warning: variable rc 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 format_t
 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 lcr_call:
chan_lcr.c:2407:12: error: dereferencing pointer to incomplete type
  call = ast->tech_pvt;
            ^
chan_lcr.c:2435:9: error: dereferencing pointer to incomplete type
  if (ast->transfercapability == INFO_BC_DATAUNRESTRICTED
         ^
chan_lcr.c:2436:9: error: dereferencing pointer to incomplete type
   || ast->transfercapability == INFO_BC_DATARESTRICTED
         ^
chan_lcr.c:2437:9: error: dereferencing pointer to incomplete type
   || ast->transfercapability == INFO_BC_VIDEO)
         ^
chan_lcr.c:2448:9: error: dereferencing pointer to incomplete type
   && ast->transfercapability != INFO_BC_DATAUNRESTRICTED
         ^
chan_lcr.c:2449:9: error: dereferencing pointer to incomplete type
   && ast->transfercapability != INFO_BC_DATARESTRICTED
         ^
chan_lcr.c:2450:9: error: dereferencing pointer to incomplete type
   && ast->transfercapability != INFO_BC_VIDEO)
         ^
chan_lcr.c:2451:6: error: dereferencing pointer to incomplete type
   ast->transfercapability = INFO_BC_DATAUNRESTRICTED;
      ^
In file included from chan_lcr.c:181:0:
chan_lcr.c: In function send_digit_to_chan:
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 CDEBUG
 #define CDEBUG(call, ast, arg...) chan_lcr_log(__LOG_NOTICE, __FILE__, __LINE__,  __FUNCTION__, call, ast, ##arg)
                                                                                                              ^
chan_lcr.c: In function lcr_digit_begin:
chan_lcr.c:2537:12: error: dereferencing pointer to incomplete type
  call = ast->tech_pvt;
            ^
chan_lcr.c: In function lcr_digit_end:
chan_lcr.c:2584:12: error: dereferencing pointer to incomplete type
  call = ast->tech_pvt;
            ^
chan_lcr.c: In function lcr_answer:
chan_lcr.c:2620:12: error: dereferencing pointer to incomplete type
  call = ast->tech_pvt;
            ^
chan_lcr.c: In function lcr_hangup:
chan_lcr.c:2660:12: error: dereferencing pointer to incomplete type
  call = ast->tech_pvt;
            ^
chan_lcr.c:2679:5: error: dereferencing pointer to incomplete type
  ast->tech_pvt = NULL;
     ^
chan_lcr.c:2680:5: error: dereferencing pointer to incomplete type
  ast->fds[0] = -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 lcr_write:
chan_lcr.c:2732:18: error: union ast_frame_subclass has no member named codec
  if (!f->subclass.codec)
                  ^
chan_lcr.c:2741:19: error: union ast_frame_subclass has no member named codec
  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: union ast_frame_subclass has no member named codec
   ast_set_write_format(ast, f->subclass.codec);
                                        ^
chan_lcr.c:2773:11: error: dereferencing pointer to incomplete type
   f = (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 = ast->tech_pvt;
            ^
chan_lcr.c: In function lcr_read:
chan_lcr.c:2823:12: error: dereferencing pointer to incomplete type
  call = ast->tech_pvt;
            ^
chan_lcr.c:2870:24: error: union ast_frame_subclass has no member named codec
  call->read_fr.subclass.codec = ast->nativeformats;
                        ^
chan_lcr.c:2870:36: error: dereferencing pointer to incomplete type
  call->read_fr.subclass.codec = ast->nativeformats;
                                    ^
chan_lcr.c: In function lcr_indicate:
chan_lcr.c:2926:12: error: dereferencing pointer to incomplete type
  call = ast->tech_pvt;
            ^
chan_lcr.c:2951:37: error: dereferencing pointer to incomplete type
     ts = 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 CDEBUG
 #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 = ast->hangupcause;
                                        ^
chan_lcr.c:2978:37: error: dereferencing pointer to incomplete type
     ts = ast_get_indication_tone(ast->zone, "congestion");
                                     ^
chan_lcr.c:3009:37: error: dereferencing pointer to incomplete type
     ts = 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 lcr_fixup:
chan_lcr.c:3109:12: error: dereferencing pointer to incomplete type
  call = ast->tech_pvt;
            ^
chan_lcr.c: In function lcr_send_text:
chan_lcr.c:3135:12: error: dereferencing pointer to incomplete type
  call = ast->tech_pvt;
            ^
chan_lcr.c: In function lcr_bridge:
chan_lcr.c:3179:14: error: dereferencing pointer to incomplete type
  call1 = ast1->tech_pvt;
              ^
chan_lcr.c:3180:14: error: dereferencing pointer to incomplete type
  call2 = ast2->tech_pvt;
              ^
chan_lcr.c:3292:14: error: dereferencing pointer to incomplete type
  call1 = ast1->tech_pvt;
              ^
chan_lcr.c:3293:14: error: dereferencing pointer to incomplete type
  call2 = 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 = AST_FORMAT_ALAW,
  ^
chan_lcr.c:3318:2: warning: (near initialization for lcr_tech.capabilities) [enabled by default]
chan_lcr.c:3320:15: error: lcr_request undeclared here (not in a function)
  .requester = lcr_request,
               ^
chan_lcr.c:3331:2: warning: initialization from incompatible pointer type [enabled by default]
  .call = lcr_call,
  ^
chan_lcr.c:3331:2: warning: (near initialization for lcr_tech.call) [enabled by default]
chan_lcr.c: In function load_module:
chan_lcr.c:3520:24: warning: assignment makes pointer from integer without a cast [enabled by default]
  lcr_tech.capabilities = (options.law=='a')?AST_FORMAT_ALAW:AST_FORMAT_ULAW;
                        ^
make[2]: *** [chan_lcr.po] Error 1
make[2]: Leaving directory `/usr/src/lcr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/lcr'
make: *** [all] Error 2
[root@Elastix4 lcr]#

Solutions for automaticaly start mISDN and ISDn drivers are:
1. made patch for LCR, because there is no patch here http://git.misdn.eu/?p=repositories/lcr.git;a=summary
2. find version of distro/kernel/module which can process this without any syntax error discover (and with that probably also all other errors)
3. manualy made changes instead using LCR script
 
Zuletzt bearbeitet:
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.