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.devel Subject: Re: FFI on OS X? Date: Thu, 03 Mar 2011 14:11:12 +0100 Message-ID: <87pqq8tklr.fsf@gnu.org> References: <871v2pb6cf.fsf@gnu.org> <5FC1D7BA-AA10-4F78-99D1-E8C54CB98BE7@telia.com> <87r5ap9lb9.fsf@gnu.org> <31E3EB3C-7715-4139-8960-9EECAA3D2470@telia.com> <87hbbkwkp4.fsf@gnu.org> <371C044E-13E6-4297-8A24-18FCA44240E4@telia.com> 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 1299157895 4321 80.91.229.12 (3 Mar 2011 13:11:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2011 13:11:35 +0000 (UTC) Cc: guile-devel@gnu.org, Michael Ellis To: Hans Aberg Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Mar 03 14:11:31 2011 Return-path: Envelope-to: guile-devel@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 1Pv8JU-0002nA-Ma for guile-devel@m.gmane.org; Thu, 03 Mar 2011 14:11:28 +0100 Original-Received: from localhost ([127.0.0.1]:57605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pv8JU-00042H-Kg for guile-devel@m.gmane.org; Thu, 03 Mar 2011 08:11:28 -0500 Original-Received: from [140.186.70.92] (port=49085 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pv8JI-00040w-LL for guile-devel@gnu.org; Thu, 03 Mar 2011 08:11:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pv8JG-0004n8-Oe for guile-devel@gnu.org; Thu, 03 Mar 2011 08:11:16 -0500 Original-Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:22828) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pv8JG-0004n2-Hm for guile-devel@gnu.org; Thu, 03 Mar 2011 08:11:14 -0500 X-IronPort-AV: E=Sophos;i="4.62,258,1297033200"; d="scan'208";a="89102521" Original-Received: from unknown (HELO nixey) ([193.50.110.208]) by mail4-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES128-SHA; 03 Mar 2011 14:11:13 +0100 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 13 =?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: <371C044E-13E6-4297-8A24-18FCA44240E4@telia.com> (Hans Aberg's message of "Thu, 3 Mar 2011 12:34:06 +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.105 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11755 Archived-At: Hi, Hans Aberg writes: > On 3 Mar 2011, at 11:40, Ludovic Court=C3=A8s wrote: >>>> The crux is that on older MacOS X versions =E2=80=98.dylib=E2=80=99 ar= e shared >>>> libraries (not dlopenable), whereas =E2=80=98.so=E2=80=99 are =E2=80= =9Cbundles=E2=80=9D >>>> (dlopenable). That=E2=80=99s why lt_dlopenext (which is what >>>> =E2=80=98dynamic-link=E2=80=99 uses) doesn=E2=80=99t try to open =E2= =80=98.dylib=E2=80=99 files. >>> The shared libraries (not dynamically loadable, except as when >>> starting up the program like some web browser plugins) were on the >>> PPC platform (XCOFF and PEF I think it was). >>>=20 >>> Now (Mac OS 10.5 and later), all is loadable. Haven't seen any .so >>> files, except as coming from GNU/Linux. >> I would recommend discussing this with the Libtool folks, to see >> how ltdl could adapt to the new situation. > > I recommend that too. - I brought it up a year ago, so if somebody > wants to give it another take, please feel free to do it. :-) It=E2=80=99d boil down to summarizing the situation and proposing a way to detect whether .dylib can be dlopen=E2=80=99d. I don=E2=80=99t have access= to OS X, though, so I won=E2=80=99t look into it. [...] >>> UNIX, and the only parts in the UNIX standard recognizing file name >> =E2=80=9CUNIX standard=E2=80=9D, what a funny phrase! :-) > > Do you like "Single UNIX Specification" better? Sure. :-) Ludo=E2=80=99.