From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 18 13:40:07 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CE1F1065675 for ; Mon, 18 Oct 2010 13:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BE3358FC21 for ; Mon, 18 Oct 2010 13:40:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o9IDe6g3090525 for ; Mon, 18 Oct 2010 13:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o9IDe6oH090524; Mon, 18 Oct 2010 13:40:06 GMT (envelope-from gnats) Resent-Date: Mon, 18 Oct 2010 13:40:06 GMT Resent-Message-Id: <201010181340.o9IDe6oH090524@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Tom Evans Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCCAC106564A for ; Mon, 18 Oct 2010 13:35:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 9025F8FC18 for ; Mon, 18 Oct 2010 13:35:59 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IDZx7j085665 for ; Mon, 18 Oct 2010 13:35:59 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o9IDZxvw085664; Mon, 18 Oct 2010 13:35:59 GMT (envelope-from nobody) Message-Id: <201010181335.o9IDZxvw085664@www.freebsd.org> Date: Mon, 18 Oct 2010 13:35:59 GMT From: Tom Evans To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/151534: lang/python26 + WITH_PTH doesn't install correctly X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 13:40:07 -0000 >Number: 151534 >Category: misc >Synopsis: lang/python26 + WITH_PTH doesn't install correctly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 18 13:40:06 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Tom Evans >Release: 7-STABLE >Organization: Mintel >Environment: FreeBSD strangepork.mintel.co.uk 7.3-STABLE FreeBSD 7.3-STABLE #3: Fri May 14 18:27:38 BST 2010 root@strangepork.mintel.co.uk:/usr/FreeBSD/RELENG_7/obj/usr/FreeBSD/RELENG_7/src/sys/STRANGEPORK i386 >Description: If python is built/installed with the WITH_PTH knob enabled, then the python C header file Python.h explicitly includes . By default, this is installed in /usr/local/include/pth , but this include path is not then typically included in 3rd party modules include path, so any python module that requires compilation fails. Eg, this is for net/py-ldap2: root@strangepork '14:26:55' '/usr/ports/net/py-ldap2' > # make clean all ===> Cleaning for python26-2.6.6 ===> Cleaning for py26-ldap2-2.3.11 ============================================================= You can build py26-ldap2-2.3.11 with the following options: WITH_SASL with (Cyrus) SASL2 support ============================================================= ===> Vulnerability check disabled, database not found ===> License check disabled, port has not defined LICENSE ... ... building '_ldap' extension creating temp.freebsd-7.3-STABLE-i386-2.6 creating temp.freebsd-7.3-STABLE-i386-2.6/Modules cc -DNDEBUG -O2 -fno-strict-aliasing -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -O2 -fno-strict-aliasing -pipe -DLDAP_DEPRECATED -fPIC -DHAVE_LIBLDAP_R -DHAVE_TLS -DLDAPMODULE_VERSION=2.3.11 -IModules -I/usr/local/include -I/usr/include/sasl -I/usr/local/include/python2.6 -c Modules/LDAPObject.c -o temp.freebsd-7.3-STABLE-i386-2.6/Modules/LDAPObject.o In file included from Modules/common.h:10, from Modules/LDAPObject.c:4: /usr/local/include/python2.6/Python.h:163:17: error: pth.h: No such file or directory error: command 'cc' failed with exit status 1 *** Error code 1 Stop in /usr/FreeBSD/CURRENT/ports/net/py-ldap2. This is also discussed on the FreeBSD forums, with the advice there being to symlink or copy the pth.h header into the python include directories! http://forums.freebsd.org/showpost.php?p=63771&postcount=16 >How-To-Repeat: cd /usr/ports/lang/python26 make config (select WITH_PTH) make clean all deinstall reinstall cd /usr/ports/net/py-ldap2 make clean all >Fix: I'm unsure - I tried to fix it by patching Misc/python-config.in to include the pth location, but this seemingly doesn't help matters - the net/py-ldap2 port (or python distutils) must be getting the includes from elsewhere. >Release-Note: >Audit-Trail: >Unformatted: