From owner-freebsd-isdn@FreeBSD.ORG Thu May 3 06:53:59 2007 Return-Path: X-Original-To: freebsd-isdn@freebsd.org Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 13C9C16A400 for ; Thu, 3 May 2007 06:53:59 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.swip.net [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id A219313C43E for ; Thu, 3 May 2007 06:53:58 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] Received: from [193.71.38.142] (account mc467741@c2i.net HELO [10.42.11.147]) by mailfe10.swip.net (CommuniGate Pro SMTP 5.1.7) with ESMTPA id 310483198; Thu, 03 May 2007 08:53:54 +0200 From: Hans Petter Selasky To: Manfred Usselmann Date: Thu, 3 May 2007 08:53:38 +0200 User-Agent: KMail/1.9.5 References: <20070503011316.e87adacb.usselmann.m@icg-online.de> In-Reply-To: <20070503011316.e87adacb.usselmann.m@icg-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705030853.38803.hselasky@c2i.net> Cc: freebsd-isdn@freebsd.org Subject: Re: Compile problems with chan_capi and latest Asterisk port 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, 03 May 2007 06:53:59 -0000 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@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