From owner-freebsd-python@FreeBSD.ORG Mon Sep 15 14:42:35 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 A48391065678; Mon, 15 Sep 2008 14:42:35 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1C2608FC1E; Mon, 15 Sep 2008 14:42:34 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.3/8.14.3) with ESMTP id m8FEgUdj072899; Mon, 15 Sep 2008 16:42:33 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.3/8.14.3/Submit) id m8FEgUH7072898; Mon, 15 Sep 2008 16:42:30 +0200 (CEST) (envelope-from olli) Date: Mon, 15 Sep 2008 16:42:30 +0200 (CEST) Message-Id: <200809151442.m8FEgUH7072898@lurza.secnetix.de> From: Oliver Fromme To: freebsd-python@FreeBSD.ORG, brooks@FreeBSD.ORG In-Reply-To: <20080914203403.GC69101@lor.one-eyed-alien.net> X-Newsgroups: list.freebsd-python User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.4-PRERELEASE-20080904 (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Mon, 15 Sep 2008 16:42:33 +0200 (CEST) Cc: 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 14:42:35 -0000 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 Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd cat man du : where Unix geeks go when they die