From owner-freebsd-isdn@FreeBSD.ORG Thu Jun 25 14:02:34 2009 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E3A81065672 for ; Thu, 25 Jun 2009 14:02:34 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mail.digiware.nl (mail.digiware.nl [80.255.245.173]) by mx1.freebsd.org (Postfix) with ESMTP id 3CDE98FC12 for ; Thu, 25 Jun 2009 14:02:34 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from localhost (localhost.digiware.nl [127.0.0.1]) by mail.digiware.nl (Postfix) with ESMTP id 99933153434; Thu, 25 Jun 2009 16:02:32 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.nl Received: from mail.digiware.nl ([127.0.0.1]) by localhost (rack1.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bj0Wy3AVQkKY; Thu, 25 Jun 2009 16:02:30 +0200 (CEST) Received: from [212.61.27.67] (opteron [212.61.27.67]) by mail.digiware.nl (Postfix) with ESMTP id 62DEE153433; Thu, 25 Jun 2009 16:02:30 +0200 (CEST) Message-ID: <4A43836D.8030706@digiware.nl> Date: Thu, 25 Jun 2009 16:02:21 +0200 From: Willem Jan Withagen Organization: Digiware User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Hans Petter Selasky References: <4A4328B1.8040608@digiware.nl> <200906251301.12966.hselasky@c2i.net> <4A435AB0.6010503@digiware.nl> <200906251316.46347.hselasky@c2i.net> <4A435F2E.4020406@digiware.nl> In-Reply-To: <4A435F2E.4020406@digiware.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-isdn@freebsd.org Subject: Re: Trying to compile chan_capi X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 14:02:34 -0000 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