On Wednesday 23 June 2010, Jesse Weinstein wrote: > The addition of gnc-get-default-report-font-family seems to have broken > the build (at least for me), with some kind of problem with how swig > handles wrapping functions that produce strings. I suspect it's > probably some issue with me having the wrong versions of something, but > I thought I'd post it in case someone else comes across it. > > The revision that added the function is below: > > revno: 12382.1.552 > svn revno: 19285 (on /gnucash/trunk) > committer: plongstaff > timestamp: Tue 2010-06-22 21:02:01 +0000 > message: > Bug #616606: Add gnc-get-default-report-font-family function callable > from scm. > > and the error messages I get when building are: > > Making all in . > make[1]: Entering directory > `/home/jessew/FreeProjects/gnucash/src/report/report-system' > /bin/bash ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H > -I. -I../../.. -DG_LOG_DOMAIN=\"gnc.report.core\" -I../../../src > -I../../../src/gnc-module -I../../../src/app-utils -pthread > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Werror > -Wdeclaration-after-statement -g -O2 -Wall -Wunused -Wmissing-prototypes > -Wmissing-declarations -Wno-unused -MT swig-report-system.lo -MD -MP > -MF .deps/swig-report-system.Tpo -c -o swig-report-system.lo > swig-report-system.c > libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -DG_LOG_DOMAIN= > \"gnc.report.core\" -I../../../src -I../../../src/gnc-module > -I../../../src/app-utils -pthread -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -Werror -Wdeclaration-after-statement -g -O2 > -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -Wno-unused > -MT swig-report-system.lo -MD -MP -MF .deps/swig-report-system.Tpo -c > swig-report-system.c -fPIC -DPIC -o .libs/swig-report-system.o > cc1: warnings being treated as errors > swig-report-system.c: In function > ‘_wrap_gnc_get_default_report_font_family’: > swig-report-system.c:1281: error: implicit declaration of function > ‘scm_is_true’ > make[1]: *** [swig-report-system.lo] Error 1 > make[1]: Leaving directory > `/home/jessew/FreeProjects/gnucash/src/report/report-system' > make: *** [all-recursive] Error 1 > scm_is_true is a guile 1.8 function, which may not be available on your Ubuntu installation by default. It shouldn't be required, GnuCash still supports 1.6 and has a compatibility header for guile 1.6. I guess that the changes in r19285 now require this header in the report system's swig wrapper as well.
I can't test this myself, I don't have a system with guile 1.6 available here. I have attached a patch though that I think will solve this issue. Can you try to apply it and see if it works now ? Geert
### Eclipse Workspace Patch 1.0 #P GnuCash-trunk Index: src/report/report-system/report-system.i =================================================================== --- src/report/report-system/report-system.i (revision 19288) +++ src/report/report-system/report-system.i (working copy) @@ -3,6 +3,7 @@ /* Includes the header in the wrapper code */ #include <config.h> #include <gnc-report.h> +#include <guile-mappings.h> SCM scm_init_sw_report_system_module (void); %}
_______________________________________________ gnucash-devel mailing list [email protected] https://lists.gnucash.org/mailman/listinfo/gnucash-devel
