From owner-freebsd-gnome@FreeBSD.ORG Mon May 2 12:02:14 2011 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E42D106567F; Mon, 2 May 2011 12:02:14 +0000 (UTC) (envelope-from mezz.freebsd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id F16E98FC26; Mon, 2 May 2011 12:02:13 +0000 (UTC) Received: by vxc34 with SMTP id 34so5554414vxc.13 for ; Mon, 02 May 2011 05:02:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=3gZ1wE6J6p8VB7erddDsz5fXbaV5J9vtE43DnHXobaI=; b=HtAMu07tGstNcyxgPSyQCyhn3CH6yfb7SeQBVb/9JKTs7kTu4mvX2Fxcqy7EBwQLOt 2o2bwPR0ydA3EY1gjEbXEE1KY0VlGDUbD3ja2Ibcj4wM4gwil8L2HvVq9mdAwrPnbyK0 E3/4JngjoCL/bcJnHI+iEn6czulJLpK0cNWmc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=rzUXz8UxeXIH2e5FWgNLVQeAys426S0ujcdc6VcbcTUyLmyxyXUfLt3RRqcXTJYF1M XjKzpAYY2CUIv7l4IJnXsj0LU4ONMxK2aEcZX3iRuK99OWlEqgj6mo2whaTyJdlFOks+ jEPhBK8/bIJ3/sT21X9T5EVfgcx1ynUy5xRpE= MIME-Version: 1.0 Received: by 10.220.62.76 with SMTP id w12mr2369719vch.35.1304337728773; Mon, 02 May 2011 05:02:08 -0700 (PDT) Received: by 10.220.180.2 with HTTP; Mon, 2 May 2011 05:02:08 -0700 (PDT) In-Reply-To: <1304337490.85599.41.camel@crashalot.rainbow-runner.nl> References: <20110502141720.df243dd1.itetcu@FreeBSD.org> <1304337490.85599.41.camel@crashalot.rainbow-runner.nl> Date: Mon, 2 May 2011 07:02:08 -0500 Message-ID: From: Jeremy Messenger To: Koop Mast Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: gnome@freebsd.org, python@freebsd.org Subject: Re: gobject-introspection fails to commpile with python2.7 WITH_PTH X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2011 12:02:14 -0000 On Mon, May 2, 2011 at 6:58 AM, Koop Mast wrote: > On Mon, 2011-05-02 at 14:17 +0300, Ion-Mihai Tetcu wrote: >> Hi, >> >> >> Am I tripping on something known here? >> >> Trying to switch to python 2.7 my home dektop, the >> upgrade-site-packages: target fails on gobject-introspectio with: >> >>>>> >> checking whether Python support is requested... checking whether /usr/lo= cal/bin/pythowith:n2.7 version >=3D 2.5... yes >> checking for /usr/local/bin/python2.7 version... 2.7 >> checking for /usr/local/bin/python2.7 platform... freebsd8 >> checking for /usr/local/bin/python2.7 script directory... ${prefix}/lib/= python2.7/site-packages >> checking for /usr/local/bin/python2.7 extension module directory... ${ex= ec_prefix}/lib/python2.7/site-packages >> checking for headers required to compile python extensions... not found >> configure: error: Python headers not found >> =3D=3D=3D> =A0Script "configure" failed unexpectedly. >> >>>>> >> >> The relevant part of the log: >> >>>>> >> configure:13291: checking for /usr/local/bin/python2.7 extension module = directory >> configure:13320: result: ${exec_prefix}/lib/python2.7/site-packages >> configure:13341: checking for headers required to compile python extensi= ons >> configure:13356: cpp -I/usr/local/include -I/usr/local/include/python2.7= conftest.c >> In file included from conftest.c:42: >> /usr/local/include/python2.7/Python.h:166:17: error: pth.h: No such file= or directory >> configure:13356: $? =3D 1 >> configure: failed program was: >> | /* confdefs.h */ >> | #define PACKAGE_NAME "gobject-introspection" >> | #define PACKAGE_TARNAME "gobject-introspection" >> | #define PACKAGE_VERSION "0.9.12" >> | #define PACKAGE_STRING "gobject-introspection 0.9.12" >> | #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?pro= duct=3Dglib&component=3Dintrospection" >> | #define PACKAGE_URL "" >> | #define PACKAGE "gobject-introspection" >> | #define VERSION "0.9.12" >> | #define STDC_HEADERS 1 >> | #define HAVE_SYS_TYPES_H 1 >> | #define HAVE_SYS_STAT_H 1 >> | #define HAVE_STDLIB_H 1 >> | #define HAVE_STRING_H 1 >> | #define HAVE_MEMORY_H 1 >> | #define HAVE_STRINGS_H 1 >> | #define HAVE_INTTYPES_H 1 >> | #define HAVE_STDINT_H 1 >> | #define HAVE_UNISTD_H 1 >> | #define HAVE_DLFCN_H 1 >> | #define LT_OBJDIR ".libs/" >> | #define YYTEXT_POINTER 1 >> | #define SHLIB_SUFFIX "so" >> | #define GOBJECT_INTROSPECTION_LIBDIR "/usr/local/lib" >> | #define GIR_SUFFIX "gir-1.0" >> | #define GIR_DIR "/usr/local/share/gir-1.0" >> | #define SIZEOF_CHAR 1 >> | #define SIZEOF_SHORT 2 >> | #define SIZEOF_INT 4 >> | #define SIZEOF_LONG 8 >> | #define STDC_HEADERS 1 >> | #define HAVE_FCNTL_H 1 >> | #define HAVE_STDLIB_H 1 >> | #define HAVE_STRING_H 1 >> | #define HAVE_MEMCHR 1 >> | #define HAVE_STRCHR 1 >> | #define HAVE_STRSPN 1 >> | #define HAVE_STRSTR 1 >> | #define HAVE_STRTOL 1 >> | #define HAVE_STRTOULL 1 >> | /* end confdefs.h. =A0*/ >> | #include >> configure:13361: result: not found >> configure:13363: error: Python headers not found >> >>>>> >> >> The relevant part of Python.h is: >> >>>>> >> #ifdef HAVE_PTH >> /* GNU pth user-space thread support */ >> #include >> #endif >> >>>>> >> >> Pth lives at: >> /usr/local/include/pth/pth.h >> :) What does your output looks? # python2.7-config --includes I have reported a bug at python@ about python2.6-config doesn't include -L/usr/local/lib/pth. I image for -I/usr/local/include/pth too. > As you probably have guessed, python doesn't do -Iinclude/pth/ so it can'= t find the include. > IMO this is something that should be fixed in the python ports instead > of all python users if python is build by pth support. I think the > python team has some pr's about this. Agreed, but too bad the gobject-introspection doesn't use 'python2.7-config --includes'. I will cook up a patch for gobject-introspection to use 'python2.7-config --includes' this evening. Cheers, Mezz > -Koop > >> BTW, the test for ${PORTUPGRADE_ARGS} in the python port's >> upgrade-site-packages: target will fail if they contain >> switches that test(1) has, ie. '-d'. --=20 mezz.freebsd@gmail.com - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org