From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: Re: FFI on OS X? Date: Wed, 02 Mar 2011 22:22:12 +0100 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1299100633 28003 80.91.229.12 (2 Mar 2011 21:17:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Mar 2011 21:17:13 +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 22:17:07 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 1PutPr-0007At-1W for guile-bugs@m.gmane.org; Wed, 02 Mar 2011 22:17:03 +0100 Original-Received: from localhost ([127.0.0.1]:43251 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PutPq-00020j-Ec for guile-bugs@m.gmane.org; Wed, 02 Mar 2011 16:17:02 -0500 Original-Received: from [140.186.70.92] (port=58727 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PutPk-0001yo-5R for bug-guile@gnu.org; Wed, 02 Mar 2011 16:16:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PutPi-0000KY-Rp for bug-guile@gnu.org; Wed, 02 Mar 2011 16:16:56 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:65345 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PutPi-0000Jw-MS for bug-guile@gnu.org; Wed, 02 Mar 2011 16:16:54 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id B777542F2; Wed, 2 Mar 2011 16:18:14 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=5tgxmonUfVGHNqxsth1ddbPLXXQ=; b=gLjdgo qvuLOiiLw+xHNxyXZMdRuXCPqEuFWVcZUQhzmKj6GaTBb9BrsVH4ilqQgrBG094j duGfHXLYdgkyjZoZwIJGIiH3kmxDL6toRaWeTCBIzHE8eCBQmd2t8ow7nhtHGlE5 DHjv6GAiU/CldnU70ix3UtKxWx7TX6KTwrq6M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=GTOSUepyBmLgITI4HUEDA9Jm87FoDZuZ I5f5aMDvGD8ViMqURTeRfGg5EFzNSQUtfkGb/G5OUCoSAOS4KMS9EGF6/zBxFHss IbK6GAovziLbWrfZ5TgJ5R9T3UpyvotnSnU3Z6Iwqmhi4SWpAQjGJnshCsG4iKY2 sj81O6aBq64= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id A4F4842F1; Wed, 2 Mar 2011 16:18:13 -0500 (EST) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id ED3EF42EF; Wed, 2 Mar 2011 16:18:11 -0500 (EST) In-Reply-To: (Michael Ellis's message of "Wed, 2 Mar 2011 15:07:15 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 9538CFCE-4512-11E0-AAA1-AF401E47CF6F-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 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:5258 Archived-At: On Wed 02 Mar 2011 21:07, Michael Ellis writes: > 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 if you leave off the suffix? scheme@(guile-user)> (use-modules (system foreign)) scheme@(guile-user)> (dynamic-link "libm") $1 = # Guile uses libltdl, which does this sort of thing. Andy -- http://wingolog.org/