From owner-freebsd-python@FreeBSD.ORG Thu Jul 3 09:22:28 2014 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A8206722; Thu, 3 Jul 2014 09:22:28 +0000 (UTC) Received: from mailrelay005.isp.belgacom.be (mailrelay005.isp.belgacom.be [195.238.6.171]) by mx1.freebsd.org (Postfix) with ESMTP id 22CA42F1A; Thu, 3 Jul 2014 09:22:27 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AowGAEwgtVNbsUTR/2dsb2JhbABagw1STcYqAYEJF3WEAwEBBTocHgUQCw4KCSUPKh4GE4hGAQjIDxePIgeEQwWWD4RdgUmSQoNFOy8BAQE Received: from 209.68-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.68.209]) by relay.skynet.be with ESMTP; 03 Jul 2014 11:21:14 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.9/8.14.9) with ESMTP id s639LDeR003998; Thu, 3 Jul 2014 11:21:13 +0200 (CEST) (envelope-from tijl@FreeBSD.org) Date: Thu, 3 Jul 2014 11:21:12 +0200 From: Tijl Coosemans To: Kubilay Kocak Subject: Re: ports/169276 Message-ID: <20140703112112.120f0db3@kalimero.tijl.coosemans.org> In-Reply-To: <53B4FC59.9000706@FreeBSD.org> References: <53B4FC59.9000706@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Randy Bush , python@FreeBSD.org X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2014 09:22:28 -0000 On Thu, 03 Jul 2014 16:46:49 +1000 Kubilay Kocak wrote: > On 3/07/2014 4:29 PM, Randy Bush wrote: >> latest python27 on i386 freebsd10 seems to have reopened bug >> ports/169276 >> >> FreeBSD bgpmon0.attn.jp 10.0-RELEASE-p4 FreeBSD 10.0-RELEASE-p4 #0: Tue Jun 3 12:52:18 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >> >> bgpmon0.attn.jp:/usr/ports/lang/python27# make install >> ===> Installing for python27-2.7.6_4 >> ===> python27-2.7.6_4 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so.9) >> ===> Checking if lang/python27 already installed >> ===> Registering installation for python27-2.7.6_4 >> pkg-static: lstat(/usr/ports/lang/python27/work/stage/usr/local/lib/python2.7/lib-dynload/_elementtree.so): No such file or directory >> pkg-static: lstat(/usr/ports/lang/python27/work/stage/usr/local/lib/python2.7/lib-dynload/pyexpat.so): No such file or directory >> *** Error code 74 >> >> Stop. >> make[1]: stopped in /usr/ports/lang/python27 >> *** Error code 1 > > This looks like it may be the result of fallout from: > > http://svnweb.freebsd.org/ports?view=revision&revision=357486 > > The Python build system is *very* sensitive to environment, make and > other build mechanics changes. The ordering of *FLAGS is absolutely > required, and in our case needs to be maintained as a workaround to > avoid this upstream problem with the bundled expat library. > > Can you revert the above change and test the build again for us please. > > CC'ing tijl@ in on this thread for input. The package builds fine on recent head: http://beefy1.isc.freebsd.org/bulk/head-i386-default/2014-06-27_05h00m55s/logs/python27-2.7.6_4.log Also, there's this command in the build log: cc -pthread -Wl,--export-dynamic -o python Modules/python.o -L. -lpython2.7 -L/usr/local/lib -lintl -lutil -lm It is important that -L/usr/local/lib appears after -L. because otherwise -lpython2.7 refers to the installed libpython2.7.so instead the freshly built one. This can only be done by adding -L${LOCALBASE}/lib to LIBS, not to LDFLAGS. Can you send me a full build log that shows the problem?