From owner-freebsd-python@FreeBSD.ORG Mon Jun 27 20:08:21 2011 Return-Path: <owner-freebsd-python@FreeBSD.ORG> 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 31961106564A for <python@freebsd.org>; Mon, 27 Jun 2011 20:08:21 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from amailer.gwdg.de (amailer.gwdg.de [134.76.10.18]) by mx1.freebsd.org (Postfix) with ESMTP id C06428FC0C for <python@freebsd.org>; Mon, 27 Jun 2011 20:08:20 +0000 (UTC) Received: from p5796f134.dip.t-dialin.net ([87.150.241.52] helo=krabat.raven.hur) by mailer.gwdg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from <rhurlin@gwdg.de>) id 1QbHfE-0001pS-BG; Mon, 27 Jun 2011 21:40:08 +0200 Message-ID: <4E08DC97.4000406@gwdg.de> Date: Mon, 27 Jun 2011 21:40:07 +0200 From: Rainer Hurling <rhurlin@gwdg.de> User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; de-DE; rv:1.9.2.18) Gecko/20110622 Thunderbird/3.1.11 MIME-Version: 1.0 To: ports@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated: Id:rhurlin X-Spam-Level: - X-Virus-Scanned: (clean) by exiscan+sophie Cc: python@freebsd.org, "Rintoul, Beech" <beech@freebsd.org> Subject: 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 <freebsd-python.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>, <mailto:freebsd-python-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python> List-Post: <mailto:freebsd-python@freebsd.org> List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>, <mailto:freebsd-python-request@freebsd.org?subject=subscribe> X-List-Received-Date: Mon, 27 Jun 2011 20:08:21 -0000 (Crossposting to python@, because I am not sure which is the right list in 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/saga configure script has a problem with the 'consistency check of all components 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 -I/usr/local/include/python2.7 -L/usr/local/lib conftest.c -L/usr/local/lib/python2.7/config -lpython2.7 -Wl,--export-dynamic -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: libutil.so.9 => /lib/libutil.so.9 (0x413ac000) libm.so.5 => /lib/libm.so.5 (0x415bd000) libthr.so.3 => /lib/libthr.so.3 (0x417de000) libc.so.7 => /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: libutil.so.9 => /lib/libutil.so.9 (0x413ac000) libm.so.5 => /lib/libm.so.5 (0x415bd000) libc.so.7 => /lib/libc.so.7 (0x4084a000) It seems that Python does not include libthr.so.3 in version 2.7.2. Is this 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