From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nalaginrut Newsgroups: gmane.lisp.guile.user Subject: Re: C module problem Date: Mon, 28 Feb 2011 17:40:12 +0800 Organization: HFG Message-ID: <1298886012.2632.5.camel@Renee-desktop> Reply-To: NalaGinrut@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1298886623 12810 80.91.229.12 (28 Feb 2011 09:50:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2011 09:50:23 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Feb 28 10:50:17 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 1Ptzk8-0008SY-MF for guile-user@m.gmane.org; Mon, 28 Feb 2011 10:50:16 +0100 Original-Received: from localhost ([127.0.0.1]:38368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ptzba-0005py-B5 for guile-user@m.gmane.org; Mon, 28 Feb 2011 04:41:26 -0500 Original-Received: from [140.186.70.92] (port=54991 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ptzab-0005Hg-VT for guile-user@gnu.org; Mon, 28 Feb 2011 04:40:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtzaX-0002Bb-ON for guile-user@gnu.org; Mon, 28 Feb 2011 04:40:23 -0500 Original-Received: from mail-gw0-f51.google.com ([74.125.83.51]:50301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtzaX-0002BW-Jj for guile-user@gnu.org; Mon, 28 Feb 2011 04:40:21 -0500 Original-Received: by gwb15 with SMTP id 15so1873691gwb.38 for ; Mon, 28 Feb 2011 01:40:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:reply-to:to:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=id04zTFcUnT0kG2qgh+nbqIgadMqYJlVpr7vdlyZTAY=; b=ZFlWne1MU4D0Si2Zvqe1RkGe0FAqUq0P7D296O9u8IOVQAJFQdM70Y76WijGkGDLhI guW9DTFhI1Q4AdLMWag2PnOBOzWKDwFRVzJwrZZZwNVFQOZ3IeUhNg47s5/WKRarMvMR ZFHBVU/vYv/XrNzZYo7V0ctQE2HDf1ctxg5qA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:content-type:organization:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=XQFOEw51aSVzNz7Od1LU74USt31doe2BsS4CzG5cIOqKylRPHjC1aXFduPxd3U1xdL 9sYg8JuMgHEPV/JdA/QJcJ6DueF/fGsa9Qf+ZhxVdSUYfhkl3ilLTw9iXWPdx7JJqO2Z q616hSJnOr1657NZYnGvjH+O5ujrWYId01i7s= Original-Received: by 10.150.52.6 with SMTP id z6mr6906048ybz.340.1298886020920; Mon, 28 Feb 2011 01:40:20 -0800 (PST) Original-Received: from [192.168.100.100] ([183.15.172.84]) by mx.google.com with ESMTPS id p33sm1517539ybk.14.2011.02.28.01.40.16 (version=SSLv3 cipher=OTHER); Mon, 28 Feb 2011 01:40:20 -0800 (PST) X-Mailer: Evolution 2.28.3 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.83.51 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:8468 Archived-At: > On Mon, Feb 28, 2011 at 04:54:00PM +0800, nalaginrut wrote: > > > I then run `guile' and evaluate > > > (load-extension "./sdl-guile.so" "init_module") and get the following > > > output. > > > > > > ERROR: In procedure load-extension: > > > ERROR: In procedure dynamic-link: file: "./sdl-guile.so", message: "file not found" > > > > hi, you may type ",d load-extension" in the repl environment. > > And you will find this note: > > ======================================= > > LIB should be a string denoting a shared library without any file > > type suffix such as ".so". > > ======================================= > > Oops, forgot to omit the ".so". That doesn't seem to be the problem, though. > > scheme@(guile-user)> (load-extension "sdl-guile" "init_module") > ERROR: In procedure load-extension: > ERROR: In procedure dynamic-link: file: "sdl-guile", message: "file not found" > > scheme@(guile-user)> (load-extension "./sdl-guile" "init_module") > ERROR: In procedure load-extension: > ERROR: In procedure dynamic-link: file: "./sdl-guile", message: "file not found" > > I am running it from the same directory as the file "sdl-guile.so". > > --Aidan You should read the document continuously. :-) ================================= LIB should be a string denoting a shared library without any file type suffix such as ".so". The suffix is provided automatically. It should also not contain any directory components. Libraries that implement Guile Extensions should be put into the normal locations for shared libraries. ================================= So I think you must copy the share lib into the lib directory. -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut