From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Aberg Newsgroups: gmane.comp.gnu.libtool.bugs,gmane.lisp.guile.bugs Subject: Re: Mac OS X .dylib not working Date: Tue, 2 Feb 2010 10:08:23 +0100 Message-ID: <657AF3C8-764A-4DDE-918F-F1D97DA8E8EC@math.su.se> References: <20100202064208.GC5651@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265102859 26933 80.91.229.12 (2 Feb 2010 09:27:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Feb 2010 09:27:39 +0000 (UTC) Cc: bug-guile@gnu.org, bug-libtool@gnu.org To: Ralf Wildenhues Original-X-From: bug-libtool-bounces+gnu-bug-libtool=m.gmane.org@gnu.org Tue Feb 02 10:27:36 2010 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 1NcF2l-0000eD-A1 for gnu-bug-libtool@m.gmane.org; Tue, 02 Feb 2010 10:27:35 +0100 Original-Received: from localhost ([127.0.0.1]:36914 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcF2k-0004OU-H0 for gnu-bug-libtool@m.gmane.org; Tue, 02 Feb 2010 04:27:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcEkI-0003SH-EM for bug-libtool@gnu.org; Tue, 02 Feb 2010 04:08:30 -0500 Original-Received: from [199.232.76.173] (port=53125 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcEkH-0003Rd-ID for bug-libtool@gnu.org; Tue, 02 Feb 2010 04:08:29 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcEkF-00048E-MT for bug-libtool@gnu.org; Tue, 02 Feb 2010 04:08:29 -0500 Original-Received: from pne-smtpout1-sn1.fre.skanova.net ([81.228.11.98]:64379) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcEkF-00046i-Ba; Tue, 02 Feb 2010 04:08:27 -0500 Original-Received: from h131n2-fre-d2.ias.bredband.telia.com (78.72.157.131) by pne-smtpout1-sn1.fre.skanova.net (7.3.140.3) (authenticated as u26619134) id 4B5C64F70012B7E1; Tue, 2 Feb 2010 10:08:24 +0100 In-Reply-To: <20100202064208.GC5651@gmx.de> X-Mailer: Apple Mail (2.936) X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:7236 gmane.lisp.guile.bugs:4486 Archived-At: On 2 Feb 2010, at 07:42, Ralf Wildenhues wrote: >> On Mac OS X (trying it on 10.5.8 PPC G4), guile-1.8.7 cannot open >> dynamic library files with name extensions .dylib, but only if they >> are renamed using .so instead. On the Bug-Guile list they say it >> just calls libltdl, in the libtool package. I have installed latest >> of both, but the problem persists: > > libtool should produce modules named *.so on Darwin if you pass the > -module flag at link time. Typically, -avoid-version is used for > modules as well. But dlopen() on Mac OS X can only open files in the native format, which isn't ELF, and they are typically named with the .dylib file name extension. If it finds a .so file on ELF format, all it does is reporting it cannot be opened. Hans