From: Clinton Ebadi <clinton@unknownlamer.org>
To: Sebastian Tennant <sebyte@smolny.plus.com>
Cc: guile-user@gnu.org
Subject: Re: guile-db
Date: Mon, 20 Oct 2008 14:15:21 -0400 [thread overview]
Message-ID: <87y70j3zgm.fsf@unknownlamer.org> (raw)
In-Reply-To: <63nnaaws.fsf@vps203.linuxvps.org> (Sebastian Tennant's message of "Mon\, 20 Oct 2008 09\:11\:31 +0000")
Sebastian Tennant <sebyte@smolny.plus.com> writes:
> Quoth Greg Troxel <gdt@ir.bbn.com>:
>> but...
>>
>> "To build Guile-PG you need to have installed both the PostgreSQL
>> frontend library libpq, and a version of Guile that can load binary
>> module (a b c) from file a/b/c.so or a/b/c/libc.la under `%load-path'."
>>
>> I believe the last bit means it'll work with guile-1.4 or guile-1.6
>> (because the ability was only deprecated at this stage), but guile-1.8
>> definitely no longer has this ability.
>>
>> True, but to make this work in 1.8 you just have to write a single .scm
>> file for the module which loads the shlib and re-exports all the right
>> symbols. And maybe a little else, but I am pretty sure not much.
>
> Easy for a C programmer no doubt, but not so easy for a lowly scripter
> like myself.
(define-module (pg whatever)
#:export (guile-pg symbols ...))
(load-extension "libwhateverpg" "guile_pg_init")
Is roughly what you need. Assuming that there is an init function in
guile-pg that creates all of bindings for the library which, if I am
remembering how the autoloading magic works, it has to. This is
definitely something that anyone could do (just find the guile-pg init
function and export every scm_define_gsubr etc.).
--
Lindsay (Carlton): nighttime baker! sounds a little iffy
next prev parent reply other threads:[~2008-10-20 18:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-14 19:36 guile-db betoes
2008-10-14 20:38 ` guile-db Linas Vepstas
2008-10-15 2:39 ` guile-db betoes
2008-10-15 19:08 ` guile-db Linas Vepstas
2008-10-15 7:06 ` guile-db Sebastian Tennant
2008-10-15 19:15 ` guile-db Linas Vepstas
2008-10-16 19:59 ` guile-db Sebastian Tennant
2008-10-16 23:11 ` guile-db Linas Vepstas
2008-10-17 11:04 ` guile-db Sebastian Tennant
2008-10-17 11:49 ` guile-db Greg Troxel
2008-10-20 9:11 ` guile-db Sebastian Tennant
2008-10-20 11:44 ` guile-db Greg Troxel
2008-10-22 9:18 ` guile-db Sebastian Tennant
2008-10-22 12:40 ` guile-db Greg Troxel
2008-10-22 13:02 ` guile-db David Séverin
2008-10-22 14:42 ` guile-db Greg Troxel
2008-10-23 4:48 ` guile-db Sebastian Tennant
2008-10-23 8:18 ` guile-db Neil Jerram
2008-10-23 11:31 ` guile-db Sebastian Tennant
2008-10-20 18:15 ` Clinton Ebadi [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-10-20 19:25 guile-db dsmich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y70j3zgm.fsf@unknownlamer.org \
--to=clinton@unknownlamer.org \
--cc=guile-user@gnu.org \
--cc=sebyte@smolny.plus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).