From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Aberg Newsgroups: gmane.lisp.guile.bugs,gmane.comp.gnu.libtool.bugs Subject: Re: Mac OS X .dylib not working Date: Fri, 4 Mar 2011 10:44:54 +0100 Message-ID: <24B671DD-89B7-4FBC-BDC5-39E6C058872E@telia.com> References: <4D705581.1030701@pogma.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299231917 22400 80.91.229.12 (4 Mar 2011 09:45:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Mar 2011 09:45:17 +0000 (UTC) Cc: Guile bug , =?iso-8859-1?Q?Ludovic_Court=E8s?= , bug-libtool@gnu.org To: Peter O'Gorman Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Mar 04 10:45:13 2011 Return-path: Envelope-to: guile-bugs@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 1PvRZQ-000339-Ev for guile-bugs@m.gmane.org; Fri, 04 Mar 2011 10:45:12 +0100 Original-Received: from localhost ([127.0.0.1]:56795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvRZP-00041B-8w for guile-bugs@m.gmane.org; Fri, 04 Mar 2011 04:45:11 -0500 Original-Received: from [140.186.70.92] (port=41251 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvRZG-0003xq-09 for bug-guile@gnu.org; Fri, 04 Mar 2011 04:45:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvRZE-0007Dg-QU for bug-guile@gnu.org; Fri, 04 Mar 2011 04:45:01 -0500 Original-Received: from smtp-out21.han.skanova.net ([195.67.226.208]:51320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvRZE-0007D5-Eg; Fri, 04 Mar 2011 04:45:00 -0500 Original-Received: from [10.0.1.2] (217.210.127.13) by smtp-out21.han.skanova.net (8.5.133) (authenticated as u26619196) id 4D6517A100360B4A; Fri, 4 Mar 2011 10:44:56 +0100 In-Reply-To: <4D705581.1030701@pogma.com> 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.208 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5278 gmane.comp.gnu.libtool.bugs:7717 Archived-At: On 4 Mar 2011, at 03:59, Peter O'Gorman wrote: >>> Mac OS X does not care about file name extensions; .dylib is just a = convention for native dynamic libraries. >=20 > The static linker when it sees a -l flag will look for files beginning = with "lib" and ending in ".dylib", ".so" (though this is recent and = perhaps not documented) and ".a". So, I think you could say that it = cares about file name extensions. One is free to implement programs that do such things. >>> So the wanted behavior is to first try opening a library without = adding an extension, and then try out different endings. On Mac OS X, it = would be best trying out .dylib first - I haven't seen any other ending = in use. >=20 > It does seem as though guile should sometimes be trying lt_dlopen() = first - then libltdl will attempt to open whatever it's given. That might be an hack. >> -- the libtool archive extension .la >> -- the extension used for native dynamically loadable modules on the >> host platform, e.g., .so, .sl, etc. >=20 > On Mac OS X, libtool's idea of the native dynamically loadable module = extension is ".so", and it's not going to change. >=20 > However, I can see the point that libltdl should try .dylib as well as = .so for lt_dlopenext on Mac OS X. I will come up with a patch for that. The important thing is to try .dylib - all libraries I have sen use it. = It can of course try .so as well. Hans