Martin Mielke
2004-Sep-20 04:45 UTC
[Asterisk-Users] can't compile chan_capi 0.3.5 under SuSE 9.0
Hi there, the subject says it all... I get the following error messages: ---- mmielke@pbx:~/chan_capi-0.3.5> make gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DCAPI_ES -DCAPI_GAIN -DCAPI_SYNC -DUNSTABLE_CVS -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -c -o chan_capi.o chan_capi.c chan_capi.c:23:31: asterisk/features.h: No such file or directory chan_capi.c:24:28: asterisk/utils.h: No such file or directory In file included from /usr/include/linux/kernelcapi.h:13, from /usr/include/linux/capi.h:18, from chan_capi.c:35: /usr/include/linux/list.h:563:2: warning: #warning "don't include kernel headers in userspace" chan_capi.c:62: warning: type defaults to `int' in declaration of `AST_MUTEX_DEFINE_STATIC' chan_capi.c:62: warning: parameter names (without types) in function declaration chan_capi.c:62: warning: data definition has no type or storage class chan_capi.c:63: warning: type defaults to `int' in declaration of `AST_MUTEX_DEFINE_STATIC' chan_capi.c:63: warning: parameter names (without types) in function declaration chan_capi.c:63: warning: data definition has no type or storage class chan_capi.c:64: warning: type defaults to `int' in declaration of `AST_MUTEX_DEFINE_STATIC' chan_capi.c:64: warning: parameter names (without types) in function declaration chan_capi.c:64: warning: data definition has no type or storage class chan_capi.c:65: warning: type defaults to `int' in declaration of `AST_MUTEX_DEFINE_STATIC' chan_capi.c:65: warning: parameter names (without types) in function declaration chan_capi.c:65: warning: data definition has no type or storage class chan_capi.c:66: warning: type defaults to `int' in declaration of `AST_MUTEX_DEFINE_STATIC' chan_capi.c:66: warning: parameter names (without types) in function declaration chan_capi.c:66: warning: data definition has no type or storage class chan_capi.c:67: warning: type defaults to `int' in declaration of `AST_MUTEX_DEFINE_STATIC' chan_capi.c:67: warning: parameter names (without types) in function declaration chan_capi.c:67: warning: data definition has no type or storage class chan_capi.c:68: warning: type defaults to `int' in declaration of `AST_MUTEX_DEFINE_STATIC' chan_capi.c:68: warning: parameter names (without types) in function declaration chan_capi.c:68: warning: data definition has no type or storage class chan_capi.c: In function `_capi_put_cmsg': chan_capi.c:106: error: `capi_put_lock' undeclared (first use in this function) chan_capi.c:106: error: (Each undeclared identifier is reported only once chan_capi.c:106: error: for each function it appears in.) chan_capi.c: In function `capi_echo_canceller': chan_capi.c:181: error: `contrlock' undeclared (first use in this function) chan_capi.c: In function `capi_detect_dtmf': chan_capi.c:231: error: `contrlock' undeclared (first use in this function) chan_capi.c: In function `capi_send_digit': chan_capi.c:309: error: `contrlock' undeclared (first use in this function) chan_capi.c: In function `remove_pipe': chan_capi.c:481: error: `pipelock' undeclared (first use in this function) chan_capi.c: In function `capi_hangup': chan_capi.c:613: error: `usecnt_lock' undeclared (first use in this function) chan_capi.c: In function `capi_call': chan_capi.c:685: error: `pipelock' undeclared (first use in this function) chan_capi.c: In function `capi_read': chan_capi.c:826: error: structure has no member named `delivery' chan_capi.c:827: error: structure has no member named `delivery' chan_capi.c: In function `capi_write': chan_capi.c:899: error: `capi_send_buffer_lock' undeclared (first use in this function) chan_capi.c: In function `capi_new': chan_capi.c:1022: error: structure has no member named `delivery' chan_capi.c:1023: error: structure has no member named `delivery' chan_capi.c:1078: error: `usecnt_lock' undeclared (first use in this function) chan_capi.c: In function `capi_request': chan_capi.c:1130: error: `iflock' undeclared (first use in this function) chan_capi.c:1146: error: `contrlock' undeclared (first use in this function) chan_capi.c: In function `find_pipe': chan_capi.c:1181: error: `pipelock' undeclared (first use in this function) chan_capi.c: In function `pipe_frame': chan_capi.c:1214: error: too few arguments to function `ast_dsp_process' chan_capi.c: In function `pipe_msg': chan_capi.c:1347: error: `contrlock' undeclared (first use in this function) chan_capi.c:1499: error: structure has no member named `delivery' chan_capi.c:1500: error: structure has no member named `delivery' chan_capi.c: In function `capi_handle_msg': chan_capi.c:1974: error: `iflock' undeclared (first use in this function) chan_capi.c:2064: error: `pipelock' undeclared (first use in this function) chan_capi.c: In function `restart_monitor': chan_capi.c:2267: error: `monlock' undeclared (first use in this function) chan_capi.c:2278: warning: implicit declaration of function `ast_pthread_create' chan_capi.c: In function `capi_info': chan_capi.c:2527: error: `contrlock' undeclared (first use in this function) chan_capi.c: In function `load_module': chan_capi.c:2607: error: `iflock' undeclared (first use in this function) chan_capi.c: In function `usecount': chan_capi.c:2820: error: `usecnt_lock' undeclared (first use in this function) make: *** [chan_capi.o] Error 1 ---- What's going wrong? (well, it doesn't compile...) Is there any chance to find the RPM for chan_capi 0.3.5?? :) TIA, Martin -- Martin Mielke Senior UNIX SysAdmin martin.mielke@thales-is.com THALES Information Systems http://www.thales-is.com/ Tel.: (+34) 91 556 92 62 TimeZone: GMT+1 :-)
Stefan Tichy
2004-Sep-20 13:13 UTC
[Asterisk-Users] Re: can't compile chan_capi 0.3.5 under SuSE 9.0
On Mon, Sep 20, 2004 at 01:45:19PM +0200, Martin Mielke wrote:> mmielke@pbx:~/chan_capi-0.3.5> make > gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g > -I/usr/include -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686 -DCAPI_ES > -DCAPI_GAIN -DCAPI_SYNC -DUNSTABLE_CVS -Wno-missing-prototypes > -Wno-missing-declarations -DCRYPTO -c -o chan_capi.o chan_capi.c > chan_capi.c:23:31: asterisk/features.h: No such file or directory > chan_capi.c:24:28: asterisk/utils.h: No such file or directoryHave a look at the Makefile in the ./chan_capi-0.3.5/ directory: INSTALL_PREFIXASTERISK_HEADER_DIR=$(INSTALL_PREFIX)/usr/include INCLUDE=-I$(ASTERISK_HEADER_DIR) If asterisk has not already been installed, you have to adjust the Makefile. It may be easier first to install asterisk without chan_capi and to build chan_capi in a second step.> Is there any chance to find the RPM for chan_capi 0.3.5?? :)It would be possible to build some asterisk rpm and a matching chan_capi rpm, but as far as I know there is no rpm available for the SuSE 9.0 distribution. -- Stefan Tichy <asterisk@pi4tel.de>