After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698586 - gnucash-2.5.0 does not build with guile-2.0
gnucash-2.5.0 does not build with guile-2.0
Status: RESOLVED DUPLICATE of bug 655901
Product: GnuCash
Classification: Other
Component: General
2.5.x
Other Linux
: Normal normal
: ---
Assigned To: Christian Stimming
Geert Janssens
Depends on:
Blocks:
 
 
Reported: 2013-04-22 15:43 UTC by Chris Vine
Modified: 2018-06-29 23:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chris Vine 2013-04-22 15:43:10 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.
Comment 1 Chris Vine 2013-04-22 15:46:10 UTC
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.
Comment 2 Geert Janssens 2013-04-22 16:21:13 UTC
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 ***
Comment 3 Chris Vine 2013-04-22 17:39:43 UTC
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.
Comment 4 John Ralls 2018-06-29 23:15:07 UTC
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.