Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jul 2015 20:38:23 +0200
From:      David Naylor <dbn@freebsd.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        Bart??omiej Rutkowski <robak@freebsd.org>, FreeBSD Mailing List <freebsd-ports@freebsd.org>, freebsd-python@freebsd.org
Subject:   Re: The mystery of the missing library.
Message-ID:  <1551129.VhJTko9WGt@dragon.local>
In-Reply-To: <20150729060640.GL2072@kib.kiev.ua>
References:  <2883201.vcG9JJBxrl@dragon.local> <2674365.uk0duFZDgI@dragon.local> <20150729060640.GL2072@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1551129.VhJTko9WGt>