[asterisk-users] Failing to compile chan_capi

Cosmin Prund cosmin at adicomsoft.ro
Fri Jan 26 00:45:41 MST 2007


This gets fixed using the chan_capi.HEAD, not chan_capi.0.7.1; chan_capi 
compiled right out of the tar.gz, no changes required (the defaults in 
the Makefile are ok)

Cosmin Prund wrote:
> I've got a brand new Eicon Diva Server BRI card and I want to 
> configure it with Asterisk. I managed to get asterisk and zaptel to 
> compile and install, I've compiled and installed the drivers for the 
> Diva card and now I need to compile and install the chan_driver for 
> chan_capi. Unfortunately this fails miserably. I get the following 
> messages:
>
> I'm using: Kernel 2.6.16.37.4, zaptel-1.4.0 and asterisk-1.4.0., 
> chan_capi 0.7.1
>
> //---------------------------------------------------------------------------------- 
>
>
> [root at localhost chan_capi-0.7.1]# make
> ./create_config.sh "/usr/src/asterisk-1.4.0/include"
> Checking Asterisk version... 1.4.0
> * found stringfield in ast_channel
> * found 'indicate' with data
> config.h complete.
> gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g  
> -I/usr/src/asterisk-1.4.0/include -D_REENTRANT -D_GNU_SOURCE  -O6 
> -march=i686  -Wno-missing-prototypes -Wno-missing-declarations 
> -DCRYPTO   -c -o chan_capi.o chan_capi.c
> In file included from chan_capi.c:82:
> chan_capi.h:41:2: warning: #warning If you dont update your libcapi20, 
> some fax features are not available
> chan_capi.c:146: warning: type defaults to `int' in declaration of 
> `STANDARD_LOCAL_USER'
> chan_capi.c:146: warning: data definition has no type or storage class
> chan_capi.c:147: warning: type defaults to `int' in declaration of 
> `LOCAL_USER_DECL'
> chan_capi.c:147: warning: data definition has no type or storage class
> chan_capi.c: In function `capi_new':
> chan_capi.c:2069: error: too few arguments to function 
> `ast_channel_alloc'
> chan_capi.c:2083: error: structure has no member named `type'
> chan_capi.c: In function `pbx_capicommand_exec':
> chan_capi.c:4613: warning: implicit declaration of function 
> `LOCAL_USER_ADD'
> chan_capi.c:4628: warning: implicit declaration of function 
> `LOCAL_USER_REMOVE'
> chan_capi.c: At top level:
> chan_capi.c:5275: error: unknown field `send_digit' specified in 
> initializer
> chan_capi.c:5275: warning: initialization from incompatible pointer type
> make: *** [chan_capi.o] Error 1
>
> //---------------------------------------------------------------------------------- 
>
>
> Since the configuration method is a bit too much for me, here's part 
> of chan_capi "Makefile". I think I've been blind as I haven't found 
> the documentation for WHAT needs to go WHERE in this Makefile...
>
> .PHONY: openpbx
>
> INSTALL_PREFIX=/usr/lib/asterisk
>
> ASTERISK_HEADER_DIR=/usr/src/asterisk-1.4.0/include
>
> MODULES_DIR=/usr/lib/asterisk/modules
>
> CONFIG_DIR=/etc/asterisk
>
>
> //---------------------------------------------------------------------------------- 
>
>
> If anyone has any idea what I'm doing wrong, please help me,
> Thanks,
> Cosmin Prund
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



More information about the asterisk-users mailing list