gnucash fails to compile
When building gnucash, I get the following error message:
Users/he-sk] > install gnucash
---> Building gnucash with target all
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_gnome_gnucash/work/gnucash-2.2.1" && make all " returned error 2
Command output: swig-core-utils.c: In function '_wrap_gnc_scm_log_debug':
swig-core-utils.c:1338: error: 'SCM_UNSPECIFIED' undeclared (first use in this function)
swig-core-utils.c:1341: warning: return makes integer from pointer without a cast
swig-core-utils.c: At top level:
swig-core-utils.c:1348: error: '_wrap_gnc_utf8_strip_invalid_strdup' declared as function returning a function
swig-core-utils.c: In function '_wrap_gnc_utf8_strip_invalid_strdup':
swig-core-utils.c:1362: error: invalid lvalue in assignment
swig-core-utils.c:1364: error: invalid lvalue in assignment
swig-core-utils.c:1370: warning: return makes integer from pointer without a cast
swig-core-utils.c: In function 'SWIG_init':
swig-core-utils.c:1647: warning: implicit declaration of function 'scm_c_define_gsubr'
swig-core-utils.c:1647: error: 'swig_guile_proc' undeclared (first use in this function)
swig-core-utils.c:1647: error: syntax error before '_wrap_g_find_program_in_path'
swig-core-utils.c:1648: error: syntax error before '_wrap_gnc_is_debugging'
swig-core-utils.c:1649: error: syntax error before '_wrap_gnc_scm_log_warn'
swig-core-utils.c:1650: error: syntax error before '_wrap_gnc_scm_log_error'
swig-core-utils.c:1651: error: syntax error before '_wrap_gnc_scm_log_msg'
swig-core-utils.c:1652: error: syntax error before '_wrap_gnc_scm_log_debug'
swig-core-utils.c:1653: error: syntax error before '_wrap_gnc_utf8_strip_invalid_strdup'
swig-core-utils.c: In function 'SWIG_init_helper':
swig-core-utils.c:1664: warning: implicit declaration of function 'scm_c_export'
swig-core-utils.c: At top level:
swig-core-utils.c:1669: error: 'scm_init_sw_core_utils_module' declared as function returning a function
swig-core-utils.c: In function 'scm_init_sw_core_utils_module':
swig-core-utils.c:1670: warning: implicit declaration of function 'scm_c_define_module'
swig-core-utils.c:1672: error: 'SCM_UNSPECIFIED' undeclared (first use in this function)
make[3]: *** [swig-core-utils.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Gnucash 2.2.4 made it into svn in r35110. Please reproduce your error on this version and *open a new ticket* if required. Please add detailed information on how to reproduce it. There have also been patches for guile16 and various other ports recently.