From owner-freebsd-python@freebsd.org Wed Jul 29 16:33:49 2015 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87BD39AC272; Wed, 29 Jul 2015 16:33:49 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 73ACB2535; Wed, 29 Jul 2015 16:33:49 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 6BFDA164C; Wed, 29 Jul 2015 16:33:49 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 03739EE57; Wed, 29 Jul 2015 16:33:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id cKjKNx439qYv; Wed, 29 Jul 2015 16:33:45 +0000 (UTC) Subject: Re: The mystery of the missing library. DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 29FCEEE50 To: David Naylor References: <2883201.vcG9JJBxrl@dragon.local> <55B81985.3000601@FreeBSD.org> <1893527.jXAJsDybeg@dragon.local> Cc: FreeBSD Mailing List , freebsd-python@freebsd.org, Bartek Rutkowski From: Bryan Drewery Organization: FreeBSD Message-ID: <55B90067.3010301@FreeBSD.org> Date: Wed, 29 Jul 2015 09:33:43 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1893527.jXAJsDybeg@dragon.local> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2015 16:33:49 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 7/28/15 10:43 PM, David Naylor wrote: > On Tuesday, 28 July 2015 17:08:37 Bryan Drewery wrote: > >> On 7/28/15 11:46 AM, David Naylor wrote: > >>> Why would the shared library be found when using a relative >>> path but not > >>> when using an absolute path? Is this a bug in FreeBSD? > >> > >> What is the output for readelf? > >> > >> readelf -d `which pypy`|grep -i libr > > > > ``` > > # readelf -d `which pypy` | grep -i libr > > 0x0000000000000001 (NEEDED) Shared library: [libpypy-c.so] > > 0x0000000000000001 (NEEDED) Shared library: [libthr.so.3] > > 0x0000000000000001 (NEEDED) Shared library: [libc.so.7] > > 0x000000000000000f (RPATH) Library rpath: [$ORIGIN/] > > 0x000000000000001d (RUNPATH) Library runpath: [$ORIGIN/] > > ``` > I don't know what $ORIGIN is here but it is very suspicious to me (I haven't looked into it). I would have expected an actual path. This is likely the reason for the behavior you are seeing. - -- Regards, Bryan Drewery -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQEcBAEBCgAGBQJVuQBnAAoJEDXXcbtuRpfPg1wH/izfjQfsBQ5Rw5lz3jxhl2rw vEf/BZGwz8rLLoLa1fSR56jQH4KGpGjzmQ3+r0HFVDNuwJty9Wxz6KUxScINFnTF YmZHXQ3aKPUnb4ZGZjB3sCiPLMqmxdFdMbGUfzhNRK6pKiM4JQEtklYvmjOCljry XOf+juiJDq0klD7icRWmfmxSSje0SU7Ct8pP15twCwRGDnQ60vjtu8veU/wvIxHi 9BNdOhp44yh+d6F7qHNLSykfa/gL5k64/B5lYWMdg/Tch83tlqoHhH4Lmxd4+tv7 HUbh2ICjaD+efLrnYzq8HeyCIuw87P5YQJHpCBfngxhh7dCAx+tv3Vfz9g4VwFY= =//3J -----END PGP SIGNATURE-----