Goran Dj.
2005-Aug-24 09:22 UTC
[Asterisk-Users] chan_capi on slackware10? cannot compile :-( why?
I'm trying to compile chan_capi-0.5.4 on Slackware 10, but I have bunch of errors. (By the way, can I use chan_capi for ISDN card with winbond w6692cf chipset?) 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? 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 In file included from chan_capi.c:52: chan_capi_app.h:28: error: parse error before "get_ast_capi_MessageNumber" chan_capi_app.h:28: warning: type defaults to `int' in declaration of `get_ast_capi_MessageNumber' chan_capi_app.h:28: warning: data definition has no type or storage class chan_capi_app.h:34: error: parse error before "_capi_put_cmsg" chan_capi_app.h:34: error: parse error before '*' token chan_capi_app.h:34: warning: type defaults to `int' in declaration of `_capi_put_cmsg' chan_capi_app.h:34: warning: data definition has no type or storage class In file included from chan_capi.c:53: chan_capi_pvt.h:133: error: parse error before "_cword" . . . chan_capi.c:2834: error: invalid lvalue in assignment chan_capi.c:2835: error: invalid lvalue in assignment chan_capi.c:2837: error: invalid lvalue in assignment chan_capi.c:2844: error: `error' undeclared (first use in this function) chan_capi.c:2845: error: `CMSG2' undeclared (first use in this function) chan_capi.c:2847: warning: implicit declaration of function `IS_FACILITY_CONF' chan_capi.c:2875: error: subscripted value is neither array nor pointer chan_capi.c:2877: error: subscripted value is neither array nor pointer chan_capi.c:2882: error: subscripted value is neither array nor pointer chan_capi.c:2886: error: subscripted value is neither array nor pointer chan_capi.c:2890: error: subscripted value is neither array nor pointer chan_capi.c:2894: error: subscripted value is neither array nor pointer chan_capi.c:2898: error: subscripted value is neither array nor pointer chan_capi.c:2902: error: subscripted value is neither array nor pointer chan_capi.c:2906: error: subscripted value is neither array nor pointer chan_capi.c:2910: error: subscripted value is neither array nor pointer chan_capi.c:2914: error: subscripted value is neither array nor pointer chan_capi.c:2918: error: subscripted value is neither array nor pointer chan_capi.c:2922: error: subscripted value is neither array nor pointer chan_capi.c: In function `load_module': chan_capi.c:3088: warning: implicit declaration of function `capi20_isinstalled' chan_capi.c:3094: warning: implicit declaration of function `capi20_register' chan_capi.c:3104: warning: implicit declaration of function `capi20_get_profile' chan_capi.c: In function `unload_module': chan_capi.c:3301: warning: implicit declaration of function `capi20_release' make: *** [chan_capi.o] Error 1
Armin Schindler
2005-Aug-24 12:24 UTC
[Asterisk-Users] chan_capi on slackware10? cannot compile :-( why?
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 directoryYou don't have libcapi20 (or the development package of it) installed. Armin
Bob Goddard
2005-Aug-24 13:06 UTC
[Asterisk-Users] chan_capi on slackware10? cannot compile :-( why?
On Wednesday 24 Aug 2005 17:22, Goran Dj. wrote:> I'm trying to compile chan_capi-0.5.4 on Slackware 10, but I have bunch > of errors. > (By the way, can I use chan_capi for ISDN card with winbond w6692cf > chipset?) > > 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:[...]> chan_capi.o chan_capi.c > chan_capi.c:49:20: capi20.h: No such file or directoryThe above is a hint. You should have capi4linux installed. B