[Asterisk-bsd] compilation problems: chan_capi 1.6.1 @ 6.2-release

Jakub Głazik zytek-lists at nuxi.pl
Tue Jul 3 03:36:31 CDT 2007


Hello list,

I'm trying to set up my ISDN line and connect it to Asterisk.
I have FreeBSD 6.2-RELEASE system running, it's a test machine so I
didn't updated it.

I have succesfully installed isdn4bsd 1.6.1, dmesg below, but I cannot
compile chan_capi 1.6.1 nor SVN version.

ihfc0: <HFC-2BDS0 128K PCI ISDN adapter> port 0xe400-0xe407 mem
0xd8020000-0xd80200ff irq 12 at device 11.0 on pci0 ihfc0: Attaching
I4B controller 0. ihfc0: Creating /dev/ihfc0.X.

i4btrc: 64 ISDN trace device(s) attached
i4brbch: 8 raw B channel access device(s) attached
i4btel: 8 ISDN telephony interface device(s) attached
i4bipr: 8 IP over raw HDLC ISDN device(s) attached (VJ header
compression) i4bisppp: 8 ISDN SyncPPP device(s) attached
i4bctl: ISDN system control port attached
capi: CAPI call control device attached, v2.07
i4b: ISDN call control device attached

It's a GENERIC kernel + isdn4bsd

[root at asterisk ~/isdn/chan_capi/chan_capi_1_6_1]# isdnconfig 
controller 0 = {
  Layer 1:
    description : HFC-2BDS0 128K PCI ISDN adapter
    type        : passive ISDN (Basic Rate, 2xB)
    channels    : 0x3
    serial      : 0xabcd
    power_save  : on
    dialtone    : enabled
    attached    : yes
    PH-state    : F8: Lost framing
  Layer 2:
    driver_type : DRVR_D_CHANNEL
}

Checking Asterisk version...
 * no 'struct ast_codec_pref'
 * found 'struct ast_channel_tech'
 * found 'ast_bridged_channel'
 * found 'ast_bridge_result'
 * found bridge with timeoutms
 * ast_dsp_process() without 'needlock'
 * found 'struct ast_callerid'
 * found 'struct timeval delivery'
 * found 'transfercapability'
 * found 'ast_config_load'
 * found 'AST_CONTROL_HOLD'
 * found 'struct ast_custom_function'
 * found 'devicestate.h'
config.h complete.
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/local/include -I/usr/include/i4b/include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i386  -Wformat -DASTERISKVERSION=\"\" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   -c -o chan_capi.o chan_capi.c
chan_capi.c:89: warning: type defaults to `int' in declaration of `STANDARD_LOCAL_USER'
chan_capi.c:89: warning: data definition has no type or storage class
chan_capi.c:90: warning: type defaults to `int' in declaration of `LOCAL_USER_DECL'
chan_capi.c:90: warning: data definition has no type or storage class
chan_capi.c:1373:2: warning: #warning "What about cd->next after free? Currently 'cd' is not freed by cd_free()."
chan_capi.c: In function `cd_alloc':
chan_capi.c:2346: error: too few arguments to function `ast_channel_alloc'
chan_capi.c:2355: error: structure has no member named `type'
chan_capi.c: In function `cd_set_cep':
chan_capi.c:2497: warning: passing arg 1 of `strlcpy' discards qualifiers from pointer target type
chan_capi.c:2500: warning: passing arg 1 of `strlcpy' discards qualifiers from pointer target type
chan_capi.c: In function `chan_capi_request':
chan_capi.c:3728: warning: passing arg 1 of `snprintf' discards qualifiers from pointer target type
chan_capi.c: In function `__chan_capi_call':
chan_capi.c:3826: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3853: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3887: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3898: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3910: warning: assignment discards qualifiers from pointer target type
chan_capi.c:3925: warning: assignment discards qualifiers from pointer target type
chan_capi.c:4784:2: warning: #warning "Should send a messages, but which?"
chan_capi.c:4937:2: warning: #warning "Cannot do this, because one cannot lock 'pbx_chan' here!"
chan_capi.c:5462:2: warning: #warning "Maybe cannot write these variables here! Locking issue!"
chan_capi.c:5473:2: warning: #warning "Does not handle length == 0xFF"
chan_capi.c: In function `cd_copy_telno_ext':
chan_capi.c:5668: warning: passing arg 1 of `snprintf' discards qualifiers from pointer target type
chan_capi.c: In function `chan_capi_command_exec':
chan_capi.c:6739: warning: implicit declaration of function `LOCAL_USER_ADD'
chan_capi.c:6770: error: structure has no member named `type'
chan_capi.c:6821: warning: implicit declaration of function `LOCAL_USER_REMOVE'
chan_capi.c:6892:2: warning: #warning "TODO: check for calls that never received connect_conf;"
chan_capi.c: At top level:
chan_capi.c:7213: error: unknown field `send_digit' specified in initializer
chan_capi.c:7213: warning: initialization from incompatible pointer type
chan_capi.c:7222: warning: initialization from incompatible pointer type
chan_capi.c:7837: warning: initialization from incompatible pointer type
chan_capi.c: In function `load_module':
chan_capi.c:8001: warning: implicit declaration of function `unload_module'
gmake: *** [chan_capi.o] Error 1
[root at asterisk ~/isdn/chan_capi/chan_capi_1_6_1]# 
[root at asterisk ~/isdn/chan_capi/chan_capi_1_6_1]# cd ../chan_capi
[root at asterisk ~/isdn/chan_capi/chan_capi]# gmake all
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/local/include -I/usr/include/i4b/include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i386  -Wformat -DASTERISKVERSION=\"\" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   -c -o chan_capi.o chan_capi.c
chan_capi.c:1396:2: warning: #warning "What about cd->next after free? Currently 'cd' is not freed by cd_free()."
chan_capi.c: In function `capi_send_connect_resp':
chan_capi.c:3159: warning: implicit declaration of function `CONNECT_RESP_DATE_TIME'
chan_capi.c:3159: error: invalid lvalue in assignment
chan_capi.c:4967:2: warning: #warning "Should send a messages, but which?"
chan_capi.c:5120:2: warning: #warning "Cannot do this, because one cannot lock 'pbx_chan' here!"
chan_capi.c: In function `capi_handle_connect_active_indication':
chan_capi.c:5540: warning: implicit declaration of function `CONNECT_ACTIVE_IND_DATE_TIME'
chan_capi.c:5540: warning: assignment makes pointer from integer without a cast
chan_capi.c:5648:2: warning: #warning "Maybe cannot write these variables here! Locking issue!"
chan_capi.c:5659:2: warning: #warning "Does not handle length == 0xFF"
chan_capi.c:7130:2: warning: #warning "TODO: check for calls that never received connect_conf;"
gmake: *** [chan_capi.o] Error 1


I have also tried SVN version:

[root at asterisk ~/isdn/chan_capi/chan_capi]# gmake all
./create_config.sh "/usr/local/include"
Checking Asterisk structures and files ...
 * no 'struct ast_codec_pref'
 * found 'struct ast_channel_tech'
 * found 'ast_bridged_channel'
 * found 'ast_bridge_result'
 * found bridge with timeoutms
 * ast_dsp_process() without 'needlock'
 * found 'struct ast_callerid'
 * found 'struct timeval delivery'
 * found 'transfercapability'
 * found 'ast_set_read_format'
 * found 'ast_set_write_format'
 * found 'ast_config_load'
 * found 'AST_CONTROL_HOLD'
 * found 'struct ast_custom_function'
 * found 'devicestate.h'
 * found Asterisk version 1.4.x
 * found version header file: /usr/local/include/asterisk/version.h
config.h complete.
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g
-I/usr/local/include -I/usr/include/i4b/include -D_REENTRANT
-D_GNU_SOURCE  -O6 -march=i386  -Wformat -DASTERISKVERSION=\"\"
-Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO   -c -o
chan_capi.o chan_capi.c chan_capi.c:1396:2: warning: #warning "What
about cd->next after free? Currently 'cd' is not freed by cd_free()."
chan_capi.c: In function `capi_send_connect_resp': chan_capi.c:3159:
warning: implicit declaration of function `CONNECT_RESP_DATE_TIME'
chan_capi.c:3159: error: invalid lvalue in assignment
chan_capi.c:4967:2: warning: #warning "Should send a messages, but
which?" chan_capi.c:5120:2: warning: #warning "Cannot do this, because
one cannot lock 'pbx_chan' here!" chan_capi.c: In function
`capi_handle_connect_active_indication': chan_capi.c:5540: warning:
implicit declaration of function `CONNECT_ACTIVE_IND_DATE_TIME'
chan_capi.c:5540: warning: assignment makes pointer from integer
without a cast chan_capi.c:5648:2: warning: #warning "Maybe cannot
write these variables here! Locking issue!" chan_capi.c:5659:2:
warning: #warning "Does not handle length == 0xFF" chan_capi.c:7130:2:
warning: #warning "TODO: check for calls that never received
connect_conf;" gmake: *** [chan_capi.o] Error 1


Any help would be appreciated.

-- 
.: Jakub Głazik,
.: too geek to live, too leet to die ;-) 
.: email & jabber: zytek<at>nuxi.pl



More information about the Asterisk-BSD mailing list