From owner-freebsd-python@FreeBSD.ORG Tue Jun 28 01:38:29 2011 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0E92B106564A; Tue, 28 Jun 2011 01:38:29 +0000 (UTC) (envelope-from wenheping@gmail.com) Received: from mail-qw0-f54.google.com (mail-qw0-f54.google.com [209.85.216.54]) by mx1.freebsd.org (Postfix) with ESMTP id A1A128FC0A; Tue, 28 Jun 2011 01:38:28 +0000 (UTC) Received: by qwc9 with SMTP id 9so3461370qwc.13 for ; Mon, 27 Jun 2011 18:38:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=6K64wILo+b5xxvM4pExpL6aLpqxABNEd39pY96z8rAA=; b=rFESmnUDM3tQKl77H58uyuWJ3qiyS2/T1/wyfqWXHiYuq6rjQDahTFWqwrUiAokn1T nTCgiMlxVDFcVIaL/4hB1oTDlPiqw3ZDizPthfH9cJWFFDssU+RrCzm1fRZEYbDaND0K 4mp1NI1nZ412LqE6Dx3awxfxDcHYB90UQNtxI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=hc3qTY12NJ72PXQocn3UdqSTiNC7Ovod5g2dBtziAhfCjecayBhDOWz8S0j9/VZbMb 4x+VPyiHG51+L6dgZOPi/Ao7GWuMxTYHKW2fG2PWgOu+LByHhtItrBNt2J70xTQm3dPi +1iKUeXzD6M9QfNNDErTczaHHeoUKyBxLtpkg= MIME-Version: 1.0 Received: by 10.224.190.130 with SMTP id di2mr5553708qab.177.1309223406687; Mon, 27 Jun 2011 18:10:06 -0700 (PDT) Received: by 10.224.80.206 with HTTP; Mon, 27 Jun 2011 18:10:06 -0700 (PDT) In-Reply-To: <4E08DC97.4000406@gwdg.de> References: <4E08DC97.4000406@gwdg.de> Date: Tue, 28 Jun 2011 09:10:06 +0800 Message-ID: From: wen heping To: Rainer Hurling Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: ports@freebsd.org, python@freebsd.org, "Rintoul, Beech" Subject: Re: lang/python27 and threads option 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, 28 Jun 2011 01:38:29 -0000 It is caused by building libpython without -pthread, I shall try to fix it. I am wondering why there is not a run error when "python -m threading" wen 2011/6/28 Rainer Hurling : > (Crossposting to python@, because I am not sure which is the right list i= n > this case. Sorry, if this is not OK) > > Yesterday math/saga got updated. Now there is a new option for python > bindings to the SAGA GIS api. This worked well with version 2.7.1 of > lang/python27 until yesterday. > > I tried to build math/saga after upgrading to Python version 2.7.2 from > today, but it stops in the configure. As far as I understand the math/sag= a > configure script has a problem with the 'consistency check of all compone= nts > of python development environment', see config.log (line 1347). > > ----------------------------------------- > configure:16297: checking consistency of all components of python > development environment > configure:16323: cc -o conftest -O2 -pipe -I/usr/local/include > -fno-strict-aliasing =C2=A0-I/usr/local/include/python2.7 =C2=A0-L/usr/lo= cal/lib > conftest.c =C2=A0-L/usr/local/lib/python2.7/config -lpython2.7 > -Wl,--export-dynamic =C2=A0-lutil >&5 > /usr/local/lib/libpython2.7.so: undefined reference to `pthread_create' > ----------------------------------------- > > This does not happen, if Python 2.7.2 was build _without_ option 'THREADS= '. > Then SAGA GIS builds fine. > > > Listing the dynamic object dependencies of the Python library, there is a > vital difference between Python 2.7.1 and 2.7.2. > > Python 2.7.1, build _with_ option 'THREADS': > ldd /usr/local/lib/libpython2.7.so > /usr/local/lib/libpython2.7.so: > =C2=A0 =C2=A0 =C2=A0 =C2=A0libutil.so.9 =3D> /lib/libutil.so.9 (0x413ac00= 0) > =C2=A0 =C2=A0 =C2=A0 =C2=A0libm.so.5 =3D> /lib/libm.so.5 (0x415bd000) > =C2=A0 =C2=A0 =C2=A0 =C2=A0libthr.so.3 =3D> /lib/libthr.so.3 (0x417de000) > =C2=A0 =C2=A0 =C2=A0 =C2=A0libc.so.7 =3D> /lib/libc.so.7 (0x4084a000) > > Python 2.7.2, build _with_ option 'THREADS': > ldd /usr/local/lib/libpython2.7.so > /usr/local/lib/libpython2.7.so: > =C2=A0 =C2=A0 =C2=A0 =C2=A0libutil.so.9 =3D> /lib/libutil.so.9 (0x413ac00= 0) > =C2=A0 =C2=A0 =C2=A0 =C2=A0libm.so.5 =3D> /lib/libm.so.5 (0x415bd000) > =C2=A0 =C2=A0 =C2=A0 =C2=A0libc.so.7 =3D> /lib/libc.so.7 (0x4084a000) > > It seems that Python does not include libthr.so.3 in version 2.7.2. Is th= is > intentional? Is there any other way to use the threaded version of Python > now? > > Any help would be really appreciated. > > Thanks in advance, > Rainer Hurling > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >