[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guile can't find dynamically loaded library
From: |
Michael Vanier |
Subject: |
Re: guile can't find dynamically loaded library |
Date: |
Fri, 4 Oct 2002 23:05:55 -0700 |
Well, it's even more hosed that you realize :-( When I do what you say, it
reports that it can't find libguile-bessel.so in /usr/lib. When I copy
libguile-bessel.so into /usr/lib, it reports that it can't find it in
/usr/local/lib (the next path in my LD_LIBRARY_PATH). And so forth. When
I manually set my LD_LIBRARY_PATH to just /usr/lib, it complains that it
can't find libguile-bessel.so in /lib. It seems to be impossible to make it
happy. Output looks like this:
guile> (load-extension "libguile-bessel.so" "init_bessel")
standard input:1:1: In procedure dynamic-link in expression (load-extension
"libguile-bessel.so" "init_bessel"):
standard input:1:1: file: "libguile-bessel.so", message:
"/lib/libguile-bessel.so: cannot open shared object file: No such file or
directory"
ABORT: (misc-error)
Type "(backtrace)" to get more information or "(debug)" to enter the debugger.
Thanks for your help,
Mike
> From: Marius Vollmer <address@hidden>
> Date: 03 Oct 2002 20:34:11 +0200
>
> Michael Vanier <address@hidden> writes:
>
> > I have put the file into /usr/lib and it still couldn't find it!
>
> This is (another) bug in libltdl. It first tries the ".la" extenstion
> and then should continue with the ".so" extension. However, it
> incorrectly stops when no ".la" file could be found.
>
> A workaround is to use
>
> (load-extension "libguile-bessel.so" "init_bessel")
>
> for the time being.
>
> We will release a Guile 1.6.1 shortly that will always use a libltdl
> with this bug fixed.
>
> Thanks for reporting this!
>
> --
> GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405
>