From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: C module problem Date: Mon, 28 Feb 2011 22:37:28 +0100 Message-ID: References: <20110228081326.GA25446@neko> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1298928772 13302 80.91.229.12 (28 Feb 2011 21:32:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2011 21:32:52 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Feb 28 22:32:48 2011 Return-path: Envelope-to: guile-user@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 1PuAhz-0007WB-8Y for guile-user@m.gmane.org; Mon, 28 Feb 2011 22:32:47 +0100 Original-Received: from localhost ([127.0.0.1]:42378 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuAhy-0002fy-Ke for guile-user@m.gmane.org; Mon, 28 Feb 2011 16:32:46 -0500 Original-Received: from [140.186.70.92] (port=60992 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuAhh-0002fc-Sr for guile-user@gnu.org; Mon, 28 Feb 2011 16:32:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuAhg-00067H-3n for guile-user@gnu.org; Mon, 28 Feb 2011 16:32:29 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:55984 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuAhg-000675-1I for guile-user@gnu.org; Mon, 28 Feb 2011 16:32:28 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id C4D3D48D9 for ; Mon, 28 Feb 2011 16:33:45 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=nWlVbkLqOEh/x0vKOUbJBzMf/7A=; b=tpxFEI RODeQZJNxC8ZLtdnkb3+EJDv53lwV0UIg9EdnlQe+/lq1EnhgiQAbequX6XecEGx xkC0Du1fvCapsgG0599oCpFgP9OOcVskcQUetLKxJtYF3ajJ0FHW2nUgytWLh4GC PJ1xzbb38IR0da7WIAnwx+cSVBhgrRiICh3Dc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:subject :references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=j+hNrDjoM3FJFcjqArTd8nAMGPYcXAJF 9XNPuckjY9H9Gap8d75JtOTJtthw66WOna9Ilpe7AURWP5Z74PTjgDg1ENw+A10w VHYROvCaYtKcPQ1EL1xwmlw0yi6qp0cKnVfHgC7KKHtas8vluHE910wvWIeYoGYs kclEgH73a4E= 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 C234E48D8 for ; Mon, 28 Feb 2011 16:33:45 -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 47EFA48D7 for ; Mon, 28 Feb 2011 16:33:41 -0500 (EST) In-Reply-To: <20110228081326.GA25446@neko> (Aidan Gauland's message of "Mon, 28 Feb 2011 21:13:27 +1300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 6BFB751C-4382-11E0-85E0-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: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8476 Archived-At: Hi Aidan, On Mon 28 Feb 2011 09:13, Aidan Gauland writes: > I am trying to write a simple C module for Guile (for the learning > experience) and I have run into a cryptic error. Apologies for this. It is actually a libltdl issue: "As I am sure many are aware, libltdl's error reporting is pretty dumb, lt_dlerror() regularly reports things like "file not found" where the actual problem might be something completely different, and a reasonable error string may be readily available from dlerror()." http://lists.gnu.org/archive/html/libtool/2010-06/msg00056.html > gcc -shared -o sdl-guile.so -fPIC sdl-guile.c `guile-config compile` `sdl-config --cflags` In this case loading the library fails probably because you did not add SDL libs. `sdl-config --cflags --libs` perhaps? Just a guess. That said, the dynamic FFI is more fun; and also, there is a guile-sdl package out there somewhere. Cheers, Andy -- http://wingolog.org/