From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Ellis Newsgroups: gmane.lisp.guile.bugs,gmane.comp.gnu.libtool.bugs Subject: Re: Mac OS X .dylib not working Date: Thu, 3 Mar 2011 14:56:50 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299182242 20627 80.91.229.12 (3 Mar 2011 19:57:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Mar 2011 19:57:22 +0000 (UTC) Cc: Guile bug , =?ISO-8859-1?Q?Ludovic_Court=E8s?= , bug-libtool@gnu.org To: =?ISO-8859-1?Q?Hans_=C5berg?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Mar 03 20:57:17 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 1PvEdz-0004RR-E7 for guile-bugs@m.gmane.org; Thu, 03 Mar 2011 20:57:14 +0100 Original-Received: from localhost ([127.0.0.1]:59109 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvEdv-00024m-GO for guile-bugs@m.gmane.org; Thu, 03 Mar 2011 14:56:59 -0500 Original-Received: from [140.186.70.92] (port=59818 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvEdq-00023g-52 for bug-guile@gnu.org; Thu, 03 Mar 2011 14:56:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvEdo-0007br-Oh for bug-guile@gnu.org; Thu, 03 Mar 2011 14:56:53 -0500 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:34706) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvEdn-0007av-5H; Thu, 03 Mar 2011 14:56:51 -0500 Original-Received: by wwj40 with SMTP id 40so1566916wwj.30 for ; Thu, 03 Mar 2011 11:56:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=jUQfJKYWEbsIVVULmJkewtn2+Vv+l2Br3vxnh/pg7KA=; b=sTyNjyS5AHe79dGjVGVCkkzSfhLTieBwAIsxefj04MJ+Dds0+ZfJdRrQ7fLopx2zeJ z/cv71jq8Y+weDTPurbRl8KAy5eb/ByX2QK7Q9kN0ftE3w71Y2VF2qZ2gDQLiSx3s38W YPYXvr8S+WH0i3GYc/zke5eNLaOl5hf3RVvXs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=TGdoYfRaeEj3J95ZElm+rSV3L/ga/0Fm/K2FEr+64N+FcMDhYpsz0L/mI7+Ry8Ujqq MEWDwpox96KobkIyRnx7+oJgqQjWpJvC23WpX8RrNfR/SIOsEW4ET8xImnY8r3EueDo9 a/Z9TaHtuEUmyY7G78GBGDmubkmIzV133dqfY= Original-Received: by 10.227.154.129 with SMTP id o1mr1330662wbw.109.1299182210110; Thu, 03 Mar 2011 11:56:50 -0800 (PST) Original-Received: by 10.227.134.82 with HTTP; Thu, 3 Mar 2011 11:56:50 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.49 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:5272 gmane.comp.gnu.libtool.bugs:7711 Archived-At: On Thu, Mar 3, 2011 at 2:32 PM, Hans =C5berg wrote= : > [I'm not on the bug-libtool list, so please cc me.] > > Despite being reported a year ago, Guile can still not open dynamic libra= ries ending with .dylib on Mac OS X. Looking throw the past discussion, it = looks as though developers of the one package hold the opinion that those o= f the other package should do the fix. So I am merely reporting it, cross-l= inking, so that you can figure out who guys should do the fix. :-) > > So guile-2.0.0 using libltdl.7.dylib of libtool-2.4, can on Mac OS X 10.6= .6 only open a dynamic library if the name of what it actually opens ends i= n .so (say by making a soft link using 'ln -s'); if it ends in .dylib, it c= annot open it, even if the full name is given. > > See > =A0http://lists.gnu.org/archive/html/bug-guile/2011-03/msg00008.html > =A0http://lists.gnu.org/archive/html/guile-devel/2011-03/msg00021.html > > Mac OS X does not care about file name extensions; .dylib is just a conve= ntion for native dynamic libraries. > > So the wanted behavior is to first try opening a library without adding a= n extension, and then try out different endings. On Mac OS X, it would be b= est trying out .dylib first - I haven't seen any other ending in use. > > Hans I completely agree. FWIW, in section quoted below, the libtool manual appears to promise that lt_dlopenext() will respect the conventions of the host platform with regard to filename extensions for dynamic libraries. ... =97 Function: lt_dlhandle lt_dlopenext (const char *filename) The same as lt_dlopen, except that it tries to append different file name extensions to the file name. If the file with the file name filename cannot be found libltdl tries to append the following extensions: -- the libtool archive extension .la -- the extension used for native dynamically loadable modules on the host platform, e.g., .so, .sl, etc. ... from http://www.gnu.org/software/libtool/manual/html_node/Libltdl-interface= .html#Libltdl-interface Cheers, Mike