[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FFI nuisance
From: |
Andreas Rottmann |
Subject: |
Re: FFI nuisance |
Date: |
Thu, 03 Mar 2011 00:31:26 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Aidan Gauland <address@hidden> writes:
> On Wed, Mar 02, 2011 at 03:49:22PM +0100, Andreas Rottmann wrote:
>> address@hidden (Ludovic Courtès) writes:
>>
>> > Hi,
>> >
>> > Aidan Gauland <address@hidden> writes:
>> >
>> >> I'm trying to use SDL through Guile's dynamic FFI. There's a slight
>> >> nuisance with the procedure `dynamic-link': the name of the so file on
>> >> my system (Debian squeeze) is `libSDL-1.2.so.0'
>> >
>> > Isn’t it a packaging bug? There should be a
>> > ‘libSDL-1.2.so’ -> ‘libSDL-1.2.so.0’ symlink.
>> >
>> Only in the -dev package, which should not be required for running Guile
>> programs that excercise the FFI. It is also good practice to use the
>> entire SONAME of the library in the Guile program, as to avoid random
>> breakage when the ABI changes (which does imply a SONAME bump on
>> sanely-maintained libraries).
>
> When I try to use the entire soname of the library, I get an error.
> (`libSDL-1.2.so.0' is actually a link to the regular file
> `libSDL-1.2.so.0.11.3'.) What am I doing wrong?
>
You are doing nothing wrong, that seems to be a limitation of Guile. I
just wrote a mail regarding that to guile-devel, unfortunatly it doesn't
show up in the mail archive yet; check
<http://lists.gnu.org/archive/html/guile-devel/2011-03/threads.html> in
a few hours -- it should be there then.
Regards, Rotty
--
Andreas Rottmann -- <http://rotty.yi.org/>