From owner-freebsd-isdn@FreeBSD.ORG Thu Jun 25 07:55:22 2009 Return-Path: Delivered-To: isdn@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4DD11065695 for ; Thu, 25 Jun 2009 07:55:22 +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 624998FC1B for ; Thu, 25 Jun 2009 07:55:22 +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 3D79115346A for ; Thu, 25 Jun 2009 09:35:24 +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 2cQajMdL6PxA; Thu, 25 Jun 2009 09:35:22 +0200 (CEST) Received: from [212.61.27.67] (opteron [212.61.27.67]) by mail.digiware.nl (Postfix) with ESMTP id 07CAB153469 for ; Thu, 25 Jun 2009 09:35:22 +0200 (CEST) Message-ID: <4A4328B1.8040608@digiware.nl> Date: Thu, 25 Jun 2009 09:35:13 +0200 From: Willem Jan Withagen Organization: Digiware User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: isdn@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: 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 07:55:23 -0000 I'm trying to get Asterisk working on my FreeBSD server. I've installed ISDN4BSD on an 7.2-RELEASE kernel, and it recognises the card real nice. Further installed asterisk16 and subversion (and some more) from packages. So then But compiling it fails horribly. It just looks like the compiler has an of day... (gcc version 4.2.1 20070719 [FreeBSD]) Any hints on getting CAPI to compile? Thanx, --WjW Asterbsd# cd chan_capi_1_6_1 Asterbsd# gmake all |& less 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 In file included from chan_capi.c:34: /usr/local/include/asterisk/frame.h:647: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' In file included from /usr/local/include/asterisk/channel.h:126, from chan_capi.c:35: /usr/local/include/asterisk/abstract_jb.h:97: error: expected specifier-qualifier-list before 'FILE' In file included from /usr/local/include/asterisk/utils.h:26, from /usr/local/include/asterisk/config.h:30, from /usr/local/include/asterisk/channel.h:143, from chan_capi.c:35: /usr/local/include/asterisk/network.h:55:2: error: #error "don't know how to handle network functions here." In file included from /usr/local/include/asterisk/utils.h:26, from /usr/local/include/asterisk/config.h:30, from /usr/local/include/asterisk/channel.h:143, from chan_capi.c:35: /usr/local/include/asterisk/network.h:59: warning: 'struct in_addr' declared inside parameter list /usr/local/include/asterisk/network.h:59: warning: its scope is only this definition or declaration, which is probably not what you want /usr/local/include/asterisk/network.h:80: warning: 'struct in_addr' declared inside parameter list /usr/local/include/asterisk/network.h:88: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int' In file included from /usr/local/include/asterisk/config.h:30, from /usr/local/include/asterisk/channel.h:143, from chan_capi.c:35: /usr/local/include/asterisk/utils.h:209: error: field 'hp' has incomplete type /usr/local/include/asterisk/utils.h:266: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' /usr/local/include/asterisk/utils.h:279: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' /usr/local/include/asterisk/utils.h:292: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' /usr/local/include/asterisk/utils.h:305: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void' /usr/local/include/asterisk/utils.h:346: error: expected ')' before '*' token /usr/local/include/asterisk/utils.h:434: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_malloc' /usr/local/include/asterisk/utils.h:434: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_malloc' /usr/local/include/asterisk/utils.h:457: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_calloc' /usr/local/include/asterisk/utils.h:457: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_calloc' /usr/local/include/asterisk/utils.h:493: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_realloc' /usr/local/include/asterisk/utils.h:493: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_realloc' /usr/local/include/asterisk/utils.h:520: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_strdup' /usr/local/include/asterisk/utils.h:520: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_strdup' /usr/local/include/asterisk/utils.h:549: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_strndup' /usr/local/include/asterisk/utils.h:549: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ast_strndup' /usr/local/include/asterisk/utils.h:588: error: expected declaration specifiers or '...' before 'va_list' /usr/local/include/asterisk/utils.h:588: error: expected declaration specifiers or '...' before 'va_list' /usr/local/include/asterisk/utils.h: In function '_ast_vasprintf': /usr/local/include/asterisk/utils.h:588: warning: implicit declaration of function 'vasprintf' /usr/local/include/asterisk/utils.h:588: error: 'ap' undeclared (first use in this function) /usr/local/include/asterisk/utils.h:588: error: (Each undeclared identifier is reported only once /usr/local/include/asterisk/utils.h:588: error: for each function it appears in.) In file included from /usr/local/include/asterisk/strings.h:30, from /usr/local/include/asterisk/utils.h:676, From owner-freebsd-isdn@FreeBSD.ORG Thu Jun 25 09:58:33 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 51A851065674 for ; Thu, 25 Jun 2009 09:58:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id D15AF8FC16 for ; Thu, 25 Jun 2009 09:58:32 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=gg2W7PyvkLb8p4ie143lBA==:17 a=CQEhif36EvkBZ0410PAA:9 a=1X21QGtmxSmFBNd4fj-bjRBxHZkA:4 Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1272135909; Thu, 25 Jun 2009 11:58:31 +0200 From: Hans Petter Selasky To: freebsd-isdn@freebsd.org Date: Thu, 25 Jun 2009 11:57:58 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <4A4328B1.8040608@digiware.nl> In-Reply-To: <4A4328B1.8040608@digiware.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906251157.59713.hselasky@c2i.net> Cc: Willem Jan Withagen 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 09:58:33 -0000 On Thursday 25 June 2009 09:35:13 Willem Jan Withagen wrote: > /usr/local/include/asterisk/frame.h You need to compile chan_capi from I4B SVN. --HPS From owner-freebsd-isdn@FreeBSD.ORG Thu Jun 25 10:50:22 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 10F491065675 for ; Thu, 25 Jun 2009 10:50:22 +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 C5F228FC28 for ; Thu, 25 Jun 2009 10:50:21 +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 E4D58153435; Thu, 25 Jun 2009 12:33:13 +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 RcddwUyIXkvE; Thu, 25 Jun 2009 12:33:11 +0200 (CEST) Received: from [212.61.27.67] (opteron [212.61.27.67]) by mail.digiware.nl (Postfix) with ESMTP id A81EA153433; Thu, 25 Jun 2009 12:33:11 +0200 (CEST) Message-ID: <4A43525F.6040207@digiware.nl> Date: Thu, 25 Jun 2009 12:33:03 +0200 From: Willem Jan Withagen Organization: Digiware User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: Hans Petter Selasky , freebsd-isdn@freebsd.org References: <4A4328B1.8040608@digiware.nl> <200906251157.59713.hselasky@c2i.net> In-Reply-To: <200906251157.59713.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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 10:50:22 -0000 Hans Petter Selasky wrote: > On Thursday 25 June 2009 09:35:13 Willem Jan Withagen wrote: >> /usr/local/include/asterisk/frame.h > > You need to compile chan_capi from I4B SVN. You care to elaborate? Because I have the idea that I'm following what's on your building instructions: ----- HOW TO INSTALL CHAN_CAPI ON FREEBSD AND NETBSD ============================================== # # Dependencies: # - Subversion must be installed, see "/usr/ports/devel/subversion" # - Asterisk must be installed, see "/usr/ports/net/asterisk" # # # Download the following tarball: # http://www.turbocat.net/~hselasky/capi4pbx/releases/chan_capi_1_6_1.tar.bz2 # # Extract it using "tar -jxvf chan_capi_1_6_1.tar.bz2", and run: # cd chan_capi_1_6_1 gmake all install # # Example configuration files are located at # "chan_capi_1_6_1/capi.conf" and # "chan_capi_1_6_1/extensions.conf". # ---- --WjW From owner-freebsd-isdn@FreeBSD.ORG Thu Jun 25 11:08:45 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 C6E6B1065672 for ; Thu, 25 Jun 2009 11:08:45 +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 864238FC1B for ; Thu, 25 Jun 2009 11:08:45 +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 C0693153434; Thu, 25 Jun 2009 13:08:44 +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 w9BBB+4O2kVP; Thu, 25 Jun 2009 13:08:41 +0200 (CEST) Received: from [212.61.27.67] (opteron [212.61.27.67]) by mail.digiware.nl (Postfix) with ESMTP id 02010153433; Thu, 25 Jun 2009 13:08:40 +0200 (CEST) Message-ID: <4A435AB0.6010503@digiware.nl> Date: Thu, 25 Jun 2009 13:08:32 +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> <200906251157.59713.hselasky@c2i.net> <4A43525F.6040207@digiware.nl> <200906251301.12966.hselasky@c2i.net> In-Reply-To: <200906251301.12966.hselasky@c2i.net> 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 11:08:46 -0000 Hans Petter Selasky wrote: > Those instructions are a little outdated, reminding me that my homepage needs > an update. > > svn --username anonsvn --password anonsvn \ > checkout svn://svn.turbocat.net/i4b > # > # The following commands will > # install the driver on FreeBSD: > # > cd i4b/trunk/chan_capi > gmake all install Ouch, how trivial...... Going there, doing that: 'mmmm, no not really, but closer; I now get a lot of: In file included from chan_capi20.h:7, from chan_capi.c:77: /usr/include/i4b/include/capi20.h:1960:2: error: invalid suffix "x__dont_use_bzero__use_memset_instead" on integer constant In file included from chan_capi20.h:7, from chan_capi.c:77: /usr/include/i4b/include/capi20.h: In function 'capi_decode': /usr/include/i4b/include/capi20.h:2217: error: expected ';' before string constant /usr/include/i4b/include/capi20.h:2221:8: error: invalid suffix "x__dont_use_bcopy__use_memmove_instead" on integer constant (ad infinitum) Could be because previous attempts have left me with a corrupt set of include files? If so how what do I clean up? --WjW From owner-freebsd-isdn@FreeBSD.ORG Thu Jun 25 11:27:53 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 D45BE106564A for ; Thu, 25 Jun 2009 11:27:53 +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 93E3A8FC1B for ; Thu, 25 Jun 2009 11:27:53 +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 C9FF4153434; Thu, 25 Jun 2009 13:27:52 +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 a+svDm20FzaS; Thu, 25 Jun 2009 13:27:50 +0200 (CEST) Received: from [212.61.27.67] (opteron [212.61.27.67]) by mail.digiware.nl (Postfix) with ESMTP id D3420153433; Thu, 25 Jun 2009 13:27:50 +0200 (CEST) Message-ID: <4A435F2E.4020406@digiware.nl> Date: Thu, 25 Jun 2009 13:27:42 +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> In-Reply-To: <200906251316.46347.hselasky@c2i.net> 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 11:27:54 -0000 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 --WjW From owner-freebsd-isdn@FreeBSD.ORG Thu Jun 25 12:01:46 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 1A7D01065670 for ; Thu, 25 Jun 2009 12:01:46 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.swipnet.se [212.247.155.65]) by mx1.freebsd.org (Postfix) with ESMTP id 96C7E8FC2A for ; Thu, 25 Jun 2009 12:01:45 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=gg2W7PyvkLb8p4ie143lBA==:17 a=OdR5sfXFAAAA:8 a=DXkXY6YITDamgLysin0A:9 a=AYYPO37skIEwbgJZz20A:7 a=vM7xvFHKANt6PQqejX1j5rSJauoA:4 Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe11.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1094569673; Thu, 25 Jun 2009 13:01:42 +0200 From: Hans Petter Selasky To: Willem Jan Withagen Date: Thu, 25 Jun 2009 13:01:12 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <4A4328B1.8040608@digiware.nl> <200906251157.59713.hselasky@c2i.net> <4A43525F.6040207@digiware.nl> In-Reply-To: <4A43525F.6040207@digiware.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906251301.12966.hselasky@c2i.net> 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 12:01:48 -0000 On Thursday 25 June 2009 12:33:03 Willem Jan Withagen wrote: > Hans Petter Selasky wrote: > > On Thursday 25 June 2009 09:35:13 Willem Jan Withagen wrote: > >> /usr/local/include/asterisk/frame.h > > > > You need to compile chan_capi from I4B SVN. > > You care to elaborate? > Because I have the idea that I'm following what's on your building > instructions: ----- > HOW TO INSTALL CHAN_CAPI ON FREEBSD AND NETBSD > ============================================== > > # > # Dependencies: > # - Subversion must be installed, see "/usr/ports/devel/subversion" > # - Asterisk must be installed, see "/usr/ports/net/asterisk" > # > # > # Download the following tarball: > # > > http://www.turbocat.net/~hselasky/capi4pbx/releases/chan_capi_1_6_1.tar.bz2 > > # > # Extract it using "tar -jxvf chan_capi_1_6_1.tar.bz2", and run: > # > > cd chan_capi_1_6_1 > gmake all install > > # > # Example configuration files are located at > # "chan_capi_1_6_1/capi.conf" and > # "chan_capi_1_6_1/extensions.conf". > # > Those instructions are a little outdated, reminding me that my homepage needs an update. svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b # # The following commands will # install the driver on FreeBSD: # cd i4b/trunk/chan_capi gmake all install Enjoy! --HPS From owner-freebsd-isdn@FreeBSD.ORG Thu Jun 25 12:17:23 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 07D1910656CB for ; Thu, 25 Jun 2009 12:17:23 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe15.tele2.se [212.247.155.193]) by mx1.freebsd.org (Postfix) with ESMTP id 8BE628FC22 for ; Thu, 25 Jun 2009 12:17:22 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=gg2W7PyvkLb8p4ie143lBA==:17 a=OdR5sfXFAAAA:8 a=ndaoGXS1AAAA:8 a=65P0hI-22sYS39AGRTAA:9 a=Hb8PwgR6gGvjpZZBJGkA:7 a=fwO8CqklOqv_MLddUivthPBCP3EA:4 Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe15.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 520395034; Thu, 25 Jun 2009 13:17:19 +0200 From: Hans Petter Selasky To: Willem Jan Withagen Date: Thu, 25 Jun 2009 13:16:45 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <4A4328B1.8040608@digiware.nl> <200906251301.12966.hselasky@c2i.net> <4A435AB0.6010503@digiware.nl> In-Reply-To: <4A435AB0.6010503@digiware.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906251316.46347.hselasky@c2i.net> 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 12:17:23 -0000 On Thursday 25 June 2009 13:08:32 Willem Jan Withagen wrote: > Hans Petter Selasky wrote: > > Those instructions are a little outdated, reminding me that my homepage > > needs an update. > > > > svn --username anonsvn --password anonsvn \ > > checkout svn://svn.turbocat.net/i4b > > # > > # The following commands will > > # install the driver on FreeBSD: > > # > > cd i4b/trunk/chan_capi > > gmake all install > > Ouch, how trivial...... > > Going there, doing that: > > 'mmmm, no not really, but closer; > > I now get a lot of: > > In file included from chan_capi20.h:7, > from chan_capi.c:77: > /usr/include/i4b/include/capi20.h:1960:2: error: invalid suffix > "x__dont_use_bzero__use_memset_instead" on integer constant > In file included from chan_capi20.h:7, > from chan_capi.c:77: > /usr/include/i4b/include/capi20.h: In function 'capi_decode': > /usr/include/i4b/include/capi20.h:2217: error: expected ';' before string > constant > /usr/include/i4b/include/capi20.h:2221:8: error: invalid suffix > "x__dont_use_bcopy__use_memmove_instead" on integer constant > (ad infinitum) > > Could be because previous attempts have left me with a corrupt set of > include files? If so how what do I clean up? You need to install I4B from SVN aswell. See: http://www.selasky.org/hans_petter/isdn4bsd/ And the SVN lines. --HPS 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 From owner-freebsd-isdn@FreeBSD.ORG Thu Jun 25 14:23:22 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 274061065672 for ; Thu, 25 Jun 2009 14:23:22 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe02.swip.net [212.247.154.33]) by mx1.freebsd.org (Postfix) with ESMTP id 7509C8FC13 for ; Thu, 25 Jun 2009 14:23:21 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=gg2W7PyvkLb8p4ie143lBA==:17 a=WM7TbkokJZ6rogLshaQA:9 a=G7pgh7Y3ARLzsawmgvbVUXhImh4A:4 Received: from [194.248.135.20] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe02.swip.net (CommuniGate Pro SMTP 5.2.13) with ESMTPA id 1272359903; Thu, 25 Jun 2009 16:23:20 +0200 From: Hans Petter Selasky To: Willem Jan Withagen Date: Thu, 25 Jun 2009 16:22:42 +0200 User-Agent: KMail/1.11.4 (FreeBSD/8.0-CURRENT; KDE/4.2.4; i386; ; ) References: <4A4328B1.8040608@digiware.nl> <4A435F2E.4020406@digiware.nl> <4A43836D.8030706@digiware.nl> In-Reply-To: <4A43836D.8030706@digiware.nl> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906251622.43192.hselasky@c2i.net> 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:23:22 -0000 On Thursday 25 June 2009 16:02:21 Willem Jan Withagen wrote: > Willem Jan Withagen wrote: Hi, I'm not sure when you last did a svn up, but all the errors you are reporting have been fixed recently. Maybe you should "svn status" in your tree and check? We are currently: At revision 1156. --HPS