The mystery of the missing library.

David Naylor dbn at freebsd.org
Thu Jul 30 18:38:31 UTC 2015


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)
```
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20150730/b11ba7c4/attachment.bin>


More information about the freebsd-ports mailing list