From owner-freebsd-ports@FreeBSD.ORG Wed Aug 26 08:03:03 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C927D106568C for ; Wed, 26 Aug 2009 08:03:03 +0000 (UTC) (envelope-from david@vizion2000.net) Received: from dns1.vizion2000.net (77-99-36-42.cable.ubr04.chap.blueyonder.co.uk [77.99.36.42]) by mx1.freebsd.org (Postfix) with ESMTP id 450E88FC24 for ; Wed, 26 Aug 2009 08:03:03 +0000 (UTC) Received: from sleuth64 (unknown [192.168.15.142]) by dns1.vizion2000.net (Postfix) with ESMTP id BA52134D41D; Wed, 26 Aug 2009 09:03:00 +0100 (BST) From: "David Southwell" To: References: <523F3CC4B9FA4A9BB1929870625BE280@sleuth64> <4A943295.8090707@FreeBSD.org> Date: Wed, 26 Aug 2009 01:02:50 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcoltS5TytHH79uWTrW3RBwT0jY6RwAFsYuw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4325 In-Reply-To: <4A943295.8090707@FreeBSD.org> Cc: gnome@freebsd.org, freebsd-ports@freebsd.org Subject: RE: libical config error Cannot find Python.h X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2009 08:03:04 -0000 > -----Original Message----- > From: owner-freebsd-ports@freebsd.org > [mailto:owner-freebsd-ports@freebsd.org] On Behalf Of Greg Larkin > Sent: 25 August 2009 11:51 > To: david@vizion2000.net > Cc: gnome@freebsd.org; freebsd-ports@freebsd.org > Subject: Re: libical config error Cannot find Python.h > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > david@vizion2000.net wrote: > > On a freebsd 7.2-RELEASE-p3 amd64 compiled August 20 12.54.34 BST > > > > Python.h is in > > /usr/local/include/python2.6/ > > > > devel/libical build fails during configure: > > > > checking for swig... (cached) true > > checking for python2.6/Python.h usability... no checking > > python2.6/Python.h presence... no checking for > python2.6/Python.h... > > no > > configure: error: Can't find python header files ===> Script > > "configure" failed unexpectedly. > > > > In the libical/work/libical-0.43/config.log > > The following lines appear to be significant > > > > "In file included from conftest.c:81: > > /usr/local/include/python2.6/Python.h:168:17: error: pth.h: No such > > file or directory > > configure:21819: $? = 1 > > configure: failed program was: > > | /* confdefs.h. */ > > .. > > .. > > configure:21842: result: no > > configure:21846: checking python2.6/Python.h presence . > > . > > . > > configure:21882: result: no > > configure:21917: checking for python2.6/Python.h > > configure:21924: result: no > > configure:21931: error: Cant find python header files > > > > ___________________ > > > > pth.h is in > > > > /usr/local/include/pth/pth.h > > > > Solving this is urgent for me as a number of ports I need are > > dependent upon this one. I have just completed an upgrade > to p3 and am > > also upgrading all the ports. > > > > > > > > Thanks in advance > > > > David > > Hi David, > > It appears that you have GNU Pth enabled in your python 2.6 > build. Is that required for your site? If not, I would try > disabling it, rebuilding python and then rebuilding libical. > > If you do need GNU Pth in your python build, you can get past > the libical configuration phase with this patch: > http://people.freebsd.org/~glarkin/diffs/libical-Python_h-fix.diff > > However, the compilation still fails in icalmemory.c due to > conflicting definitions for the pthread functions. I haven't > figured that one out, and I've cc'd the port maintainer team > in case any of them have any ideas. > > Regards, > Greg > - -- > Greg Larkin > > http://www.FreeBSD.org/ - The Power To Serve > http://www.sourcehosting.net/ - Ready. Set. Code. > http://twitter.com/sourcehosting/ - Follow me, follow you Thanks Greg -- as usual your are right on the button. I have done as you suggested and disabled the GNU Pth which I would have prefered to have but can get round for a while. devel/libical then built fine as did a rebuild of deskutils/alacarte which also suffers from the same problems. I would be interested to hear of a solution to the GNU Pth limitation . Until that is solved maybe the maintainer could consider dropping the option so none else falls into the trap!! Thanks again for your thoughtfulness and insight david