From owner-freebsd-ports@freebsd.org Wed Jul 29 06:06:46 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 E38449AE748; Wed, 29 Jul 2015 06:06:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 59945D4E; Wed, 29 Jul 2015 06:06:46 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id t6T66fSv048886 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 29 Jul 2015 09:06:41 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua t6T66fSv048886 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id t6T66eGW048885; Wed, 29 Jul 2015 09:06:40 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 29 Jul 2015 09:06:40 +0300 From: Konstantin Belousov To: David Naylor Cc: Bart??omiej Rutkowski , FreeBSD Mailing List , freebsd-python@freebsd.org Subject: Re: The mystery of the missing library. Message-ID: <20150729060640.GL2072@kib.kiev.ua> References: <2883201.vcG9JJBxrl@dragon.local> <2674365.uk0duFZDgI@dragon.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2674365.uk0duFZDgI@dragon.local> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home 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: Wed, 29 Jul 2015 06:06:47 -0000 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.