[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to use dynamic-link
From: |
Rob Browning |
Subject: |
Re: how to use dynamic-link |
Date: |
22 Jan 2001 00:42:51 -0600 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
Matt Wette <address@hidden> writes:
> I am trying to use load shared objects but keep running to the
> error message "file not found". Does anyone know how to do this?
> I am on sparc-solaris7. If I have a file bfd1.so in the current
> directory and have the symbolic link libbfd1.so -> bfd1.so.
>
> $ LD_LIBRARY_PATH=. guile
>
>
> guile> (dynamic-link "bfd1.so")
AFAIK, dynamic-link doesn't care about LD_LIBRARY_PATH, but if
bfd1.so's linked against anything else, then (at least under linux),
ldso *does* care. One thing I've found tremendously helpful in
tracking down (use-modules (... somemod)) libsomemod.so issues is
strace. If you strace the process, you can often see what files
guile's trying to find and figure out what's wrong.
strace -f -o strace.dump guile -c '(dynamic-link "libfd1.so")'
etc.
Hope this helps.
--
Rob Browning <address@hidden> PGP=E80E0D04F521A094 532B97F5D64E3930