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 Subject: Re: FFI on OS X? Date: Wed, 2 Mar 2011 21:23:43 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299097439 8626 80.91.229.12 (2 Mar 2011 20:23:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 20:23:59 +0000 (UTC) Cc: bug-guile@gnu.org To: Michael Ellis Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Mar 02 21:23:55 2011 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 1PusaP-0006Rz-UE for guile-bugs@m.gmane.org; Wed, 02 Mar 2011 21:23:54 +0100 Original-Received: from localhost ([127.0.0.1]:50154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PusaP-0003Ss-EI for guile-bugs@m.gmane.org; Wed, 02 Mar 2011 15:23:53 -0500 Original-Received: from [140.186.70.92] (port=42403 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PusaK-0003SP-Q7 for bug-guile@gnu.org; Wed, 02 Mar 2011 15:23:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PusaI-0006gb-RP for bug-guile@gnu.org; Wed, 02 Mar 2011 15:23:48 -0500 Original-Received: from smtp-out12.han.skanova.net ([195.67.226.212]:45442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PusaI-0006gE-M7 for bug-guile@gnu.org; Wed, 02 Mar 2011 15:23:46 -0500 Original-Received: from [10.0.1.2] (217.210.127.13) by smtp-out12.han.skanova.net (8.5.133) (authenticated as u26619196) id 4D65154400225269; Wed, 2 Mar 2011 21:23:44 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1082) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 195.67.226.212 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:5257 Archived-At: On 2 Mar 2011, at 21:07, Michael Ellis wrote: > Trying to follow the examples in section 6.20.6 in the manual I get > the following. >=20 > scheme@(guile-user)> (define libm (dynamic-link = "/usr/lib/libm.dylib")) > ERROR: In procedure dynamic-link: file: "/usr/lib/libm.dylib", > message: "file not found" ... > What am I doing wrong? Guile, or what it uses to load libraries, assumes that a dynamic library = ends in something else than ".dylib". Make a soft link ('ln -s') ending = in ".so", and load this instead, and it will work. Hans