GNOME Bugzilla – Bug 698586
gnucash-2.5.0 does not build with guile-2.0
Last modified: 2018-06-29 23:15:07 UTC
gnucash-2.5.0 does not as claimed compile with guile-2.0. There appear to be a number of calls to SCM_STRING_CHARS on read-only strings. I would be willing to correct these but as the code appears not to have been tested at all with guile-2.0 I will hold off until there is a likelihood of the effort being worthwhile. This is as tested with guile-2.0.7 and guile-2.0.9.
To correct my bug report: gnucash-2.5.0 compiles with guile-2.0 (with fixes to the build system, which is broken), but it does not run with guile-2.0 because of, amongst other things, calls to SCM_STRING_CHARS on read only strings.
Hi Chris, thank you for your report and offer to help. First off: the code has been tested with guile 2 by me personally on Fedora 17 before gnucash 2.5 was released. Right after the release, I worked with Norbert Holze and Christian Stimming to fix the build on Ubuntu Raring. This work has been committed on the trunk branch (to be released as 2.5.1) and verified to work. The runtime errors you get however are not originating from the gnucash code, but from swig generated code. I have mentioned already in bug 655901 that swig needs to be patched (and gnucash built again with the patched swig) before gnucash will run properly with guile 2. Can you patch swig, checkout the latest gnucash trunk and check if you still experience problems ? We can then work to get those fixed. Lastly, since there is already a bug for guile 2 support, I'll mark this one as a duplicate. Please add future comments to bug 655901. Thank you. *** This bug has been marked as a duplicate of bug 655901 ***
Interesting. I get gnucash-2.4 working after a fashion with guile-2.0 by patching gnucash to substitute the correct string handling for calls to SCM_STRING_CHARS. ("after a fashion" because generating reports does not work, the rest does.) I will try your swig fork from github.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=698586. Please update any external references or bookmarks.