Trying to compile chan_capi

Willem Jan Withagen wjw at digiware.nl
Thu Jun 25 14:02:34 UTC 2009


Willem Jan Withagen wrote:
> Hans Petter Selasky wrote:
>> You need to install I4B from SVN aswell. See:
>>
>> http://www.selasky.org/hans_petter/isdn4bsd/
>>
>> And the SVN lines.
> 
> That's where I started, but I'm guessing that certain files are now more 
> or less corrupted by my tinkering with different tries.
> 
> I'll clean out that directory and refetch from SVN

A lot less warnings, but still it nags about
	bzero and bcopy
    and replace them by memset and memmove.
Which I did with a macro..

Now I run into more serieus incompatibilities:

in chan_capi.c
     error = capi20_be_alloc_i4b(&cbe_p);

versus:
/usr/include/i4b/include/capi20.h:capi20_is_installed(void);
/usr/include/i4b/include/capi20.h:#define capi20_isinstalled 
capi20_is_installed
/usr/include/i4b/include/capi20.h:#define CAPI20_ISINSTALLED 
capi20_is_installed

And that seems like some includes are still out of whack?

So I copied:
cp ../../../i4b/trunk/i4b/src/sys/i4b/include/* /usr/include/i4b/include/

And that leaves me with warnings like:
chan_capi.c:1045:2: warning: #warning "What about cd->next after free? 
Currently 'cd' is not freed by cd_free()."
chan_capi.c:4680:2: warning: #warning "Should send a messages, but which?"
chan_capi.c:4845:2: warning: #warning "Cannot do this, because one cannot 
lock 'pbx_chan' here!"
chan_capi.c:5372:2: warning: #warning "Maybe cannot write these variables 
here! Locking issue!"
chan_capi.c:5383:2: warning: #warning "Does not handle length == 0xFF"
chan_capi.c:6858:2: warning: #warning "TODO: check for calls that never 
received connect_conf;"
/usr/local/include/asterisk/frame.h:648: warning: 'ast_format_rate' defined 
but not used

Which I'll consider harmless unless things start crashing on me...

--WjW



More information about the freebsd-isdn mailing list