From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Ellis Newsgroups: gmane.lisp.guile.bugs Subject: FFI on OS X? Date: Wed, 2 Mar 2011 15:07:15 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1299096449 2434 80.91.229.12 (2 Mar 2011 20:07:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 20:07:29 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Mar 02 21:07:25 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 1PusKS-0005un-Pr for guile-bugs@m.gmane.org; Wed, 02 Mar 2011 21:07:24 +0100 Original-Received: from localhost ([127.0.0.1]:43371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PusKS-0002Nj-69 for guile-bugs@m.gmane.org; Wed, 02 Mar 2011 15:07:24 -0500 Original-Received: from [140.186.70.92] (port=42998 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PusKN-0002Ne-7V for bug-guile@gnu.org; Wed, 02 Mar 2011 15:07:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PusKM-0003vE-7f for bug-guile@gnu.org; Wed, 02 Mar 2011 15:07:19 -0500 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:56357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PusKM-0003v5-20 for bug-guile@gnu.org; Wed, 02 Mar 2011 15:07:18 -0500 Original-Received: by wyi11 with SMTP id 11so425059wyi.0 for ; Wed, 02 Mar 2011 12:07:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=TzdNDXUQ6WpcH4hygJNgfzl3AQDEDPcPmIAzs9+6EAI=; b=r3hLZseD916J76zftYRXA2NALSkvQE2U+I5H4i5uZcvQQVG0neXn5YymmcXmBwi5J2 Qy0OM7zzoX+AF338FPlBuWcXatNIcTMd1BPMlBSX/6m61Sc4i1RE7y5+E/0naX1NwrW6 u58j8SOl4I2Qw+PvxFL8Sfa/ljG6IwzXXt/Ec= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sgvVDT4nYf76ZB5PTmpggNT7yUBWw39rV0TDJfBwoMDyAmuOILYgjt5pjxXQX/5Ozl YCbSmK8tJNV8CFHwweLWc+745ffJ4FH8Utp4i8FDbRNZMGdLR9dr7BZqE8Zx3F7DfB2g brY4DMS6slZROYfQqa/x1FQdr058F3WimsWbI= Original-Received: by 10.227.144.196 with SMTP id a4mr130404wbv.122.1299096435481; Wed, 02 Mar 2011 12:07:15 -0800 (PST) Original-Received: by 10.227.134.82 with HTTP; Wed, 2 Mar 2011 12:07:15 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 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:5256 Archived-At: Trying to follow the examples in section 6.20.6 in the manual I get the following. 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" The same library can be loaded and its functions are available with python ctypes, e.g. >>> libm=CDLL("/usr/lib/libm.dylib") >>> libm >>> libm.j0 <_FuncPtr object at 0x100599d50> What am I doing wrong? Thanks, Mike