From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.user Subject: Re: Debian guile-1.8 and ttn guile-pg Date: Tue, 27 May 2008 08:46:04 -0400 Message-ID: References: <20080329135511.68737330@altosw.be> <87k5jkwgvl.fsf@moley.moleskin.org> <20080330123428.5dff9969@altosw.be> <87ej7qqms3.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1211892397 22797 80.91.229.12 (27 May 2008 12:46:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 May 2008 12:46:37 +0000 (UTC) Cc: guile-user@gnu.org, Sebastian Tennant To: Thien-Thi Nguyen Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue May 27 14:47:18 2008 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.50) id 1K0yZt-0006ol-Ke for guile-user@m.gmane.org; Tue, 27 May 2008 14:46:57 +0200 Original-Received: from localhost ([127.0.0.1]:40070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0yZ8-0001Qn-Fx for guile-user@m.gmane.org; Tue, 27 May 2008 08:46:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K0yZ5-0001QQ-Ak for guile-user@gnu.org; Tue, 27 May 2008 08:46:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K0yZ3-0001QA-Ru for guile-user@gnu.org; Tue, 27 May 2008 08:46:06 -0400 Original-Received: from [199.232.76.173] (port=55668 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0yZ3-0001Q7-M0 for guile-user@gnu.org; Tue, 27 May 2008 08:46:05 -0400 Original-Received: from fnord.ir.bbn.com ([192.1.100.210]:58464) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K0yZ3-0002Gx-Cx for guile-user@gnu.org; Tue, 27 May 2008 08:46:05 -0400 Original-Received: by fnord.ir.bbn.com (Postfix, from userid 10853) id 89E3652ED; Tue, 27 May 2008 08:46:04 -0400 (EDT) X-Hashcash: 1:20:080527:ttn@gnuvola.org::wc8K4UHqmx36mWNH:00122/ X-Hashcash: 1:20:080527:sebyte@smolny.plus.com::SEbr9WznmLd5f/O3:0000000000000000000000000000000000000000pPj X-Hashcash: 1:20:080527:guile-user@gnu.org::+Sw+ezzMwSani3bm:00000000000000000000000000000000000000000002Cjz In-Reply-To: <87ej7qqms3.fsf@ambire.localdomain> (Thien-Thi Nguyen's message of "Sun, 25 May 2008 20:08:44 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (berkeley-unix) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:6576 Archived-At: Thien-Thi Nguyen writes: > () Greg Troxel > () Mon, 31 Mar 2008 15:04:16 -0400 > > So guile-pg needs a new .scm file that does this, and > I suspect that's all that's required but I'm not sure. > > Would something like this be sufficient? > > (define-module (database postgres)) > (load-extension "/ABS/PATH/TO/libpostgres.so.0.0.0" > "scm_init_database_postgres_module") (I presume you are either consing up the path or substituting it with autoconf.) My understanding is slightly fuzzy, but I think that defines the guile-pg symbols in the (database postgres) module, but will not necessarily export them. The 1.4-style module loading seems to do the equivalent of define-public. I did make guile-pg work with a scheme load file as you write above once, and I also had a number of export statements.