Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Sep 2008 10:02:03 -0500
From:      Brooks Davis <brooks@FreeBSD.ORG>
To:        Oliver Fromme <olli@lurza.secnetix.de>
Cc:        brooks@FreeBSD.ORG, freebsd-python@FreeBSD.ORG
Subject:   Re: python 2.5 not linking with threads on 7.0 i386?
Message-ID:  <20080915150203.GA24685@lor.one-eyed-alien.net>
In-Reply-To: <200809151442.m8FEgUH7072898@lurza.secnetix.de>
References:  <20080914203403.GC69101@lor.one-eyed-alien.net> <200809151442.m8FEgUH7072898@lurza.secnetix.de>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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 causing
>  > python to hang in state ucond when loaded on one machine and after a bunch of
>  > investigation discovered that while python was set to link with threads, ldd on
>  > python didn't show a threading library:
>  > 
>  > /usr/local/bin/python:
>  >         libutil.so.7 => /lib/libutil.so.7 (0x28157000)
>  >         libm.so.5 => /lib/libm.so.5 (0x28164000)
>  >         libc.so.7 => /lib/libc.so.7 (0x28179000)
>  > 
>  > I replicated this on another i386 machine, but only after discovering this
>  > isn't the case on a couple amd64 machines:
> 
> This is a "works for me" kind of reply.  I'm afraid I don't
> know what could be causing the difference.
> 
> $ ldd /usr/local/bin/python
> /usr/local/bin/python:
>         libutil.so.7 => /lib/libutil.so.7 (0x2814c000)
>         libm.so.5 => /lib/libm.so.5 (0x2815a000)
>         libthr.so.3 => /lib/libthr.so.3 (0x2816f000)
>         libc.so.7 => /lib/libc.so.7 (0x28182000)
> $ uname -srm
> FreeBSD 7.1-PRERELEASE-20080911 i386
> $ grep -v \# /var/db/ports/python25/options
> _OPTIONS_READ=python25-2.5.2_3
> WITH_THREADS=true
> WITHOUT_HUGE_STACK_SIZE=true
> WITH_UCS4=true
> WITH_PYMALLOC=true
> WITH_IPV6=true
> WITHOUT_FPECTL=true

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=python25-2.5.2_2
WITH_THREADS=true
WITHOUT_HUGE_STACK_SIZE=true
WITH_UCS4=true
WITH_PYMALLOC=true
WITH_IPV6=true
WITHOUT_FPECTL=true
[7:47am] brooks@lists (~): ldd /usr/local/bin/python2.5
/usr/local/bin/python2.5:
	libutil.so.7 => /lib/libutil.so.7 (0x28157000)
	libm.so.5 => /lib/libm.so.5 (0x28164000)
	libc.so.7 => /lib/libc.so.7 (0x28179000)

-- Brooks

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (FreeBSD)

iD8DBQFIznjqXY6L6fI4GtQRAt+aAJ0VI5d+/MFYVrF/N99mMfqsDVP7RACeLu5D
eQ33uGOzUI0v6fPZZYYHQRw=
=pMpS
-----END PGP SIGNATURE-----
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080915150203.GA24685>