guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dynamic-link sadness


From: Tim Meehan
Subject: Re: dynamic-link sadness
Date: Tue, 23 Feb 2021 08:18:33 -0600

(It is a bit weird writing to “Tim,” but my last job there were three “Tim”s 
... even weirder)

I figured it out. The string argument on my system was the path to a symlink, 
the actual file was “/usr/lib/x86_64-linux-gnu/libm-2.32.so” so it won’t follow 
symlinks to load libraries.

> On Feb 23, 2021, at 06:45, Tim Meehan <btmeehan@gmail.com> wrote:
> 
> Sorry, I should have said that it was Linux Mint Ulyssa, installed from 
> “apt”. I have another system I can try it on later today.
> 
>>> On Feb 23, 2021, at 06:21, Tim Van den Langenbergh <tmt_vdl@gmx.com> wrote:
>>> 
>>> On 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?
>>> 
>>> 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.
>>> 
>>> 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.
>>> 
>>> 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"
>>> 
>>> 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"
>>> 
>>> Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
>>> scheme@(guile-user) [1]> ,q
>> 
>> Hey Tim (feels weird typing that),
>> 
>> are you using Guile from your Guix install? I have had issues with that as
>> well and I needed to use Guile from my regular OS.
>> 
>> If you're not using Guix then I haven't had that problem, so I'm afraid I
>> can't help.
>> 
>> Vale,
>> 
>> -Tim Van den Langenbergh
>> 
>> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]