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: Sat, 11 Jan 2020 03:38:19 +0000 Message-ID: <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]:50896) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iq7c8-0001Pp-19 for bug-guix@gnu.org; Fri, 10 Jan 2020 22:39:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iq7c6-00070c-Ri for bug-guix@gnu.org; Fri, 10 Jan 2020 22:39:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49232) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iq7c6-0006zz-Oh for bug-guix@gnu.org; Fri, 10 Jan 2020 22:39:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iq7c6-0005hn-LT for bug-guix@gnu.org; Fri, 10 Jan 2020 22:39:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:49172) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iq7bV-0001CP-Dr for bug-guix@gnu.org; Fri, 10 Jan 2020 22:38:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iq7bU-0004sN-4L for bug-guix@gnu.org; Fri, 10 Jan 2020 22:38:25 -0500 Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]:41831) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iq7bT-0004n5-U1 for bug-guix@gnu.org; Fri, 10 Jan 2020 22:38:24 -0500 Received: by mail-pg1-x541.google.com with SMTP id x8so1912156pgk.8 for ; Fri, 10 Jan 2020 19:38:23 -0800 (PST) Received: from xenon ([205.175.106.108]) by smtp.gmail.com with ESMTPSA id k12sm4203595pgm.65.2020.01.10.19.38.20 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 10 Jan 2020 19:38:20 -0800 (PST) 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: 39079@debbugs.gnu.org --=-=-= Content-Type: text/plain Hello all, I have GNU Guix installed on a foreign distro, Ubuntu 19.04. I have the sbcl and cl-cffi packages installed from this installation of Guix, and I am attempting to use the CFFI package to load libcurl, as demonstrated in the CFFI tutorial here: https://common-lisp.net/project/cffi/manual/html_node/Tutorial_002dLoading.html However, this fails with a message saying that there is "no such file or directory," even when I attempt referencing the library by its exact name, "libcurl.so.4". There is only one condition in which I can get this to (sort of) work, and that is when I manually add the path "/usr/lib/x86_64-linux-gnu/" to the *foreign-library-directories* list, which is initially NIL. Even then, however, CFFI fails to automatically load any libraries libcurl is dependent on, unless I manually load them by directly referencing their full names as well. This seems like it isn't intended behavior, especially since the CFFI documentation discourages the use of the *foreign-library-directories* variable, and claims that the implementation (SBCL in this case) should be taking care of this. I'm unsure if this is anything to do with Guix not using a "traditional" FSH or not. Does anyone have any thoughts on this? This is my first bug report submitted here, so if I'm missing any needed information, please let me know and I'll try my best to provide it. Thanks, -- Evan --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE6f/SZXb4DLdwy+VR9TDDtKKp8G0FAl4ZQysACgkQ9TDDtKKp 8G2QPhAAgRB83/UQlVUxtwS7crxnzMZOrY1EZgJBIKcjB3z6rizmk4AAJ7sllU2Q 3vhnj2H1CdBbdgJphPV5VjvUj0pB12z/GLKGGMhEujTD2PHI6SAuoxRIEOfE+PWF ClGMEbhxSfo2UonPA+0tzTyZmgOZT5aB93hBjfD+aNdzfSdg8e6XhpTNLO+KKyRB hNN5Worp3Aq9tmmDh1BYN8876U4zz6hYQaCgi/AGDVVVv+wT9RAhsqIwVdcOsM+t iSHc4PybiLERbuYzL2Cf35qMNuJ4UJmu7jJNSX9tgJwZnJokBWpvClj4pLHE6dWa JD0ix/Kgu8DkB3UnFTR12EgUW96LEIjR2Q9BoIs+Lx7VFV540UTgZkDzmsbVykQE 5qLnWxgIooDxif4vDTrJaiLsM7ZZPnYJdbgeZgEgAHC1mC1xEH5g3zFrWnZWPjzo MYa9gFlaYG+3NZ7A4Vu5Rai/sObq461xkEl2/YTxMmwTcxrwdhWSGjGYIisF9adY ENoRXtA+3D4o+qGR5HkdFFQSYMmmxd+1SaW2PYUDAbuIEx0mgBZhkc4YArs63bbO 3hoTi7bQs1L54eBxLtVCOVqXDjsnd1PIZjNlDneh9ni/Y8RVY3XHveSV4LYrZH6l VWFAw6gQ3vSN6fFVbOzGrJ3rkqtKKtv1496NF7O9yV+avOQkwL4= =mGez -----END PGP SIGNATURE----- --=-=-=--