bug#537476, Trading accounts without business features

Christian Stimming stimming at tuhh.de
Sun Nov 29 15:05:51 EST 2009


Am Sonntag, 29. November 2009 schrieb Mike Alexander:
> >> https://bugzilla.gnome.org/show_bug.cgi?id=537476
> >
> > Thanks for the suggestion, backtrace below (r18444 with r18430
> > reverted).   Apparently the ordering looks completely fine.
> 
> Yes it looks exactly the same as I see on my machine where it works.
> The call to libgncmod_business_gnome_gnc_module_init should cause
> Scheme to load business-utils.scm which defines gnc:*book-label*, yet
> it is still undefined when you get to qof_book_use_trading_accounts
> later.
> 
> Are you running in place after building GnuCash but not installing the
> just-built version?  If so is the value of GUILE_LOAD_PATH set to find
> the new copy of business-utils.scm instead of the installed one?
> Somehow it looks like the wrong copy of business-utils.scm is being
> loaded.

I'm running only from the installed version. So no, I don't run anything in-
place or in any way not in the intended way of starting gnucash.

Even when I add some (display "HERE") to the installed business-utils.scm file 
I actually see this display during start-up at the console, right when the 
modules are being loaded. Gnucash then proceeds to load the XML data file 
(i.e.if the lock file exists, I get the question "file locked" where I answer 
"load anyway") and only during or right after loading the data file, this 
crash occurs. So the crash seems to occur in some sort of a different scheme 
context, compared to where the content of business-utils.scm hasn't been 
exported to, even though its content has already been executed before.

> I'm curious what the problem is, but it's probably not critical to find
> out since I've changed things around to make it irrelevant.  There were
> several values that I needed in both Scheme and C code.  Since one of
> them was already defined in Scheme before I started I put the other two
> there and imported them into C.  This is a very fragile process that is
> hard to make reliable.  In particular it won't work for any of the
> tests run by make check since most (or all) of them don't even
> initialize Guile.  For this reason I've reversed things and now define
> these in C and let Swig export them to Scheme.  I'll check this change
> in later today after I've had more time to test things.

Ok, thanks a lot.

Regards,

Christian


More information about the gnucash-devel mailing list