From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Hans Aberg Newsgroups: gmane.lisp.guile.bugs,gmane.comp.gnu.libtool.bugs Subject: Re: Mac OS X .dylib not working Date: Tue, 2 Feb 2010 18:15:22 +0100 Message-ID: <51A25259-AD5F-4D39-9319-C173F424568F@math.su.se> 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1265130955 6524 80.91.229.12 (2 Feb 2010 17:15:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Feb 2010 17:15:55 +0000 (UTC) Cc: bug-guile@gnu.org, =?ISO-8859-1?Q?Ludovic_Court=E8s?= , Ken Raeburn , bug-libtool@gnu.org To: Bob Friesenhahn Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Feb 02 18:15:51 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 1NcMLg-0006bT-Fm for guile-bugs@m.gmane.org; Tue, 02 Feb 2010 18:15:36 +0100 Original-Received: from localhost ([127.0.0.1]:59616 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcMLf-0003rA-Oq for guile-bugs@m.gmane.org; Tue, 02 Feb 2010 12:15:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcMLb-0003qh-5e for bug-guile@gnu.org; Tue, 02 Feb 2010 12:15:31 -0500 Original-Received: from [199.232.76.173] (port=47532 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcMLa-0003qZ-Sn for bug-guile@gnu.org; Tue, 02 Feb 2010 12:15:30 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcMLY-00046U-PX for bug-guile@gnu.org; Tue, 02 Feb 2010 12:15:30 -0500 Original-Received: from pne-smtpout1-sn2.hy.skanova.net ([81.228.8.83]:49380) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcMLY-00045u-FY; Tue, 02 Feb 2010 12:15:28 -0500 Original-Received: from h131n2-fre-d2.ias.bredband.telia.com (78.72.157.131) by pne-smtpout1-sn2.hy.skanova.net (7.3.140.3) (authenticated as u26619134) id 4B5C668600143AF5; Tue, 2 Feb 2010 18:15:26 +0100 In-Reply-To: X-Mailer: Apple Mail (2.936) X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:4490 gmane.comp.gnu.libtool.bugs:7240 Archived-At: On 2 Feb 2010, at 17:52, Bob Friesenhahn wrote: > Unless I am missing something, the question to be answered is if =20 > Guile requests opening modules using a name like =20 > "module.so" (assuming a particular naming scheme), =20 > "module.la" (using libltdl as originally intended), or bare =20 > "module" (using libltdl heuristics, which tries several =20 > incantations, such as looking for .la, and .so). On the Bug-Guile list, Ludovic Court=E8s said it was the last one , =20 specifically the code in 'ibguile/dynl.c', which looks like: static void * sysdep_dynl_link (const char *fname, const char *subr) { lt_dlhandle handle; handle =3D lt_dlopenext (fname); if (NULL =3D=3D handle) { SCM fn; SCM msg; fn =3D scm_from_locale_string (fname); msg =3D scm_from_locale_string (lt_dlerror ()); scm_misc_error (subr, "file: ~S, message: ~S", scm_list_2 (fn, =20= msg)); } return (void *) handle; } > OS-X's module loading does not care about the file extension. So from what you say, the problem may simply be that .dylib isn't in =20 the list. Hans