[Asterisk-Users] Problems compiling CAPI module

igil at itranser.com igil at itranser.com
Tue Sep 21 04:31:39 MST 2004


Hello all,

I a'm having a lot of troubles compiling the CAPI driver for mi AVM card, 
model C2 with two ports.

I´m using Debian stable with kernel 2.4.18 (bf24), but i can't compile 
this driver.

I just followed the steps from 
http://www.voip-info.org/wiki-Asterisk+How+to+connect+with+CAPI

and there we can read that is necesary to select [*]CAPI2.0 filesystem 
support, but in my kernel, doing make menuconfig.

I can`t select this option, this option it is not present on my kernel 
2.4.18


<M> CAPI2.0 support 
[*] Verbose reason code reporting (Kernel size +=7K) 
[*] CAPI2.0 Middleware support (EXPERIMENTAL) 
<M> CAPI2.0 /dev/capi support 
[*] CAPI2.0 filesystem support 
<M> CAPI2.0 capidrv interface support 

The next thing i tried to do, is to compile the package chan_capi, but it 
fails too.
a lot of errors apears when i do make, 

debian-asterisk:/home/ismaelg/chan_capi-0.3.5# make
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g 
-I/usr/src/aster
isk      -D_REENTRANT -D_GNU_SOURCE -O6 -march=i686  -DCAPI_ES -DCAPI_GAIN 
-DCAP
I_SYNC -DUNSTABLE_CVS -Wno-missing-prototypes -Wno-missing-declarations 
-DCRYPTO
   -c -o chan_capi.o chan_capi.c
chan_capi.c:23: asterisk/features.h: No such file or directory
chan_capi.c:24: asterisk/utils.h: No such file or directory
chan_capi.c:62: warning: type defaults to `int' in declaration of 
`AST_MUTEX_DEF
INE_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_DEF
INE_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_DEF
INE_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_DEF
INE_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_DEF
INE_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_DEF
INE_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_DEF
INE_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: `capi_put_lock' undeclared (first use in this function)
chan_capi.c:106: (Each undeclared identifier is reported only once
chan_capi.c:106: for each function it appears in.)
chan_capi.c: In function `capi_echo_canceller':
chan_capi.c:181: `contrlock' undeclared (first use in this function)
chan_capi.c: In function `capi_detect_dtmf':
chan_capi.c:231: `contrlock' undeclared (first use in this function)
chan_capi.c: In function `capi_send_digit':
chan_capi.c:309: `contrlock' undeclared (first use in this function)
chan_capi.c: In function `remove_pipe':
chan_capi.c:481: `pipelock' undeclared (first use in this function)
chan_capi.c: In function `capi_hangup':
chan_capi.c:613: `usecnt_lock' undeclared (first use in this function)
chan_capi.c: In function `capi_call':
chan_capi.c:685: `pipelock' undeclared (first use in this function)
chan_capi.c: In function `capi_read':
chan_capi.c:826: structure has no member named `delivery'
chan_capi.c:827: structure has no member named `delivery'
chan_capi.c: In function `capi_write':
chan_capi.c:899: `capi_send_buffer_lock' undeclared (first use in this 
function)
chan_capi.c: In function `capi_new':
chan_capi.c:1022: structure has no member named `delivery'
chan_capi.c:1023: structure has no member named `delivery'
chan_capi.c:1078: `usecnt_lock' undeclared (first use in this function)
chan_capi.c: In function `capi_request':
chan_capi.c:1130: `iflock' undeclared (first use in this function)
chan_capi.c:1146: `contrlock' undeclared (first use in this function)
chan_capi.c: In function `find_pipe':
chan_capi.c:1181: `pipelock' undeclared (first use in this function)
chan_capi.c: In function `pipe_frame':
chan_capi.c:1214: too few arguments to function `ast_dsp_process'
chan_capi.c: In function `pipe_msg':
chan_capi.c:1347: `contrlock' undeclared (first use in this function)
chan_capi.c:1499: structure has no member named `delivery'
chan_capi.c:1500: structure has no member named `delivery'
chan_capi.c: In function `capi_handle_msg':
chan_capi.c:1974: `iflock' undeclared (first use in this function)
chan_capi.c:2064: `pipelock' undeclared (first use in this function)
chan_capi.c: In function `restart_monitor':
chan_capi.c:2267: `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: `contrlock' undeclared (first use in this function)
chan_capi.c: In function `load_module':
chan_capi.c:2607: `iflock' undeclared (first use in this function)
chan_capi.c: In function `usecount':
chan_capi.c:2820: `usecnt_lock' undeclared (first use in this function)
make: *** [chan_capi.o] Error 1
debian-asterisk:/home/ismaelg/chan_capi-0.3.5#


dmesg output:

CAPI-driver Rev 1.1.4.1: loaded
b1: revision 1.1.4.1
c4: revision 1.1.4.1
kcapi: driver c4 attached
c2: revision 1.1.4.1
kcapi: driver c2 attached
PCI: Found IRQ 11 for device 00:08.0
c2: PCI BIOS reports AVM-C2 at i/o 0xd400, irq 11, mem 0xe7000000
kcapi: Controller 1: c2-d400 attached
kcapi: Controller 2: c2-d400 attached
c2: AVM C2 at i/o 0xd400, irq 11, mem 0xe7000000
c4: 1 C4/C2 card(s) detected
capi20: started up with major 68
kcapi: capi20 attached
capi20: Rev 1.1.4.2: started up with major 68 (no middleware)
b1dma: revision 1.1.4.1
b1pci: revision 1.1.4.1
kcapi: driver b1pci attached

I tried to adjust the /chan_capi/Makefile to fit my system, but it don't 
work. 

Someone could tell me how to install the Capi driver in a debian stable 
system?
Or how could I use my AVM c2 card withj Asterisk and Debian?

Thanks.

Regards from Madrid.

Ismael Gil.
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040921/519b6b49/attachment.htm


More information about the asterisk-users mailing list