From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: FFI nuisance Date: Wed, 02 Mar 2011 16:30:39 +0100 Message-ID: <87pqq9k09s.fsf@gnu.org> References: <20110301032724.GA30967@neko> <87pqq9n6jd.fsf@gnu.org> <87zkpdy3v1.fsf@gmx.at> 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 1299079864 30973 80.91.229.12 (2 Mar 2011 15:31:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 15:31:04 +0000 (UTC) Cc: guile-user@gnu.org To: Andreas Rottmann Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Mar 02 16:30:56 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 1Puo0t-0005By-W6 for guile-user@m.gmane.org; Wed, 02 Mar 2011 16:30:56 +0100 Original-Received: from localhost ([127.0.0.1]:51008 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Puo0t-0006b4-Hh for guile-user@m.gmane.org; Wed, 02 Mar 2011 10:30:55 -0500 Original-Received: from [140.186.70.92] (port=50901 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Puo0k-0006aq-3o for guile-user@gnu.org; Wed, 02 Mar 2011 10:30:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Puo0h-0004zq-Ru for guile-user@gnu.org; Wed, 02 Mar 2011 10:30:45 -0500 Original-Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:9534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Puo0h-0004zF-NN for guile-user@gnu.org; Wed, 02 Mar 2011 10:30:43 -0500 X-IronPort-AV: E=Sophos;i="4.62,253,1297033200"; d="scan'208";a="101088707" Original-Received: from unknown (HELO nixey) ([193.50.110.208]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 02 Mar 2011 16:30:42 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 =?iso-8859-1?Q?Vent=F4se?= an 219 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu In-Reply-To: <87zkpdy3v1.fsf@gmx.at> (Andreas Rottmann's message of "Wed, 02 Mar 2011 15:49:22 +0100") User-Agent: Gnus/5.110013 (No Gnus v0.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 192.134.164.82 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:8483 Archived-At: Hi, Andreas Rottmann writes: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >> 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 sym= link. >> > 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). Unfortunately, I think this cannot be done portably, because the mapping of a library=E2=80=99s set of supported interfaces to the SONAME and file n= ame is system-dependent, at least when using Libtool. Thanks, Ludo=E2=80=99.