unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Andreas Rottmann <a.rottmann@gmx.at>
To: guile-user@gnu.org
Subject: Re: FFI nuisance
Date: Thu, 03 Mar 2011 00:31:26 +0100	[thread overview]
Message-ID: <87fwr5xfox.fsf@gmx.at> (raw)
In-Reply-To: <20110302184339.GA8884@neko> (Aidan Gauland's message of "Thu, 3 Mar 2011 07:43:39 +1300")

Aidan Gauland <aidalgol@no8wireless.co.nz> writes:

> On Wed, Mar 02, 2011 at 03:49:22PM +0100, Andreas Rottmann wrote:
>> ludo@gnu.org (Ludovic Courtès) writes:
>> 
>> > Hi,
>> >
>> > Aidan Gauland <aidalgol@no8wireless.co.nz> 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/>



  reply	other threads:[~2011-03-02 23:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-01  3:27 FFI nuisance Aidan Gauland
2011-03-02 10:47 ` Ludovic Courtès
2011-03-02 14:49   ` Andreas Rottmann
2011-03-02 15:30     ` Ludovic Courtès
2011-03-02 18:43     ` Aidan Gauland
2011-03-02 23:31       ` Andreas Rottmann [this message]
2011-03-30 17:21       ` Andy Wingo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fwr5xfox.fsf@gmx.at \
    --to=a.rottmann@gmx.at \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).