Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Nov 2009 10:41:36 +0200
From:      David Bruce Naylor <naylor.b.david@gmail.com>
To:        freebsd-python@freebsd.org
Subject:   python breaks some ports when built with pth
Message-ID:  <200911171041.40042.naylor.b.david@gmail.com>

next in thread | raw e-mail | index | archive | help
--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
<pth.h>` 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911171041.40042.naylor.b.david>