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 527735 - Does not build against goffice-0.6.2 and gtkhtml-3.8
Does not build against goffice-0.6.2 and gtkhtml-3.8
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Build system
2.2.x
Other Linux
: Normal major
: ---
Assigned To: Derek Atkins
Derek Atkins
Depends on:
Blocks:
 
 
Reported: 2008-04-12 16:45 UTC by David H
Modified: 2018-06-29 22:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description David H 2008-04-12 16:45:29 UTC
Please describe the problem:
The ./configure script does not check for goffice version, but the code will not build against new versions of goffice.

Specifically, when building:
gnc-html-graph-gog.c:47:56: error: goffice/graph/gog-renderer-gnome-print.h: No such file or directory
gnc-html-graph-gog.c: In function 'draw_print_cb':
gnc-html-graph-gog.c:671: warning: implicit declaration of function 'gog_graph_print_to_gnome_print'

goffice-0.6.2 does not have gog-renderer-gnome-print.h file



Steps to reproduce:
1. Try building gnucash 2.2.4 against goffice-0.6.2
2. 
3. 


Actual results:
./configure will work fine,but make will fail.

Expected results:


Does this happen every time?
yes

Other information:
Comment 1 David H 2008-04-12 18:04:35 UTC
Works fine with 0.4.3

available here:
ftp://ftp.gnome.org/pub/GNOME/sources/goffice/0.4/
Comment 2 Derek Atkins 2008-04-14 17:31:01 UTC
You are somewhat incorrect.  The configure script DOES check the version.  However, there is no "maximum"..  So it's certainly possible that the API changed between 0.6.0 and 0.6.2 in an incompatible way.  But gnucash certainly DID work with 0.6.0.
Comment 3 David H 2008-04-14 18:39:25 UTC
Hmmm.. that's strange, because there's no 
goffice/graph/gog-renderer-gnome-print.h
file in 0.6.0 either.

But.. there's an #ifndef condition round the #include in the gnucash source:
...
#ifndef GTKHTML_USES_GTKPRINT
#    include <goffice/graph/gog-renderer-gnome-print.h>
#endif

So if GTKHTML_USES_GTKPRINT is #defined somewhere, then gnucash may build against any verion of goffice.  

I'm using libgtkhtml-3.8 if it makes any difference.
Comment 4 Derek Atkins 2008-04-14 19:14:39 UTC
Yes, that DOES make a difference.  Try gtkhtml-3.14
Comment 5 David H 2008-04-14 19:39:30 UTC
Okay, that clears that up.  Since it seems to work okay, I'll leave it as it is. I built this based on CentOS 5.1 packages, as I have described on the wiki:

http://wiki.gnucash.org/wiki/RedHat

(I will add a comment that goffice-0.6.x will work with later versions of gtkhtml).

Thanks for the help. Feel free to close this bug as you see fit.
Comment 6 Derek Atkins 2008-04-15 15:53:55 UTC
I think you're right that configure SHOULD check for this condition...  So I'll leave this bug open for now.
Comment 7 Andreas Köhler 2008-09-30 22:33:16 UTC
I think has been solved by r1719[34] a while ago.
Please do not hesitate to reopen this bug if i spoke untrue.
Thanks for the report!
Comment 8 John Ralls 2018-06-29 22:03:27 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=527735. Please update any external references or bookmarks.