From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Meehan Newsgroups: gmane.lisp.guile.user Subject: Re: dynamic-link sadness Date: Tue, 23 Feb 2021 08:18:33 -0600 Message-ID: References: <4E0432AB-3BDC-4094-A1F2-A4336D4D29A9@gmail.com> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8425"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Tim Van den Langenbergh Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Feb 23 15:18:48 2021 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lEYWW-00024V-2F for guile-user@m.gmane-mx.org; Tue, 23 Feb 2021 15:18:48 +0100 Original-Received: from localhost ([::1]:48316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEYWV-0008Jt-1I for guile-user@m.gmane-mx.org; Tue, 23 Feb 2021 09:18:47 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEYWL-0008Jn-I5 for guile-user@gnu.org; Tue, 23 Feb 2021 09:18:37 -0500 Original-Received: from mail-qv1-xf32.google.com ([2607:f8b0:4864:20::f32]:37385) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEYWJ-0005v5-Ug for guile-user@gnu.org; Tue, 23 Feb 2021 09:18:37 -0500 Original-Received: by mail-qv1-xf32.google.com with SMTP id s12so7151247qvq.4 for ; Tue, 23 Feb 2021 06:18:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=gp4jiIq8o3sPYxth0QBnqvleus9UvYhwE+v8iWfNkzU=; b=kSgMFfQxc868KoYL3s/vd5Mv5lSfJhSj2ZHUFhwRwcVlNbDvX8zJXuwib/NNZ5A3cb nOrUW8ZY7Ul6c+zUqsE74zq5w5YQCLCsObOP02UV/MZWtfESiarm0CPgvqXg5B6Yy7Hx 8wd+19XzqbOrVJN78WapgI7yqNQkCTOqNMbh9kBTN4vGazn/p24QPuvzuQoOHrsCSa4V 44gfO5ZKd+loA5FTv2ODFdwtwkv+OYzgW80+2UFsTrJtjw1AV2sPc5XNRdHSY87wAxpN 0TGfHDn5FLAwfbmIypAyKbyvVU71in7ftwmz50nV/Lxdgrw4sXJmDkrQsRlKl/X1SRGE vF2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=gp4jiIq8o3sPYxth0QBnqvleus9UvYhwE+v8iWfNkzU=; b=L4Szyi3135NoqrPj2DIE0EYy00i01NeNGb7nwdnu1Ty90/otGXG1Xo5tRFJw2NbHv6 y1vIc/k3K5OWHUkZJkimT9RN6rmZ/GaIIy/y4h8b1ibiecNAxQYJvdO0moC8m1PcjJH6 4BjKxuUVWs85wJCjoLo3zMakLbmR3TGSCCYEztJ9Kx4FAgApZvuF6x4BSF0PJaYQYhZC tKv7Ssbj/9yUW16u2VYRo2Q9yAG9K6TZX79FtOwG5T7L4MFQG6R1wh7dd+Q1jBaYdC5h yUIsYBUbwIrtHsO667J3N+1nKgeatCdO3jwIEq2doDNA5JeM83zUiIGYNVgshYGpe35U Winw== X-Gm-Message-State: AOAM533Xi7vtdJnjYaMjD3nUU9QsGEEflYHjMvV0bqb0h0qqEcRxkJqg feAT23B/nXsR8r4faS7huE0k7fh1NOs= X-Google-Smtp-Source: ABdhPJyEhRO0WVQOMs4P3GWFSiUWzzZ1y+XIl2u5jCn4U/aoho8Y4cKZgWFx7itT4MTnrXNIoNIiXw== X-Received: by 2002:a05:6214:9b2:: with SMTP id du18mr25201803qvb.15.1614089914451; Tue, 23 Feb 2021 06:18:34 -0800 (PST) Original-Received: from [10.110.0.68] ([69.73.19.42]) by smtp.gmail.com with ESMTPSA id v135sm14917061qka.98.2021.02.23.06.18.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Feb 2021 06:18:33 -0800 (PST) In-Reply-To: <4E0432AB-3BDC-4094-A1F2-A4336D4D29A9@gmail.com> X-Mailer: iPhone Mail (18D52) Received-SPF: pass client-ip=2607:f8b0:4864:20::f32; envelope-from=btmeehan@gmail.com; helo=mail-qv1-xf32.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:17310 Archived-At: (It is a bit weird writing to =E2=80=9CTim,=E2=80=9D but my last job there w= ere three =E2=80=9CTim=E2=80=9Ds ... even weirder) I figured it out. The string argument on my system was the path to a symlink= , the actual file was =E2=80=9C/usr/lib/x86_64-linux-gnu/libm-2.32.so=E2=80=9D= so it won=E2=80=99t follow symlinks to load libraries. > On Feb 23, 2021, at 06:45, Tim Meehan wrote: >=20 > =EF=BB=BFSorry, I should have said that it was Linux Mint Ulyssa, installe= d from =E2=80=9Capt=E2=80=9D. I have another system I can try it on later to= day. >=20 >>> On Feb 23, 2021, at 06:21, Tim Van den Langenbergh wro= te: >>>=20 >>> =EF=BB=BFOn Tuesday, 23 February 2021 04:49:34 CET you wrote: >>> Ok - I think that I am missing something important that will allow me to= >>> dynamically load libraries. :( >>> Is this an environment variable or something? >>>=20 >>> me@expensive:/usr$ find . -type f -name "libm\.*" -print >>> ./lib/x86_64-linux-gnu/libm.so >>> ./lib/x86_64-linux-gnu/libm.a >>> me@expensive:/usr$ guile >>> GNU Guile 3.0.1 >>> Copyright (C) 1995-2020 Free Software Foundation, Inc. >>>=20 >>> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. >>> This program is free software, and you are welcome to redistribute it >>> under certain conditions; type `,show c' for details. >>>=20 >>> Enter `,help' for help. >>> scheme@(guile-user)> (dynamic-link "libm") >>> ice-9/boot-9.scm:1669:16: In procedure raise-exception: >>> In procedure dynamic-link: file: "libm", message: "file not found" >>>=20 >>> Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. >>> scheme@(guile-user) [1]> ,q >>> scheme@(guile-user)> (dynamic-link "/usr/lib/x86_64-linux-gnu/libm.so") >>> ice-9/boot-9.scm:1669:16: In procedure raise-exception: >>> In procedure dynamic-link: file: "/usr/lib/x86_64-linux-gnu/libm.so", >>> message: "file not found" >>>=20 >>> Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. >>> scheme@(guile-user) [1]> ,q >>=20 >> Hey Tim (feels weird typing that), >>=20 >> are you using Guile from your Guix install? I have had issues with that a= s >> well and I needed to use Guile from my regular OS. >>=20 >> If you're not using Guix then I haven't had that problem, so I'm afraid I= >> can't help. >>=20 >> Vale, >>=20 >> -Tim Van den Langenbergh >>=20 >>=20