* bug in guile-core/ice-9/slib.scm
@ 2006-08-10 15:08 Vivek raghunathan
0 siblings, 0 replies; 4+ messages in thread
From: Vivek raghunathan @ 2006-08-10 15:08 UTC (permalink / raw)
All,
As part of a networking project I am working on, I had to port forward
our existing codebase from Guile 1.6 to Guile 1.8. On doing so, I
started getting errors of the form (on running):
ERROR: Unbound variable: with-load-pathname
I dug around a little, and discovered that a thread that discussed
this problem for Guile 1.6-7 with GNUCash. I am new to Guile and don't
understand this really well, but apparently, slib.scm needs to pull in
guile.init to get support for with-load-pathname. Using the same
technique worked for Guile 1.8 for my application.
I don't understand the Guile codebase well enough, and am not sure if
this has already been fixed. I am attaching a patch against
guile-core/ice-9/slib.scm v1.46 in your CVS (the branching point for
Guile 1.8).
Vivek
--- slib.scm.1.46 2006-08-10 11:01:32.000000000 -0400
+++ slib.scm 2006-08-10 11:03:26.000000000 -0400
@@ -1,6 +1,6 @@
;;;; slib.scm --- definitions needed to get SLIB to work with Guile
;;;;
-;;;; Copyright (C) 1997, 1998, 2000, 2001, 2002, 2003, 2004 Free
Software Foundation, Inc.
+;;;; Copyright (C) 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2006
Free Software Foundation, Inc.
;;;;
;;;; This library is free software; you can redistribute it and/or
;;;; modify it under the terms of the GNU Lesser General Public
@@ -16,6 +16,13 @@
;;;; License along with this library; if not, write to the Free Software
;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
;;;;
+
+;; forward patch GDT's 1.6.7 pkgsrc patch
+;; ref. http://lists.gnu.org/archive/html/guile-user/2005-10/msg00083.html
+;; Load slib's init routine.
+(load (string-append (assoc-ref %guile-build-info 'pkgdatadir)
+ "/slib/guile.init"))
+
(define-module (ice-9 slib)
:export (slib:load slib:load-source defmacro:load
implementation-vicinity library-vicinity home-vicinity
@@ -412,4 +419,3 @@
(define (make-exchanger obj)
(lambda (rep) (let ((old obj)) (set! obj rep) old)))
--
---
*************************************
Vivek Raghunathan,
PhD student,
University of Illinois, Urbana-Champaign
Contact Details:
1012 W. Clark St #31,
Urbana IL 61801
ph: 217-766-1868 (cell)
217-333-7541 (off)
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug in guile-core/ice-9/slib.scm
@ 2006-08-10 15:13 Vivek raghunathan
2006-08-10 23:16 ` Kevin Ryde
0 siblings, 1 reply; 4+ messages in thread
From: Vivek raghunathan @ 2006-08-10 15:13 UTC (permalink / raw)
All,
As part of a networking project I am working on, I had to port forward
our existing codebase from Guile 1.6 to Guile 1.8. On doing so, I
started getting errors of the form (on running):
ERROR: Unbound variable: with-load-pathname
I dug around a little, and discovered that a thread that discussed
this problem for Guile 1.6-7 with GNUCash. I am new to Guile and don't
understand this really well, but apparently, slib.scm needs to pull in
guile.init to get support for with-load-pathname. Using the same
technique worked for Guile 1.8 for my application.
I don't understand the Guile codebase well enough, and am not sure if
this has already been fixed in current - I think it hasn't. I am
attaching a patch against
guile-core/ice-9/slib.scm v1.46 in your CVS (the branching point for
Guile 1.8).
Vivek
--- slib.scm.1.46 2006-08-10 11:01:32.000000000 -0400
+++ slib.scm 2006-08-10 11:03:26.000000000 -0400
@@ -1,6 +1,6 @@
;;;; slib.scm --- definitions needed to get SLIB to work with Guile
;;;;
-;;;; Copyright (C) 1997, 1998, 2000, 2001, 2002, 2003, 2004 Free
Software Foundation, Inc.
+;;;; Copyright (C) 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2006
Free Software Foundation, Inc.
;;;;
;;;; This library is free software; you can redistribute it and/or
;;;; modify it under the terms of the GNU Lesser General Public
@@ -16,6 +16,13 @@
;;;; License along with this library; if not, write to the Free Software
;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
02110-1301 USA
;;;;
+
+;; forward patch GDT's 1.6.7 pkgsrc patch
+;; ref. http://lists.gnu.org/archive/html/guile-user/2005-10/msg00083.html
+;; Load slib's init routine.
+(load (string-append (assoc-ref %guile-build-info 'pkgdatadir)
+ "/slib/guile.init"))
+
(define-module (ice-9 slib)
:export (slib:load slib:load-source defmacro:load
implementation-vicinity library-vicinity home-vicinity
@@ -412,4 +419,3 @@
(define (make-exchanger obj)
(lambda (rep) (let ((old obj)) (set! obj rep) old)))
--
---
*************************************
Vivek Raghunathan,
PhD student,
University of Illinois, Urbana-Champaign
Contact Details:
1012 W. Clark St #31,
Urbana IL 61801
ph: 217-766-1868 (cell)
217-333-7541 (off)
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bug in guile-core/ice-9/slib.scm
2006-08-10 15:13 Vivek raghunathan
@ 2006-08-10 23:16 ` Kevin Ryde
2006-08-12 23:01 ` Rob Browning
0 siblings, 1 reply; 4+ messages in thread
From: Kevin Ryde @ 2006-08-10 23:16 UTC (permalink / raw)
Cc: bug-guile
"Vivek raghunathan" <vivek.raghunathan@gmail.com> writes:
>
> I dug around a little, and discovered that a thread that discussed
> this problem for Guile 1.6-7 with GNUCash. I am new to Guile and don't
> understand this really well, but apparently, slib.scm needs to pull in
> guile.init to get support for with-load-pathname. Using the same
> technique worked for Guile 1.8 for my application.
There's a fix in the 1.6 branch that's on its way to the 1.8 branch.
For now the suggestion is to follow the slib manual if you're using
slib, which is "guile -l guile.init".
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: bug in guile-core/ice-9/slib.scm
2006-08-10 23:16 ` Kevin Ryde
@ 2006-08-12 23:01 ` Rob Browning
0 siblings, 0 replies; 4+ messages in thread
From: Rob Browning @ 2006-08-12 23:01 UTC (permalink / raw)
Cc: bug-guile
Kevin Ryde <user42@zip.com.au> writes:
> There's a fix in the 1.6 branch that's on its way to the 1.8 branch.
>
> For now the suggestion is to follow the slib manual if you're using
> slib, which is "guile -l guile.init".
Actually, Guile 1.8 just doesn't support SLIB yet, and I'm not sure
how soon it will. I've been trying to fix that, and have been in a
discussion with the SLIB author about what the fix should look like,
but we haven't finished that discussion yet.
I suspect the slib.scm will look similar to the one in 1.6, but the
upstream guile.init will probably be different, given the changes in
1.8.
--
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-08-12 23:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-10 15:08 bug in guile-core/ice-9/slib.scm Vivek raghunathan
-- strict thread matches above, loose matches on Subject: below --
2006-08-10 15:13 Vivek raghunathan
2006-08-10 23:16 ` Kevin Ryde
2006-08-12 23:01 ` Rob Browning
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).