urgent bug report/help requested (resent)

Thomas Bushnell BSG tb at becket.net
Sun Jan 15 14:59:24 EST 2006


We've finally got gnucash (1.8.12) with the new slib (3a2) on Debian,
but it crashes miserably.

I get the freakish error "Unbound variable: hash-for-each".  (The
detailed output is appended below.)

hash-for-each is a function defined in slib's hash-table feature.

This is extremely odd.  Adding (require 'hash-table) in
src/scm/main.scm does not change anything.  Adding it into the guile
slib glue code for slib does: and then we get random reports of
"sprintf" being unbound.  (Which is defined by slib's printf feature.)
Surely I could then define that.  We could load *all* of slib on every
inclusion of it.  But surely that is not the correct solution.

A guile session using the new things does not report any problems:

$ guile
guile> (use-modules (ice-9 slib))
guile> (require 'hash-table)
guile> hash-for-each
#<procedure hash-for-each (proc ht)>
guile>

I would appreciate *ANY* assistance; this is extremely frustrating
because gnucash is not printing a useful scheme backtrace, nor any
indication of the context in which this error is being generated.
There are plenty of calls to hash-for-each in gnucash, and plenty of
requisite requires.  

I haven't got a fig of a clue even how to get into the scheme
interpreter that is running here.  ANY help would be most earnestly
appreciated.

The relevant Debian changes provoking this are:

  Switch from slib-3a1 to slib-3a2.
  Have guile load the slib guile.init file instead of its own badly
    hacked version.

Here is the (mostly unhelpful) output of gnucash --debug --nofile:

gnucash: [D] "handling arg ""--nofile"
gnucash: [D] "files to open: "()
gnucash: [D] "starting up (2)."
gnucash: [D] "gnc:find-file looking for ""finance-quote-check"" in "("/usr/share/gnucash")
gnucash: [D] "  checking for ""/usr/share/gnucash/finance-quote-check"
gnucash: [D] "found file ""/usr/share/gnucash/finance-quote-check"
gnucash: [D] "gnc:find-file looking for ""finance-quote-helper"" in "("/usr/share/gnucash")
gnucash: [D] "  checking for ""/usr/share/gnucash/finance-quote-helper"
gnucash: [D] "found file ""/usr/share/gnucash/finance-quote-helper"
gnucash: [D] "loading system configuration"
gnucash: [D] "gnc:find-file looking for ""config"" in "("/etc/gnucash")
gnucash: [D] "  checking for ""/etc/gnucash/config"
gnucash: [D] "found file ""/etc/gnucash/config"
gnucash: [D] "loading user configuration"
gnucash: [D] "trying to load ""/home/tb/.gnucash/config-1.8.user"
gnucash: [D] "trying to load ""/home/tb/.gnucash/config-1.6.user"
gnucash: [D] "trying to load ""/home/tb/.gnucash/config.user"
gnucash: [D] "trying to load ""/home/tb/.gnucash/config-1.8.auto"
gnucash: [D] "loading saved reports"
gnucash: [D] "trying to load ""/home/tb/.gnucash/saved-reports-1.8"
gnucash: [D] "Running functions on hook "report-hook
  #<procedure business-report-function ()>
ERROR: Unbound variable: hash-for-each


_______________________________________________
gnucash-devel mailing list
gnucash-devel at gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel



More information about the gnucash-devel mailing list