unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* Guile 1.8.2 / SLIB 3a4 incompatibility
@ 2007-09-18 14:23 Bryce L Nordgren
  2007-09-19 20:13 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Bryce L Nordgren @ 2007-09-18 14:23 UTC (permalink / raw)
  To: bug-guile


[-- Attachment #1.1: Type: text/plain, Size: 1480 bytes --]

1st: I don't know anything about Scheme.  Scheme/SLIB is required for
GnuCash which has ~4 years of my books in it.  I do however have a decade or
so of C/C++/Java/Python/Linux Admin experience.

Problem #1: README contains incorrect SLIB install instructions.  Running
"guile-config info pkgdatadir" returns '/root/my-applications/share/guile'
(Financial constraints have pushed me back to a Pentium MMX on which I'm
running puppylinux.  Wife took the good computer to school.  Will deal with
"root" use later.)  However, according to the info file, the correct
directory is '/root/my-applications/share/guile/site'.  So...which is
correct?  Info file or README.

Problem #2: With SLIB 3a4 installed in either directory above, I get:

> guile> (use-modules (ice-9 slib))
> ERROR: Unbound variable: slib:features
> ABORT: (unbound-variable)
> guile>


Instructions at the end of the "info" file say:

 If instead you get an error such as:

          Unbound variable: scheme-implementation-type

     then a solution is to get a newer version of Guile, or to modify
     `ice-9/slib.scm' to use `define-public' for the offending
     variables.



Yes I searched for problem reports and found this w.r.t. Guile 1.8.1 and
Slib 3a4:
http://osdir.com/ml/lisp.guile.bugs/2006-11/msg00010.html
After editing according to the instructions and replacing the slib.scm file
in the ice-9 directory, out pops a page full of error messages that nothing
in this life has prepared me to parse.

[-- Attachment #1.2: Type: text/html, Size: 2014 bytes --]

[-- Attachment #2: Type: text/plain, Size: 137 bytes --]

_______________________________________________
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: Guile 1.8.2 / SLIB 3a4 incompatibility
  2007-09-18 14:23 Guile 1.8.2 / SLIB 3a4 incompatibility Bryce L Nordgren
@ 2007-09-19 20:13 ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2007-09-19 20:13 UTC (permalink / raw)
  To: bug-guile

Hi,

"Bryce L Nordgren" <bnordgren@gmail.com> writes:

> 1st: I don't know anything about Scheme.  Scheme/SLIB is required for GnuCash which has ~4 years
> of my books in it.

This problem with `(ice-9 slib)' that you describe is a known one, which
are working on.

In the meantime, you can modify your `ice-9/slib.scm' so that it
contains the following lines (and nothing more):

  (define-module (ice-9 slib)
    :export (slib:load slib:load-source defmacro:load
             implementation-vicinity library-vicinity home-vicinity
             scheme-implementation-type scheme-implementation-version
             output-port-width output-port-height array-indexes
             make-random-state
             -1+ <? <=? =? >? >=?
             require slib:error slib:exit slib:warn slib:eval
             defmacro:eval logical:logand logical:logior logical:logxor
             logical:lognot logical:ash logical:logcount logical:integer-length
             logical:bit-extract logical:integer-expt logical:ipow-by-squaring
             slib:eval-load slib:tab slib:form-feed difftime offset-time
             software-type)
    :replace (delete-file open-file provide provided? system)
    :no-backtrace)

  (load-from-path "slib/guile.init")


That should fix the problem.

Thanks,
Ludovic.



_______________________________________________
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: Guile 1.8.2 / SLIB 3a4 incompatibility
@ 2007-09-20 14:17 Bryce L Nordgren
  2007-10-02  3:37 ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Bryce L Nordgren @ 2007-09-20 14:17 UTC (permalink / raw)
  To: bug-guile


[-- Attachment #1.1: Type: text/plain, Size: 1016 bytes --]

Ludovic,

Thanks for the help.  I edited ice-9/slib.scm as you specified, and now I'm
getting behavior which might be right and might not be: error on the first
try and success on the second:

# guile
guile>  (use-modules (ice-9 slib))
ERROR: Unbound variable: system
ABORT: (unbound-variable)
guile>  (use-modules (ice-9 slib))
guile>

Unfortunately, this is apparently not good enough for GnuCash, as the
following ./configure snippet fails:

if ${GUILE} -c "(use-modules (ice-9 slib)) (require 'printf)" > /dev/null
2>&1
then

  { echo "$as_me:$LINENO: result: yes"
>&5
echo "${ECHO_T}yes" >&6;
}
else

  { { echo "$as_me:$LINENO:
error:


   Cannot find SLIB.  Are you sure you have it
installed?
   See http://bugzilla.gnome.org/show_bug.cgi?id=347922



"
>&5


Since the test in the configure script seems reasonable, and the
fail-first-time behavior was demonstrated on the command line, it would seem
appropriate to further pursue the solution here...  Any ideas why the same
thing both succeeds and fails?

[-- Attachment #1.2: Type: text/html, Size: 4705 bytes --]

[-- Attachment #2: Type: text/plain, Size: 137 bytes --]

_______________________________________________
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: Guile 1.8.2 / SLIB 3a4 incompatibility
  2007-09-20 14:17 Bryce L Nordgren
@ 2007-10-02  3:37 ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2007-10-02  3:37 UTC (permalink / raw)
  To: bug-guile

Hi,

"Bryce L Nordgren" <bnordgren@gmail.com> writes:

> Thanks for the help.  I edited ice-9/slib.scm as you specified, and now I'm getting behavior
> which might be right and might not be: error on the first try and success on the second:
>
> # guile
> guile>  (use-modules (ice-9 slib))
> ERROR: Unbound variable: system
> ABORT: (unbound-variable)
> guile>  (use-modules (ice-9 slib))

The problem is now (hopefully) fixed in HEAD and 1.8.  Could you please
update your local copy of Guile and check whether it works for you?
Make sure to read the "SLIB installation" node of Guile's manual.

Thanks in advance,
Ludovic.



_______________________________________________
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:[~2007-10-02  3:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-18 14:23 Guile 1.8.2 / SLIB 3a4 incompatibility Bryce L Nordgren
2007-09-19 20:13 ` Ludovic Courtès
  -- strict thread matches above, loose matches on Subject: below --
2007-09-20 14:17 Bryce L Nordgren
2007-10-02  3:37 ` Ludovic Courtès

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).