From owner-freebsd-ports@freebsd.org Thu Jul 30 18:38:31 2015 Return-Path: Delivered-To: freebsd-ports@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 529E79AB484; Thu, 30 Jul 2015 18:38:31 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B49C91C00; Thu, 30 Jul 2015 18:38:30 +0000 (UTC) (envelope-from naylor.b.david@gmail.com) Received: by wibud3 with SMTP id ud3so31651847wib.1; Thu, 30 Jul 2015 11:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-type; bh=1qw5GYJSU1bVMXHEpT5VlUmJnjPM6ms+ZQcCrezM64U=; b=J8Ts8g+lX/KkbU2a0VfDO0X+A/F/FWTroi+mMZ/94ogdH7MBV/QP297HWBW5E4tpi7 l6uFo8HICY4Mm4SCPFIQe0eD+YARz5kUMQiP6x9nsyUAeQ8MOQro3ZgnOTu0gOScIWbE qMXi+EL90f53A9syqB5RBb0Pc3O52drGGWXWJp09cONdMvVW7JhFlb2FG09T1UkCNQLO VXZZ3LLb6Da1yWiivCtKBXtyJUunQKACvysgktd7V7ppV3V4sY2EFTwT3x6QsnYAikmZ /d1qpO7FFFuexrAoJETGyoEb5dKVk1JhSK1pRiSe8yPaDNzBomm5H/SfRwpxgv0GH9i5 EgaQ== X-Received: by 10.180.75.100 with SMTP id b4mr2164370wiw.74.1438281509103; Thu, 30 Jul 2015 11:38:29 -0700 (PDT) Received: from dragon.local ([197.87.118.153]) by smtp.googlemail.com with ESMTPSA id i6sm3139218wjf.29.2015.07.30.11.38.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jul 2015 11:38:27 -0700 (PDT) Sender: David Naylor From: David Naylor To: Konstantin Belousov Cc: Bart??omiej Rutkowski , FreeBSD Mailing List , freebsd-python@freebsd.org Subject: Re: The mystery of the missing library. Date: Thu, 30 Jul 2015 20:38:23 +0200 Message-ID: <1551129.VhJTko9WGt@dragon.local> Organization: FreeBSD User-Agent: KMail/4.14.3 (FreeBSD/10.2-RC1-p1; KDE/4.14.3; amd64; ; ) In-Reply-To: <20150729060640.GL2072@kib.kiev.ua> References: <2883201.vcG9JJBxrl@dragon.local> <2674365.uk0duFZDgI@dragon.local> <20150729060640.GL2072@kib.kiev.ua> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1709429.tXMDZ2XWDF"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jul 2015 18:38:31 -0000 --nextPart1709429.tXMDZ2XWDF Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Wednesday, 29 July 2015 09:06:40 Konstantin Belousov wrote: > On Wed, Jul 29, 2015 at 07:46:14AM +0200, David Naylor wrote: > > On Tuesday, 28 July 2015 22:05:54 Bart??omiej Rutkowski wrote: > > > I've checked how linux does it and it seems they're (at least Debian) > > > > doing > > > > > static linking - that would fix the issue, whatever it is. Can you > > > adjust > > > the port to do the static instead of dynamic linking binary? > > > > ``` > > # cd /usr/local/bin > > > > # rm pypy > > > > # ln ../pypy-2.6/bin/pypy > > > > # ls -l pypy > > -rwxr-xr-x 2 root wheel 5152 Jul 28 22:10 pypy > > > > # pypy > > Shared object "libpypy-c.so" not found, required by "pypy" > > > > # `which pypy` > > Shared object "libpypy-c.so" not found, required by "pypy" > > ``` > > > > I had a look at Debian and they seem to have quite a large patchset > > applied to pypy. Perhaps they patch it to make it work? > > > > Based on the documentation from pypy it appears they think a symlink > > should work. > > There were relatively recent (as in, Feb 2015) changes to always resolve > symlinks for $ORIGIN expansion, using realpath. The changes are in HEAD > and in stable/10, also in all 10.2 BETAs and RC. > > What version of the userspace do you use ? If not the versions listed > above, try them. Hopefully, $ORIGIN starts behaving for you. I updated my system from 10.1 to 10.2-RC1 and it is fixed :-) ``` # ldconfig -r | grep pypy # pypy Python 2.7.9 (295ee98b69288471b0fcf2e0ede82ce5209eb90b, Jul 28 2015, 18:57:04) [PyPy 2.6.0] on freebsd10 Type "help", "copyright", "credits" or "license" for more information. >>>> # ldd `which pypy` /usr/local/bin/pypy: libpypy-c.so => /usr/local/pypy-2.6/bin//libpypy-c.so (0x800a00000) libthr.so.3 => /lib/libthr.so.3 (0x804537000) libc.so.7 => /lib/libc.so.7 (0x80475b000) libbz2.so.4 => /usr/lib/libbz2.so.4 (0x804b07000) libm.so.5 => /lib/libm.so.5 (0x804d19000) libintl.so.8 => /usr/local/lib/libintl.so.8 (0x804f42000) libz.so.6 => /lib/libz.so.6 (0x80514c000) libssl.so.7 => /usr/lib/libssl.so.7 (0x805362000) libcrypto.so.7 => /lib/libcrypto.so.7 (0x8055ce000) libexpat.so.1 => /usr/local/lib/libexpat.so.1 (0x8059c2000) libffi.so.6 => /usr/local/lib/libffi.so.6 (0x805be8000) libcrypt.so.5 => /lib/libcrypt.so.5 (0x805def000) librt.so.1 => /usr/lib/librt.so.1 (0x80600f000) libutil.so.9 => /lib/libutil.so.9 (0x806215000) libncurses.so.8 => /lib/libncurses.so.8 (0x806427000) ``` --nextPart1709429.tXMDZ2XWDF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAABCgBmBQJVum8fXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ5NDhFQzUxMUEyN0YwMzAyRTc5OUI1M0FB RDYzRkE4REQ2QjJEQTU1AAoJEK1j+o3WstpVgP8QAL1HkxFem4WhapuPJz6iW8jT RyDorviRcNN4OIqeuxJn1krjsdYgDKWs0NT6VePdZwyEQ1iQTq6/apBfApvMGyL+ uSwX02ua7QlcmvUTsIFKwU96BQ1DoHtlFxg+JfeHCFU7BlT0YE6lw1hF80wkf8Tx tC0Q0m32Xg7iUh6IAQ7lMdINTl76lGCesOTAW3L+1WYuBNnHofeiuLEsl+Mp5q/7 hLeIkLnj/HPwe4DR/qYd7wa6tVkXLpdUuV/378cecXCn4aPpFytF9lruhCrCGo/j rD09Wi3I/QXPHXdQVSmbrR2g1zGCXtp4OibtmrOf9ngSYm1+G+l6QlVyTdsUc9uD 4W0BGn69GfzMl4Xdil/CQP9d88WRQIIca383slcs3IrZuP133hvfs5RkzeObeQpO ZclaPY84pfoQO6v8LNWE8hoK7WPajxvpeNr4tgYOvkJZqSRPPaIuHIhz5uvx0kOX 1YJ5HFNb5dt5IWAapA4j7ZDM58DFilZM0A3BZ8KEJfL2bLBEefXmC+XZWNRP09Wu 8wR83wUPQMt6C6aUnMtXtVP+8X7Byli5WujM33Ca7shFqoDdEfDGizceARD+UhJK Ev1D9w8lOlUsONuZO3uYtHCRkjLPT6O7iW8dwPXScutHLRWM9qJHU97JNtEv8fGB VvlvunMbkfq4egbmMfus =zGV7 -----END PGP SIGNATURE----- --nextPart1709429.tXMDZ2XWDF--