From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter O'Gorman Newsgroups: gmane.comp.gnu.libtool.bugs,gmane.lisp.guile.bugs Subject: Re: Mac OS X .dylib not working Date: Thu, 03 Mar 2011 20:59:13 -0600 Message-ID: <4D705581.1030701@pogma.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299207575 15961 80.91.229.12 (4 Mar 2011 02:59:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Mar 2011 02:59:35 +0000 (UTC) Cc: Guile bug , =?windows-1252?Q?Ludovic_Court=E8s?= , =?windows-1252?Q?Hans_=C5berg?= , bug-libtool@gnu.org To: Michael Ellis Original-X-From: bug-libtool-bounces+gnu-bug-libtool=m.gmane.org@gnu.org Fri Mar 04 03:59:30 2011 Return-path: Envelope-to: gnu-bug-libtool@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 1PvLEo-0007aT-HI for gnu-bug-libtool@m.gmane.org; Fri, 04 Mar 2011 03:59:30 +0100 Original-Received: from localhost ([127.0.0.1]:60067 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvLEn-0004sT-VP for gnu-bug-libtool@m.gmane.org; Thu, 03 Mar 2011 21:59:30 -0500 Original-Received: from [140.186.70.92] (port=56996 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvLEg-0004rS-Uy for bug-libtool@gnu.org; Thu, 03 Mar 2011 21:59:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvLEf-0004kT-RD for bug-libtool@gnu.org; Thu, 03 Mar 2011 21:59:22 -0500 Original-Received: from pogma.xen.prgmr.com ([68.68.97.8]:54380) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvLEc-0004jq-Tq; Thu, 03 Mar 2011 21:59:19 -0500 Original-Received: from tw.local (wnpgmb1316w-ds01-50-57.dynamic.mtsallstream.net [206.45.50.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pogma.xen.prgmr.com (Postfix) with ESMTP id A6657BF5DB; Fri, 4 Mar 2011 02:59:23 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.3 pogma.xen.prgmr.com A6657BF5DB DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=pogma.com; s=pogmail; t=1299207564; bh=h6d+ym7AWyKO4hGn5V2ke4xSzZKjjxZsQ7xfE/Y8v+0=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=0/ZmGjIeehJbQ6WpIKiG2I59erfOcDjiND9xcvdYRzFyTJcQFmRukc7pIFScJ5CJ0 E/AST4EtrVhiHy0RCaDiAZdaIUmM4ej3NdV1nIBd86eN2MIOaCcGzyIt+agOP24Zzg eUjT+rD6k1pHDYntIlmGtkLFcqH6CYfj/0LwatjM= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc13 Thunderbird/3.1.7 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 68.68.97.8 X-BeenThere: bug-libtool@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports for the GNU libtool shared library maintenance tool List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-libtool-bounces+gnu-bug-libtool=m.gmane.org@gnu.org Errors-To: bug-libtool-bounces+gnu-bug-libtool=m.gmane.org@gnu.org Xref: news.gmane.org gmane.comp.gnu.libtool.bugs:7712 gmane.lisp.guile.bugs:5273 Archived-At: On 03/03/2011 01:56 PM, Michael Ellis wrote: > On Thu, Mar 3, 2011 at 2:32 PM, Hans =C5berg w= rote: >> [I'm not on the bug-libtool list, so please cc me.] >> >> Despite being reported a year ago, Guile can still not open dynamic li= braries 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 of the other package should do the fix. So I am merely reporting it= , cross-linking, 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 1= 0.6.6 only open a dynamic library if the name of what it actually opens e= nds in .so (say by making a soft link using 'ln -s'); if it ends in .dyli= b, it cannot open it, even if the full name is given. >> >> See >> http://lists.gnu.org/archive/html/bug-guile/2011-03/msg00008.html >> http://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 co= nvention for native dynamic libraries. The static linker when it sees a -l flag will look for files beginning=20 with "lib" and ending in ".dylib", ".so" (though this is recent and=20 perhaps not documented) and ".a". So, I think you could say that it=20 cares about file name extensions. >> >> So the wanted behavior is to first try opening a library without addin= g 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= . It does seem as though guile should sometimes be trying lt_dlopen()=20 first - then libltdl will attempt to open whatever it's given. > > -- the libtool archive extension .la > -- the extension used for native dynamically loadable modules on the > host platform, e.g., .so, .sl, etc. On Mac OS X, libtool's idea of the native dynamically loadable module=20 extension is ".so", and it's not going to change. However, I can see the point that libltdl should try .dylib as well as=20 .so for lt_dlopenext on Mac OS X. I will come up with a patch for that. Peter