From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.bugs,gmane.comp.gnu.libtool.bugs Subject: Re: Mac OS X .dylib not working Date: Tue, 02 Feb 2010 19:01:48 +0100 Message-ID: <87iqaftt2r.fsf@gnu.org> References: <20100202064208.GC5651@gmx.de> <657AF3C8-764A-4DDE-918F-F1D97DA8E8EC@math.su.se> <359C630D-FEA1-4422-91B5-6FB0DFD6941D@raeburn.org> <675379A5-A6C5-4331-B82B-1E1F975C359A@math.su.se> <51A25259-AD5F-4D39-9319-C173F424568F@math.su.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1265133759 17990 80.91.229.12 (2 Feb 2010 18:02:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Feb 2010 18:02:39 +0000 (UTC) Cc: bug-libtool@gnu.org To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Feb 02 19:02:37 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 1NcN5A-0000xc-Oz for guile-bugs@m.gmane.org; Tue, 02 Feb 2010 19:02:37 +0100 Original-Received: from localhost ([127.0.0.1]:42456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcN5A-0005q8-6m for guile-bugs@m.gmane.org; Tue, 02 Feb 2010 13:02:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcN53-0005pt-GN for bug-guile@gnu.org; Tue, 02 Feb 2010 13:02:29 -0500 Original-Received: from [199.232.76.173] (port=45457 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcN53-0005pl-5g for bug-guile@gnu.org; Tue, 02 Feb 2010 13:02:29 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcN4z-0004FS-Iy for bug-guile@gnu.org; Tue, 02 Feb 2010 13:02:28 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:43766) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcN4z-0004FM-7j for bug-guile@gnu.org; Tue, 02 Feb 2010 13:02:25 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NcN4w-0000in-5Y for bug-guile@gnu.org; Tue, 02 Feb 2010 19:02:22 +0100 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Feb 2010 19:02:22 +0100 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Feb 2010 19:02:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Followup-To: gmane.lisp.guile.bugs Original-Lines: 39 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 14 =?iso-8859-1?Q?Pluvi=F4se?= an 218 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:RtbKlfxMBJ1qyrEi97KZwkzneAk= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:4491 gmane.comp.gnu.libtool.bugs:7241 Archived-At: Hi, Hans Aberg writes: > On 2 Feb 2010, at 17:52, Bob Friesenhahn wrote: > >> Unless I am missing something, the question to be answered is if >> Guile requests opening modules using a name like "module.so" >> (assuming a particular naming scheme), "module.la" (using libltdl >> as originally intended), or bare "module" (using libltdl >> heuristics, which tries several incantations, such as looking for >> .la, and .so). [...] > handle = lt_dlopenext (fname); The Guile manually specifically tells that FNAME should not contain an extension. Hans: in [0], you said you compiled the module with “gcc -dynamiclib -lguile -o libguile-bessel.so bessel.c”. Is it the right incantation for loadable modules (not shared libraries) on Darwin? Surprisingly, I just noticed that Guile itself doesn’t use the ‘-module’ option of Libtool when creating its ‘libguile-srfi-srfi-1’ module (which is meant to be dlopened *or* directly linked against), although this has never caused any problems on OS X. If you search for that in [1], ‘libguile-srfi-srfi-1’ is actually created with ‘-dynamiclib’. (Either way, you’d probably be better off using Libtool to create the module.) Thanks, Ludo’. [0] http://thread.gmane.org/gmane.lisp.guile.bugs/4476 [1] http://hydra.nixos.org/build/275625/log/raw