[Asterisk-Users] Chan_Capi 0.3.4a error

Martin List-Petersen martin+asterisk at list-petersen.net
Wed Jul 14 16:12:18 MST 2004


Are you compiling against stable ?

Check the Makefile .. you need to comment out the line that says
"CFLAGS= -DUNSTABLE_CVS"

Kind regards,
Martin List-Petersen

On Wed, 2004-07-14 at 21:16, bluepuma at gmx.net wrote:
> I just downloaded chan_capi.0.3.4a.tar.gz but it will not compile on my
> system (Suse 9.1).
> 
> I compiled and installed Asterisk and it is running, did I miss a
> configuration or dependency for Chan_Capi somewhere ?
> 
> 
> cheers,
> Mike
> 
> linux:/usr/src/chan_capi-0.3.4a # 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
> In file included from /usr/include/linux/kernelcapi.h:13,
>                  from /usr/include/linux/capi.h:18,
>                  from chan_capi.c:34:
> /usr/include/linux/list.h:604:2: warning: #warning "don't include kernel
> headers in userspace"
> chan_capi.c:61: warning: type defaults to `int' in declaration of
> `AST_MUTEX_DEFINE_STATIC'
> chan_capi.c:61: warning: parameter names (without types) in function
> declaration
> chan_capi.c:61: warning: data definition has no type or storage class
> 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: In function `_capi_put_cmsg':
> chan_capi.c:105: error: `capi_put_lock' undeclared (first use in this
> function)
> chan_capi.c:105: error: (Each undeclared identifier is reported only once
> chan_capi.c:105: error: for each function it appears in.)
> chan_capi.c: In function `capi_echo_canceller':
> chan_capi.c:180: error: `contrlock' undeclared (first use in this function)
> chan_capi.c: In function `capi_detect_dtmf':
> chan_capi.c:230: error: `contrlock' undeclared (first use in this function)
> chan_capi.c: In function `capi_send_digit':
> chan_capi.c:308: error: `contrlock' undeclared (first use in this function)
> chan_capi.c: In function `remove_pipe':
> chan_capi.c:480: error: `pipelock' undeclared (first use in this function)
> chan_capi.c: In function `capi_hangup':
> chan_capi.c:612: error: `usecnt_lock' undeclared (first use in this
> function)
> chan_capi.c: In function `capi_call':
> chan_capi.c:684: error: `pipelock' undeclared (first use in this function)
> chan_capi.c: In function `capi_read':
> chan_capi.c:825: error: structure has no member named `delivery'
> chan_capi.c:826: error: structure has no member named `delivery'
> chan_capi.c: In function `capi_write':
> chan_capi.c:898: error: `capi_send_buffer_lock' undeclared (first use in
> this function)
> chan_capi.c: In function `capi_new':
> chan_capi.c:1021: error: structure has no member named `delivery'
> chan_capi.c:1022: error: structure has no member named `delivery'
> chan_capi.c:1077: error: `usecnt_lock' undeclared (first use in this
> function)
> chan_capi.c: In function `capi_request':
> chan_capi.c:1129: error: `iflock' undeclared (first use in this function)
> chan_capi.c:1145: error: `contrlock' undeclared (first use in this function)
> chan_capi.c: In function `find_pipe':
> chan_capi.c:1180: error: `pipelock' undeclared (first use in this function)
> chan_capi.c: In function `pipe_frame':
> chan_capi.c:1213: error: too few arguments to function `ast_dsp_process'
> chan_capi.c: In function `pipe_msg':
> chan_capi.c:1346: error: `contrlock' undeclared (first use in this function)
> chan_capi.c:1498: error: structure has no member named `delivery'
> chan_capi.c:1499: error: structure has no member named `delivery'
> chan_capi.c: In function `capi_handle_msg':
> chan_capi.c:1973: error: `iflock' undeclared (first use in this function)
> chan_capi.c:2063: error: `pipelock' undeclared (first use in this function)
> chan_capi.c: In function `restart_monitor':
> chan_capi.c:2266: error: `monlock' undeclared (first use in this function)
> chan_capi.c: In function `capi_info':
> chan_capi.c:2526: error: `contrlock' undeclared (first use in this function)
> chan_capi.c: In function `load_module':
> chan_capi.c:2606: error: `iflock' undeclared (first use in this function)
> chan_capi.c: In function `usecount':
> chan_capi.c:2818: error: `usecnt_lock' undeclared (first use in this
> function)
> make: *** [chan_capi.o] Error 1
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list