From owner-freebsd-gnome@FreeBSD.ORG Mon May 2 11:55:13 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 5E827106566B for ; Mon, 2 May 2011 11:55:13 +0000 (UTC) (envelope-from kwm@rainbow-runner.nl) Received: from fep17.mx.upcmail.net (fep17.mx.upcmail.net [62.179.121.37]) by mx1.freebsd.org (Postfix) with ESMTP id CAE1B8FC15 for ; Mon, 2 May 2011 11:55:11 +0000 (UTC) Received: from edge03.upcmail.net ([192.168.13.238]) by viefep17-int.chello.at (InterMail vM.8.01.02.02 201-2260-120-106-20100312) with ESMTP id <20110502115510.KMIM11401.viefep17-int.chello.at@edge03.upcmail.net>; Mon, 2 May 2011 13:55:10 +0200 Received: from [192.168.0.104] ([77.249.46.246]) by edge03.upcmail.net with edge id ebv81g0165JheDZ03bv9CE; Mon, 02 May 2011 13:55:10 +0200 X-SourceIP: 77.249.46.246 From: Koop Mast To: Ion-Mihai Tetcu Date: Mon, 02 May 2011 13:58:08 +0200 In-Reply-To: <20110502141720.df243dd1.itetcu@FreeBSD.org> References: <20110502141720.df243dd1.itetcu@FreeBSD.org> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.0.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Message-ID: <1304337490.85599.41.camel@crashalot.rainbow-runner.nl> Mime-Version: 1.0 X-Cloudmark-Analysis: v=1.1 cv=HQ3F56nxkum+cgCiDL7AXQpbvw7DWrWCBJRnYYnM0Zc= c=1 sm=0 a=LT9jDT0x5YsA:10 a=kj9zAlcOel0A:10 a=aiIX5UjjAAAA:8 a=P4i_zbzQMvt7W55TfWIA:9 a=qv4huRD9EtVrguyxCUkA:7 a=CjuIK1q_8ugA:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 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 11:55:13 -0000 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/local/bin/pythowith:n2.7 version >= 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... ${exec_prefix}/lib/python2.7/site-packages > checking for headers required to compile python extensions... not found > configure: error: Python headers not found > ===> Script "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 extensions > 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: $? = 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?product=glib&component=introspection" > | #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. */ > | #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 > :) 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. -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'.