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 ...
- 06-11-2011 #1Just 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)
- 06-12-2011 #2Just 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


Reply With Quote