Need some autotools and scm help

Geert Janssens janssens-geert at telenet.be
Fri Mar 5 11:51:49 EST 2010


Hi, I recently moved some files from src/engine to src/core-utils (gnc-
filepath-utils.*).

The move in itself went ok, but there are still some function definitions in 
src/engine/engine.i for functions that have moved to src/core-utils. I figured 
to simply move them from engine.i to src/core-utils/core-utils.i and be done 
with it (see the attached diff).

Unfortunately that doesn't work. Suddenly the report system complains about an 
unbound variable:
Backtrace:
In unknown file:
   ?: 0* [primitive-load-path "html-style-sheet.scm"]
In /home/janssege/Development/Sandbox/GC-Webkit/share/gnucash/scm/html-style-
sheet.scm:
 128: 1* (define gnc:current-saved-stylesheets #)
 129: 2* (gnc-build-dotgnucash-path "stylesheets-2.0")

/home/janssege/Development/Sandbox/GC-Webkit/share/gnucash/scm/html-style-
sheet.scm:129:3: In expression (gnc-build-dotgnucash-path "stylesheets-2.0"):                                                                                                                                       
/home/janssege/Development/Sandbox/GC-Webkit/share/gnucash/scm/html-style-
sheet.scm:129:3: Unbound variable: gnc-build-dotgnucash-path

I have been trying to solve this for half a day now, but I seem to get 
nowhere. I have tried adding
(use-modules (gnucash core-utils))
or
(gnc:module-load "gnucash/core-utils" 0)
to report-system.scm, but to no avail.

I must be missing something, but I don't know enough of how the guile 
integration works and the role automake plays in this.

Can someone a bit more experienced in this area give me some guidance or a 
pointer ?

Thanks,

Geert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: move.i.diff
Type: text/x-patch
Size: 1474 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20100305/d76eb2d9/attachment.bin>


More information about the gnucash-devel mailing list