From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.lisp.guile.bugs,gmane.comp.gnu.libtool.bugs Subject: Re: Mac OS X .dylib not working Date: Tue, 2 Feb 2010 09:20:33 -0500 Message-ID: <359C630D-FEA1-4422-91B5-6FB0DFD6941D@raeburn.org> References: <20100202064208.GC5651@gmx.de> <657AF3C8-764A-4DDE-918F-F1D97DA8E8EC@math.su.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1265120554 24943 80.91.229.12 (2 Feb 2010 14:22:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Feb 2010 14:22:34 +0000 (UTC) Cc: bug-guile@gnu.org, Ralf Wildenhues , bug-libtool@gnu.org To: Hans Aberg Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Feb 02 15:22:31 2010 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 1NcJe3-000400-RV for guile-bugs@m.gmane.org; Tue, 02 Feb 2010 15:22:24 +0100 Original-Received: from localhost ([127.0.0.1]:60999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcJe2-0000O0-6r for guile-bugs@m.gmane.org; Tue, 02 Feb 2010 09:22:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcJco-0000B1-C2 for bug-guile@gnu.org; Tue, 02 Feb 2010 09:21:06 -0500 Original-Received: from [199.232.76.173] (port=50154 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcJcn-0000As-VW for bug-guile@gnu.org; Tue, 02 Feb 2010 09:21:05 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcJcn-0005M7-2p for bug-guile@gnu.org; Tue, 02 Feb 2010 09:21:05 -0500 Original-Received: from splat.raeburn.org ([69.25.196.39]:47492 helo=raeburn.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NcJcc-0005HI-IA; Tue, 02 Feb 2010 09:21:02 -0500 Original-Received: from squish.raeburn.org (squish.raeburn.org [10.0.0.172]) by raeburn.org (8.14.3/8.14.1) with ESMTP id o12EKXmc019739; Tue, 2 Feb 2010 09:20:34 -0500 (EST) In-Reply-To: <657AF3C8-764A-4DDE-918F-F1D97DA8E8EC@math.su.se> X-Mailer: Apple Mail (2.1077) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:4487 gmane.comp.gnu.libtool.bugs:7237 Archived-At: On Feb 2, 2010, at 04:08, Hans Aberg wrote: On 2 Feb 2010, at 07:42, Ralf Wildenhues wrote: >=20 >>> 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: >>=20 >> 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. >=20 >=20 > 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. ".so" doesn't mean ELF format, and on some systems including Mac OS X, = "dynamically linked shared library" (e.g., a ".dylib" file) is not the = same as "dynamically loadable object". Did you not see my earlier email = to you and the bug-guile list? Ken=