Compile problems with chan_capi and latest Asterisk port
Hans Petter Selasky
hselasky at c2i.net
Thu May 3 06:53:59 UTC 2007
On Thursday 03 May 2007 01:13, Manfred Usselmann wrote:
> Hi,
>
> it looks like the latest version of CAPI4PBX (svn revision 485) does
> not compile with the latest Asterisk port 1.4.3:
>
> ===[root at icg-pc211] ~/download/i4b/trunk/chan_capi # gmake
> 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
> `cd_alloc':
> chan_capi.c:2376: error: too few arguments to function `ast_channel_alloc'
> chan_capi.c:4963:2: warning: #warning "Should send a messages, but which?"
> chan_capi.c:5116:2: warning: #warning "Cannot do this, because one cannot
> lock 'pbx_chan' here!" chan_capi.c:5644:2: warning: #warning "Maybe cannot
> write these variables here! Locking issue!" chan_capi.c:5655:2: warning:
> #warning "Does not handle length == 0xFF" chan_capi.c:7126:2: warning:
> #warning "TODO: check for calls that never received connect_conf;" gmake:
> *** [chan_capi.o] Error 1
>
Try a "svn update" and see if it does not compile now.
Note also that when you compile the kernel with non-7-current or non-6-stable,
you will have to zero out "/sys/dev/usb/if_ural.c" first, hence it depends on
some code that is not there.
Else you have to add:
device wlan_amrr
To your kernel config file, if you have "device ural" there.
I will try to fix this soon.
--HPS
More information about the freebsd-isdn
mailing list