From owner-freebsd-python@FreeBSD.ORG Tue Nov 17 09:10:54 2009 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D926106572A for ; Tue, 17 Nov 2009 09:10:54 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-bw0-f213.google.com (mail-bw0-f213.google.com [209.85.218.213]) by mx1.freebsd.org (Postfix) with ESMTP id 8CE328FC16 for ; Tue, 17 Nov 2009 09:10:53 +0000 (UTC) Received: by bwz5 with SMTP id 5so6956711bwz.3 for ; Tue, 17 Nov 2009 01:10:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:organization:to:subject :date:user-agent:mime-version:content-type:content-transfer-encoding :message-id; bh=XqWFLkXdTFoiKa2qnlyYT5Iv0u4bKRx6NYOSQ7CoiUc=; b=FE43W1bJuIgF01B0GMi297VZBA3D3tIex4AdjZN4tqgjOvs4bFUTXyA1lgrlO+h8G+ imYycKtVjKnKnkOJLqHnQjzDTf2afSkDzI1WjWqtf8xun4tOLAifXTYCkjK0iBmIaE5O g7xXpruxnWa5EuPN8xJNAgBAaLJGlRhNXxP+U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:organization:to:subject:date:user-agent:mime-version :content-type:content-transfer-encoding:message-id; b=KaSBpQKIlXbcHCMpqk4yJ7hNw5TLHlDdq+kzsqGZkdbZnteXFfhU5/6T9S5PhQZPgo T6bA8Gz20pkYTycakpRznKRX7lrdJhkdzXSyvFNWCV492k31Zp4X+oIksKK5k2iyQKal 4+cnhgJaZqUUpDqxYTPz4UirFcOsTt9o4p1aA= Received: by 10.204.25.198 with SMTP id a6mr821318bkc.31.1258447287512; Tue, 17 Nov 2009 00:41:27 -0800 (PST) Received: from dragon.dg ([41.0.54.28]) by mx.google.com with ESMTPS id 14sm176638bwz.1.2009.11.17.00.41.25 (version=SSLv3 cipher=RC4-MD5); Tue, 17 Nov 2009 00:41:27 -0800 (PST) From: David Bruce Naylor Organization: Private To: freebsd-python@freebsd.org Date: Tue, 17 Nov 2009 10:41:36 +0200 User-Agent: KMail/1.12.3 (FreeBSD/8.0-PRERELEASE; KDE/4.3.3; amd64; ; ) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1296130.rQXlu668dh"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200911171041.40042.naylor.b.david@gmail.com> Subject: python breaks some ports when built with pth X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2009 09:10:54 -0000 --nextPart1296130.rQXlu668dh Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, I have discovered that when python is built with pth it results in some por= ts=20 breaking. This is (I'm sure) a result of the ports not handling the python= =20 dependency properly. =20 The problems that I have found so far: - port does not link to -pth (e.g. textproc/py-libxml2) - port fails to link due to lack of -fPIC (e.g. www/mod_python3 [see below= =20 for output]) - *ports fail to build as pth.h cannot be found (do not have examples of t= his=20 but I can find some if wanted). =20 *I've found the easiest way to solve this problem is to remove the `#includ= e=20 ` line in Python.h (after it is installed). =20 Is there anyone handling these problems (or trying to eliminate the need fo= r=20 pth) and should I file PR's for the above ports? =20 Regards, David P.S. I'm not subscribed to this list P.P.S. www/mod_python3 output: /usr/local/share/apr/build-1/libtool --silent --mode=3Dlink cc -o mod_pytho= n.la =20 =2Drpath /usr/local/libexec/apache22 -module -avoid-version finfoobject.= lo=20 hlistobject.lo hlist.lo filterobject.lo connobject.lo serverobject.lo util.= lo=20 tableobject.lo requestobject.lo _apachemodule.lo mod_python.lo -Wl,--export- dynamic -L/usr/local/lib/pth -lm=20 /usr/local/lib/python2.6/config/libpython2.6.a -lpth -lutil -lm = =20 *** Warning: Linking the shared library mod_python.la against the *** static library /usr/local/lib/python2.6/config/libpython2.6.a is not=20 portable! /usr/bin/ld: /usr/local/lib/python2.6/config/libpython2.6.a(abstract.o):=20 relocation R_X86_64_32 can not be used when making a shared object; recompi= le=20 with -fPIC =20 /usr/local/lib/python2.6/config/libpython2.6.a: could not read symbols: Bad= =20 value =20 apxs:Error: Command failed with rc=3D65536 = =20 --nextPart1296130.rQXlu668dh Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEABECAAYFAksCYcQACgkQUaaFgP9pFrLTNACdGLZdyC3hhXqJI5HueG34VdfH rlkAniLanW18dqqBRNh/CxdDZITpEQFJ =GTDC -----END PGP SIGNATURE----- --nextPart1296130.rQXlu668dh--