[Asterisk-Users] chan_capi on slackware10? cannot compile :-( why?

Armin Schindler
Wed, 24 Aug 2005 12:24:48 -0000

On Wed, 24 Aug 2005, Goran Dj. wrote:
> I'm trying to compile chan_capi-0.5.4 on Slackware 10, but I have bunch
> of errors.
>
> I'm not a linux expert, still :-)
> Before compiling, when I type "modprobe capi" to load capi
module, and
> then "lsmod", i get list of modules:
>
> capi                    6208   0
> kernelcapi             30496   1  [capi]
> capiutil               22272   0  [kernelcapi]
> uhci                   24444   0  (unused)
> usbcore                59308   1  [uhci]
> hisax                 448240   0  (unused)
> isdn                  116684   0  [hisax]
> slhc                    4976   0  [isdn]
> wcfxo                   8384   2
> zaptel                176992   8  [wcfxo]
> ide-scsi                9328   0
> ne                      6672   1
> 8390                    6000   0  [ne]
> crc32                   2880   0  [8390]
> isa-pnp                30736   0  [hisax ne]
>
> So, where is a problem? Should I compile kernel with capi as a part of a
> kernel, not as a module? How to do that?

It's okay to use it as modules. But the cards supported by HiSax do not
provide CAPI interface. I don't know the status of mISDN, but that would
be the driver supporting CAPI.

> Errors when I try to compile chan_capi:
>
> root@localhost:#make
> ./create_config.sh "/usr/include"
> Checking Asterisk version...
>  * no 'struct ast_channel_tech', using old pvt
>  * ast_dsp_process() without 'needlock'
>  * no 'struct ast_callerid'
>  * found 'struct timeval delivery'
>  * no 'transfercapability'
>  * no 'ast_config_load'
> config.h complete.
> gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/i
> nclude -D_REENTRANT -D_GNU_SOURCE -O6 -march=i586
-DASTERISKVERSION=\"\
> " -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   -c -o
> chan_capi.o chan_capi.c
> chan_capi.c:49:20: capi20.h: No such file or directory

You don't have libcapi20 (or the development package of it) installed.

Armin