From mboxrd@z Thu Jan 1 00:00:00 1970 From: Evan Straw Subject: bug#39079: SBCL CFFI from Guix unable to find dynamic libraries Date: Mon, 13 Jan 2020 14:11:53 -0800 Message-ID: <87v9pfm2fq.fsf@gmail.com> References: <87ftgm3bo4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41171) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ir7xH-00088a-Sq for bug-guix@gnu.org; Mon, 13 Jan 2020 17:13:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ir7xG-00023v-OK for bug-guix@gnu.org; Mon, 13 Jan 2020 17:13:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:54304) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ir7xG-00023m-Ka for bug-guix@gnu.org; Mon, 13 Jan 2020 17:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ir7xG-0003ZW-Fh for bug-guix@gnu.org; Mon, 13 Jan 2020 17:13:02 -0500 In-Reply-To: <87ftgm3bo4.fsf@gmail.com> Sender: "Debbugs-submit" Resent-Message-ID: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Pierre Niedhardt Cc: 39079@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Pierre, Thanks for your response. >In the meantime, you can add this to your ~/.sbclrc: > >--8<---------------cut here---------------start------------->8--- >(when (ignore-errors (asdf:load-system "cffi")) > ;; Warning: Trailing "/" matters! > (dolist (guix-profile > `(,(when (uiop:directory-exists-p "~/.guix-profile") > (format nil "~a/.guix-profile/lib/" (uiop:getenv "HOME"))) > ,@(mapcar (lambda (d) > (format nil "~a~a/lib/" > (namestring d) > (first (last (pathname-directory d))))) > (uiop:subdirectories "~/.guix-extra-profiles/")))) > (push guix-profile > (symbol-value (find-symbol (string '*foreign-library-directories= *) > (find-package 'cffi)))))) >--8<---------------cut here---------------end--------------->8--- I attempted to add this to my .sbclrc, and added the "/usr/lib/x86_64-linux= -gnu" directory to that list as well. This seems to have made some progress, beca= use now, when I load CFFI, the *foreign-library-directories* variable is popula= ted with a list of directories. Additionally, CFFI is capable of loading librar= ies installed through Guix as well with no issues.=20 However, the thing that still doesn't appear to be working right is loading libraries from the foreign distro. I get the same behavior as before when attempting to load a library under the foreign distro's library directory (/usr/lib/x86_64-linux-gnu): It loads the library itself but fails upon try= ing to load any dependencies, even if they are in the same directory. Ideally, I would just install the libraries I need from Guix, but I specifically want = to interface with a library from the system, in this case PulseAudio (I've just been using libcurl as a test to make sure it works).=20 I did some investigation and tried both installing just CFFI from another source, and then SBCL itself. Installing CFFI from Quicklisp but keeping SB= CL from Guix gave the same behavior and was unable to load dependencies of the library. Installing SBCL from APT and CFFI from Quicklisp was able to load = the library and all dependencies with no issues. From this, I'm wondering if it= 's a problem with SBCL itself instead of CFFI?=20 Do you (or anyone reading this thread) have any thoughts on this? Is this a= bug in the SBCL package, and if so, is there any way to work around it currentl= y?=20 Thanks for the help. =2D- Evan --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE6f/SZXb4DLdwy+VR9TDDtKKp8G0FAl4c6ykACgkQ9TDDtKKp 8G3O+g/+Peg5nCtMZE8ZscQnuIF32GAVPWPIVlr7MHvqMn8oYc9gUQ78uSezxdSw nyGS5UgCw/YmqB4I9dVED6OVHVTsHlcHEPF/PGoEOwNGtagZSG532EfTxbP1RhRX yb03vlY9Z0ZNXBID36JbPYQalMcQ1E//JvdLw7mnkV4txFU5/dtaDGGDSiv6WGpH 7Y3RnhAiDhjF/HwrlVixpHDJgkMsFzEmYIaQe1ljQmffIiz+HSx7d8jK4u+Pj6gh AJMx5wvITQjf0CEXMwk9eb3fcY+w40vGjWhvDpuWLXfOO+cdxvnvWETU4YoWqUsY rdPi8kIkyY+FlpAMu0bEUXoaZ2GIpAEa4CXEdK+I/kIS9PWXzbpOd8986FfOXjIh xDenor9hyMY7mlXxv1JQI9BkRvJDio1amI9z1WSG3zmkkvGAvkrb5SrDygoFNA8L 1FFZPqZVl3v0cxREyBgTUwrqYjbys/wl5Flq/mfhvPvhbU9VlA/EJl0sQudi1uql o1kJ3UfnjeGcp/mmjzF29OeJDzUUyYiSrjobNFrYynx78vHnhb+9swOoP8PROtZb oVJTUoAvXT6AwxBCD77fPaFKxPsxL2G9nlBKJ+3rn81+WOF8tm/oyAU3o5QVeAA/ JXyr4nH2ROIIiad1byxtU8eMX5Bwy/UK7LENBCYdiLBkfWwiX1I= =NiWR -----END PGP SIGNATURE----- --=-=-=--