[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug in guile-core/ice-9/slib.scm
From: |
Vivek raghunathan |
Subject: |
bug in guile-core/ice-9/slib.scm |
Date: |
Thu, 10 Aug 2006 11:08:34 -0400 |
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)