From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aidan Gauland Newsgroups: gmane.lisp.guile.user Subject: Re: C module problem Date: Mon, 28 Feb 2011 22:32:45 +1300 Message-ID: <20110228093245.GB27786@neko> References: <20110228081326.GA25446@neko> <1298883240.2632.1.camel@Renee-desktop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BwCQnh7xodEAoBMC" X-Trace: dough.gmane.org 1298886676 13139 80.91.229.12 (28 Feb 2011 09:51:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2011 09:51:16 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Feb 28 10:51:13 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 1Ptzl2-0000jV-Uy for guile-user@m.gmane.org; Mon, 28 Feb 2011 10:51:13 +0100 Original-Received: from localhost ([127.0.0.1]:43554 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtzTM-0001UB-6k for guile-user@m.gmane.org; Mon, 28 Feb 2011 04:32:56 -0500 Original-Received: from [140.186.70.92] (port=33074 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtzTB-0001TN-FH for guile-user@gnu.org; Mon, 28 Feb 2011 04:32:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtzSs-0000Nz-TU for guile-user@gnu.org; Mon, 28 Feb 2011 04:32:28 -0500 Original-Received: from jersey.rurallink.co.nz ([114.134.15.197]:59469 helo=smtp.rurallink.co.nz) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtzSs-0000NX-F0 for guile-user@gnu.org; Mon, 28 Feb 2011 04:32:26 -0500 Original-Received: from 114-134-6-192.rurallink.co.nz ([114.134.6.192] helo=localhost) by smtp.rurallink.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1PtzSo-0001AM-Ev for guile-user@gnu.org; Mon, 28 Feb 2011 22:32:23 +1300 Mail-Followup-To: guile-user@gnu.org Content-Disposition: inline In-Reply-To: <1298883240.2632.1.camel@Renee-desktop> User-Agent: Mutt/1.5.20 (2009-06-14) X-Rurallink-Authenticated-User: aidalgol@no8wireless.co.nz X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 114.134.15.197 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:8469 Archived-At: --BwCQnh7xodEAoBMC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. > >=20 > > ERROR: In procedure load-extension: > > ERROR: In procedure dynamic-link: file: "./sdl-guile.so", message: "fil= e not found" > >=20 > > I can follow the example in section 6.20.3 C Extensions of the manual > > with no trouble, so I think I am not properly linking to SDL. > >=20 > > Can anyone help me with this? > >=20 > > Regards, > > Aidan Gauland >=20 > hi, you may type ",d load-extension" in the repl environment. > And you will find this note: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > LIB should be a string denoting a shared library without any file > type suffix such as ".so". > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Oops, forgot to omit the ".so". That doesn't seem to be the problem, thoug= =3D h. 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 fou= =3D nd" 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 f= =3D ound" I am running it from the same directory as the file "sdl-guile.so". --Aidan --BwCQnh7xodEAoBMC Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk1ra70ACgkQjyzTRvYJmaXvVQCaAjmNpxSN8oKpDr4pcv8acA87 nusAn2CBVEXYuRHQ/yxV0efdiJQrsIgK =RIm7 -----END PGP SIGNATURE----- --BwCQnh7xodEAoBMC--