From owner-freebsd-python@FreeBSD.ORG Mon Sep 15 15:01:15 2008 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 10A9A1065677; Mon, 15 Sep 2008 15:01:15 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (cl-162.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:a1::2]) by mx1.freebsd.org (Postfix) with ESMTP id 9EBEC8FC17; Mon, 15 Sep 2008 15:01:14 +0000 (UTC) (envelope-from brooks@lor.one-eyed-alien.net) Received: from lor.one-eyed-alien.net (localhost [127.0.0.1]) by lor.one-eyed-alien.net (8.14.3/8.14.2) with ESMTP id m8FF23i8025005; Mon, 15 Sep 2008 10:02:04 -0500 (CDT) (envelope-from brooks@lor.one-eyed-alien.net) Received: (from brooks@localhost) by lor.one-eyed-alien.net (8.14.3/8.14.3/Submit) id m8FF23UH025004; Mon, 15 Sep 2008 10:02:03 -0500 (CDT) (envelope-from brooks) Date: Mon, 15 Sep 2008 10:02:03 -0500 From: Brooks Davis To: Oliver Fromme Message-ID: <20080915150203.GA24685@lor.one-eyed-alien.net> References: <20080914203403.GC69101@lor.one-eyed-alien.net> <200809151442.m8FEgUH7072898@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <200809151442.m8FEgUH7072898@lurza.secnetix.de> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (lor.one-eyed-alien.net [127.0.0.1]); Mon, 15 Sep 2008 10:02:04 -0500 (CDT) Cc: brooks@FreeBSD.ORG, freebsd-python@FreeBSD.ORG Subject: Re: python 2.5 not linking with threads on 7.0 i386? 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: Mon, 15 Sep 2008 15:01:15 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 15, 2008 at 04:42:30PM +0200, Oliver Fromme wrote: > Brooks Davis wrote: > > It looks like the python 2.5 port is failing to actually link with a > > threading library on 7.0 i386. I was having issues with psycopg2 caus= ing > > python to hang in state ucond when loaded on one machine and after a b= unch of > > investigation discovered that while python was set to link with thread= s, ldd on > > python didn't show a threading library: > >=20 > > /usr/local/bin/python: > > libutil.so.7 =3D> /lib/libutil.so.7 (0x28157000) > > libm.so.5 =3D> /lib/libm.so.5 (0x28164000) > > libc.so.7 =3D> /lib/libc.so.7 (0x28179000) > >=20 > > I replicated this on another i386 machine, but only after discovering = this > > isn't the case on a couple amd64 machines: >=20 > This is a "works for me" kind of reply. I'm afraid I don't > know what could be causing the difference. >=20 > $ ldd /usr/local/bin/python > /usr/local/bin/python: > libutil.so.7 =3D> /lib/libutil.so.7 (0x2814c000) > libm.so.5 =3D> /lib/libm.so.5 (0x2815a000) > libthr.so.3 =3D> /lib/libthr.so.3 (0x2816f000) > libc.so.7 =3D> /lib/libc.so.7 (0x28182000) > $ uname -srm > FreeBSD 7.1-PRERELEASE-20080911 i386 > $ grep -v \# /var/db/ports/python25/options > _OPTIONS_READ=3Dpython25-2.5.2_3 > WITH_THREADS=3Dtrue > WITHOUT_HUGE_STACK_SIZE=3Dtrue > WITH_UCS4=3Dtrue > WITH_PYMALLOC=3Dtrue > WITH_IPV6=3Dtrue > WITHOUT_FPECTL=3Dtrue I wouldn't think it would matter, but both of the systems I'm seeing this on are running 7.0-RELEASE-p4 which might make a difference. [7:47am] brooks@lists (~): uname -srm FreeBSD 7.0-RELEASE-p4 i386 [7:47am] brooks@lists (~): grep -v \# /var/db/ports/python25/options _OPTIONS_READ=3Dpython25-2.5.2_2 WITH_THREADS=3Dtrue WITHOUT_HUGE_STACK_SIZE=3Dtrue WITH_UCS4=3Dtrue WITH_PYMALLOC=3Dtrue WITH_IPV6=3Dtrue WITHOUT_FPECTL=3Dtrue [7:47am] brooks@lists (~): ldd /usr/local/bin/python2.5 /usr/local/bin/python2.5: libutil.so.7 =3D> /lib/libutil.so.7 (0x28157000) libm.so.5 =3D> /lib/libm.so.5 (0x28164000) libc.so.7 =3D> /lib/libc.so.7 (0x28179000) -- Brooks --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iD8DBQFIznjqXY6L6fI4GtQRAt+aAJ0VI5d+/MFYVrF/N99mMfqsDVP7RACeLu5D eQ33uGOzUI0v6fPZZYYHQRw= =pMpS -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--