From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.user Subject: Re: FFI nuisance Date: Thu, 03 Mar 2011 00:31:26 +0100 Message-ID: <87fwr5xfox.fsf@gmx.at> References: <20110301032724.GA30967@neko> <87pqq9n6jd.fsf@gnu.org> <87zkpdy3v1.fsf@gmx.at> <20110302184339.GA8884@neko> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299108718 7132 80.91.229.12 (2 Mar 2011 23:31:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 23:31:58 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Mar 03 00:31:53 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PuvWJ-0008R6-Au for guile-user@m.gmane.org; Thu, 03 Mar 2011 00:31:51 +0100 Original-Received: from localhost ([127.0.0.1]:39787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuvWI-00081t-RT for guile-user@m.gmane.org; Wed, 02 Mar 2011 18:31:50 -0500 Original-Received: from [140.186.70.92] (port=44950 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuvW2-0007zm-VF for guile-user@gnu.org; Wed, 02 Mar 2011 18:31:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuvW1-00089i-E0 for guile-user@gnu.org; Wed, 02 Mar 2011 18:31:34 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:39664) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PuvW0-00089P-U2 for guile-user@gnu.org; Wed, 02 Mar 2011 18:31:33 -0500 Original-Received: (qmail invoked by alias); 02 Mar 2011 23:31:31 -0000 Original-Received: from 83-215-154-5.hage.dyn.salzburg-online.at (EHLO nathot.lan) [83.215.154.5] by mail.gmx.net (mp062) with SMTP; 03 Mar 2011 00:31:31 +0100 X-Authenticated: #3102804 X-Provags-ID: V01U2FsdGVkX18X2VccjoUXeVKF7FY+aVUP55vZlprC9Aooo/lNa2 8xqSCNvP+bIGeV Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by nathot.lan (Postfix) with ESMTP id 9F3733A68F for ; Thu, 3 Mar 2011 00:31:30 +0100 (CET) Original-Received: from nathot.lan ([127.0.0.1]) by localhost (nathot.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZhxGa3p9V0nn for ; Thu, 3 Mar 2011 00:31:26 +0100 (CET) Original-Received: from delenn.lan (delenn.lan [192.168.3.11]) by nathot.lan (Postfix) with ESMTP id 835553A685 for ; Thu, 3 Mar 2011 00:31:26 +0100 (CET) Original-Received: by delenn.lan (Postfix, from userid 1000) id 3C3792C00C3; Thu, 3 Mar 2011 00:31:26 +0100 (CET) In-Reply-To: <20110302184339.GA8884@neko> (Aidan Gauland's message of "Thu, 3 Mar 2011 07:43:39 +1300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8486 Archived-At: Aidan Gauland writes: > On Wed, Mar 02, 2011 at 03:49:22PM +0100, Andreas Rottmann wrote: >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >>=20 >> > Hi, >> > >> > Aidan Gauland 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=E2=80=99t it a packaging bug? There should be a >> > =E2=80=98libSDL-1.2.so=E2=80=99 -> =E2=80=98libSDL-1.2.so.0=E2=80=99 s= ymlink. >> > >> 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 in a few hours -- it should be there then. Regards, Rotty --=20 Andreas Rottmann --