Find the answer to your Linux question:
Results 1 to 2 of 2
I tried to install CHAN_CAPI from Dialogic DIVAS installation. The Build succeeds after kernel sources and headers are present, but the make gives massive errors - someone knows what could ...
  1. #1
    Just Joined!
    Join Date
    Jun 2011
    Posts
    2

    failing chan_capi installation in ubuntu server 10.04

    I tried to install CHAN_CAPI from Dialogic DIVAS installation.

    The Build succeeds after kernel sources and headers are present, but the make gives massive errors - someone knows what could be wrong ?

    P.S I do the make via sudo



    this is the part were the capi starts, at the bottom also the failed message:

    Making all in linux
    make[1]: Entering directory `/usr/lib/eicon/divas/src/tmp/telsampl/linux'
    cc -Wall -DUNIX -I. -I.. -I../include -c -O2 -o unix.o unix.c
    unix.c: In function ‘DIVA_CAPI_GET_MESSAGE’:
    unix.c:428: warning: cast from pointer to integer of different size
    unix.c: In function ‘capi_sendf’:
    unix.c:516: warning: dereferencing type-punned pointer will break strict-aliasing rules
    cc -Wall -DUNIX -I. -I.. -I../include -c -O2 -o util.o util.c
    make[1]: Leaving directory `/usr/lib/eicon/divas/src/tmp/telsampl/linux'
    make[1]: Entering directory `/usr/lib/eicon/divas/src/tmp/telsampl'
    gcc -DPACKAGE=\"telsampl\" -DVERSION=\"1.0\" -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_UIO_H=1 -DHAVE_SYS_POLL_H=1 -DHAVE_LINUX_CAPI_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_TERM_H=1 -I. -I. -I./include -I./linux -Wall -DUNIX -O2 -g -O2 -c tel.c
    tel.c:169: warning: pointer targets in initialization differ in signedness
    tel.c:170: warning: pointer targets in initialization differ in signedness
    tel.c:171: warning: pointer targets in initialization differ in signedness
    tel.c:172: warning: pointer targets in initialization differ in signedness
    tel.c:173: warning: pointer targets in initialization differ in signedness
    tel.c:174: warning: pointer targets in initialization differ in signedness
    tel.c:175: warning: pointer targets in initialization differ in signedness
    tel.c:176: warning: pointer targets in initialization differ in signedness
    tel.c:177: warning: pointer targets in initialization differ in signedness
    tel.c:181: warning: pointer targets in initialization differ in signedness
    tel.c:182: warning: pointer targets in initialization differ in signedness
    tel.c:183: warning: pointer targets in initialization differ in signedness
    tel.c: In function ‘main’:
    tel.c:515: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’
    tel.c: In function ‘AutoCall_Connect’:
    tel.c:787: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
    /usr/include/bits/stdio2.h:32: note: expected ‘char * __restrict__’ but argument is of type ‘unsigned char *’
    tel.c:791: warning: pointer targets in passing argument 1 of ‘strncpy’ differ in signedness
    /usr/include/bits/string3.h:120: note: expected ‘char * __restrict__’ but argument is of type ‘unsigned char *’
    tel.c:793: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
    /usr/include/string.h:397: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
    tel.c: In function ‘ProcedureSemaphore1’:
    tel.c:909: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness
    /usr/include/bits/stdio2.h:245: note: expected ‘char * __restrict__’ but argument is of type ‘unsigned char *’
    tel.c:911: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
    /usr/include/string.h:397: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
    tel.c:1501: warning: pointer targets in passing argument 1 of ‘fgets’ differ in signedness
    /usr/include/bits/stdio2.h:245: note: expected ‘char * __restrict__’ but argument is of type ‘unsigned char *’
    tel.c:1503: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
    /usr/include/string.h:397: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
    tel.c:1507: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
    /usr/include/string.h:397: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
    tel.c:1521: warning: unused variable ‘faccount’
    tel.c:909: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
    tel.c:1501: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
    tel.c: In function ‘CapiMessageInput’:
    tel.c:1680: warning: dereferencing type-punned pointer will break strict-aliasing rules
    tel.c:1729: warning: dereferencing type-punned pointer will break strict-aliasing rules
    tel.c:1758: warning: dereferencing type-punned pointer will break strict-aliasing rules
    tel.c:1770: warning: dereferencing type-punned pointer will break strict-aliasing rules
    tel.c:1985: warning: dereferencing type-punned pointer will break strict-aliasing rules
    tel.c:2044: warning: dereferencing type-punned pointer will break strict-aliasing rules
    tel.c:2143: warning: dereferencing type-punned pointer will break strict-aliasing rules
    tel.c:2163: warning: dereferencing type-punned pointer will break strict-aliasing rules
    tel.c:2165: warning: dereferencing type-punned pointer will break strict-aliasing rules
    tel.c:2270: warning: dereferencing type-punned pointer will break strict-aliasing rules
    tel.c:2282: warning: dereferencing type-punned pointer will break strict-aliasing rules
    tel.c: In function ‘CapiStartAlert’:
    tel.c:2437: warning: suggest parentheses around operand of ‘!’ or change ‘|’ to ‘||’ or ‘!’ to ‘~’
    gcc -DPACKAGE=\"telsampl\" -DVERSION=\"1.0\" -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_UIO_H=1 -DHAVE_SYS_POLL_H=1 -DHAVE_LINUX_CAPI_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_TERM_H=1 -I. -I. -I./include -I./linux -Wall -DUNIX -O2 -g -O2 -c waveio.c
    gcc -DPACKAGE=\"telsampl\" -DVERSION=\"1.0\" -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_UIO_H=1 -DHAVE_SYS_POLL_H=1 -DHAVE_LINUX_CAPI_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_TERM_H=1 -I. -I. -I./include -I./linux -Wall -DUNIX -O2 -g -O2 -c divatimer.c
    gcc -DPACKAGE=\"telsampl\" -DVERSION=\"1.0\" -DHAVE_LIBNCURSES=1 -DSTDC_HEADERS=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_UIO_H=1 -DHAVE_SYS_POLL_H=1 -DHAVE_LINUX_CAPI_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_TERM_H=1 -I. -I. -I./include -I./linux -Wall -DUNIX -O2 -g -O2 -c dlist.c
    gcc -g -O2 -o telsampl tel.o waveio.o divatimer.o dlist.o linux/unix.o linux/util.o -lncurses
    gcc -g -O2 -o telsampl_static -static tel.o waveio.o divatimer.o dlist.o linux/unix.o linux/util.o -lncurses
    make[1]: Leaving directory `/usr/lib/eicon/divas/src/tmp/telsampl'
    creating cache ./config.cache
    checking for a BSD compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking whether make sets ${MAKE}... yes
    checking for working aclocal... missing
    checking for working autoconf... missing
    checking for working automake... missing
    checking for working autoheader... missing
    checking for working makeinfo... missing

    and a lot more....


    and finally :

    han_capi.c:7781: warning: excess elements in struct initializer
    chan_capi.c:7781: warning: (near initialization for ‘capi_tech’)
    chan_capi.c:7782: error: unknown field ‘exception’ specified in initializer
    chan_capi.c:7782: warning: excess elements in struct initializer
    chan_capi.c:7782: warning: (near initialization for ‘capi_tech’)
    chan_capi.c:7783: error: unknown field ‘indicate’ specified in initializer
    chan_capi.c:7783: warning: excess elements in struct initializer
    chan_capi.c:7783: warning: (near initialization for ‘capi_tech’)
    chan_capi.c:7784: error: unknown field ‘fixup’ specified in initializer
    chan_capi.c:7784: error: ‘pbx_capi_fixup’ undeclared (first use in this function)
    chan_capi.c:7784: warning: excess elements in struct initializer
    chan_capi.c:7784: warning: (near initialization for ‘capi_tech’)
    chan_capi.c:7785: error: unknown field ‘setoption’ specified in initializer
    chan_capi.c:7785: warning: excess elements in struct initializer
    chan_capi.c:7785: warning: (near initialization for ‘capi_tech’)
    chan_capi.c:7786: error: unknown field ‘devicestate’ specified in initializer
    chan_capi.c:7786: error: ‘pbx_capi_devicestate’ undeclared (first use in this function)
    chan_capi.c:7786: warning: excess elements in struct initializer
    chan_capi.c:7786: warning: (near initialization for ‘capi_tech’)
    chan_capi.c:7793: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    chan_capi.c:7823: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    chan_capi.c:7960: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    chan_capi.c:8010: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    chan_capi.c:8192: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    chan_capi.c:8299: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    chan_capi.c:8371: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    chan_capi.c:8382:30: error: macro "ast_config_load" requires 2 arguments, but only 1 given
    chan_capi.c:8454: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    chan_capi.c:8465: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    chan_capi.c:8470: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
    /usr/include/asterisk/logger.h:87: error: old-style parameter declarations in prototyped function definition
    chan_capi.c:8472: error: expected ‘{’ at end of input
    make: *** [chan_capi.o] Error 1
    #+ LOG INFO: failed to build chan_capi)

  2. #2
    Just Joined!
    Join Date
    Jun 2011
    Posts
    2
    finally found the solution myself : all asterisk checks in the Dialogic Build file have to be removed if asterisk version is 1.8, because asterisk 1.8 and chan_capi are not compatible

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...