From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Aberg Newsgroups: gmane.lisp.guile.devel Subject: Re: FFI on OS X? Date: Thu, 3 Mar 2011 15:06:59 +0100 Message-ID: <52A50108-9304-40CC-9340-A19D0C337767@telia.com> 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> <87pqq8tklr.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299165963 20424 80.91.229.12 (3 Mar 2011 15:26:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2011 15:26:03 +0000 (UTC) Cc: guile-devel@gnu.org, Michael Ellis To: =?iso-8859-1?Q?Ludovic_Court=E8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Mar 03 16:25:58 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 1PvAPe-0006jU-9F for guile-devel@m.gmane.org; Thu, 03 Mar 2011 16:25:58 +0100 Original-Received: from localhost ([127.0.0.1]:60091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvAPd-0000Sn-Qw for guile-devel@m.gmane.org; Thu, 03 Mar 2011 10:25:57 -0500 Original-Received: from [140.186.70.92] (port=56525 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvAPS-0000QU-7G for guile-devel@gnu.org; Thu, 03 Mar 2011 10:25:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvAPN-0005fS-GD for guile-devel@gnu.org; Thu, 03 Mar 2011 10:25:46 -0500 Original-Received: from smtp-out11.han.skanova.net ([195.67.226.200]:47855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pv9BG-0006IK-OW; Thu, 03 Mar 2011 09:07:03 -0500 Original-Received: from [10.0.1.2] (217.210.127.13) by smtp-out11.han.skanova.net (8.5.133) (authenticated as u26619196) id 4D6512CA003125FC; Thu, 3 Mar 2011 15:06:59 +0100 In-Reply-To: <87pqq8tklr.fsf@gnu.org> X-Mailer: Apple Mail (2.1082) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.67.226.200 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:11758 Archived-At: On 3 Mar 2011, at 14:11, Ludovic Court=E8s wrote: >>>>> The crux is that on older MacOS X versions =91.dylib=92 are shared >>>>> libraries (not dlopenable), whereas =91.so=92 are =93bundles=94 >>>>> (dlopenable). That=92s why lt_dlopenext (which is what >>>>> =91dynamic-link=92 uses) doesn=92t try to open =91.dylib=92 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. >>=20 >> 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. :-) >=20 > It=92d boil down to summarizing the situation and proposing a way to > detect whether .dylib can be dlopen=92d. I don=92t have access to OS = X, > though, so I won=92t look into it. I think has already been done in the exchange a year ago. So it is = probably coming anytime soon. :-)