From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: Debian guile-1.8 and ttn guile-pg Date: Tue, 27 May 2008 15:04:27 +0200 Message-ID: <87prr7oq3o.fsf@ambire.localdomain> 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=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1211893741 27986 80.91.229.12 (27 May 2008 13:09:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 May 2008 13:09:01 +0000 (UTC) Cc: guile-user@gnu.org, Sebastian Tennant To: Greg Troxel Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue May 27 15:09:41 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 1K0yug-00068v-RG for guile-user@m.gmane.org; Tue, 27 May 2008 15:08:27 +0200 Original-Received: from localhost ([127.0.0.1]:40364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0ytv-0000LV-GN for guile-user@m.gmane.org; Tue, 27 May 2008 09:07:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K0ytp-0000Kp-P7 for guile-user@gnu.org; Tue, 27 May 2008 09:07:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K0ytn-0000KR-9R for guile-user@gnu.org; Tue, 27 May 2008 09:07:32 -0400 Original-Received: from [199.232.76.173] (port=58271 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0ytn-0000KO-3c for guile-user@gnu.org; Tue, 27 May 2008 09:07:31 -0400 Original-Received: from [151.61.141.25] (port=39842 helo=ambire.localdomain) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K0ytm-0006AB-Pt for guile-user@gnu.org; Tue, 27 May 2008 09:07:31 -0400 Original-Received: from ttn by ambire.localdomain with local (Exim 4.63) (envelope-from ) id 1K0yqq-0003C9-1d; Tue, 27 May 2008 15:04:28 +0200 In-Reply-To: (Greg Troxel's message of "Tue, 27 May 2008 08:46:04 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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:6577 Archived-At: =E2=8E=9B=E2=8E=9E Greg Troxel =E2=8E=9D=E2=8E=A0 Tue, 27 May 2008 08:46:04 -0400 > (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.) Yes, either way or even both (whatever will work). 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. OK. The 1.4-style module loading seems to do the equivalent of define-public. Yes. 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. So in addition to the above, there needs to be `define-public' for each proc? Can that be phrased as an `#:export' clause in the `define-module' form (prior to the `load-extension' call)? thi