GNOME Bugzilla – Bug 619478
Build warning in html/gnc-html-webkit.c
Last modified: 2018-06-29 22:39:44 UTC
In the version of Debian Linux I am running (lenny), the included WebKit for GTK+ is version 1.0.1. When I try to build from svn (r19201) with Webkit enabled, it fails during "make install" with the error: cc1: warnings being treated as errors gnc-html-webkit.c: In function ‘impl_webkit_print’: gnc-html-webkit.c:1102: error: implicit declaration of function ‘webkit_web_frame_print’ Checking the GTK documentation (http://webkitgtk.org/reference/webkitgtk-WebKitWebFrame.html), I see that webkit_web_frame_print is labeled "Since 1.1.5". The function webkit_web_frame_print_full is also labeled "Since 1.1.5". So, the #if HAVE(WEBKIT_WEB_FRAME_PRINT_FULL) directive will not necessarily help. The svn log says that this code was added because some distributions do not have webkit_web_frame_print_full, but those distributions likely also lack webkit_web_frame_print. To reproduce: 1. Have the development package for a pre-1.1.5 version of webkit installed. 2. Get svn source 3. Run autogen.sh 4. Run ./configure --with-html-engine=webkit --enable-compile-warnings=yes (and any other options you want) 5. make && make install 6. Note the above error message (obviously, the expected result is a successful compile)
r23561
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=619478. Please update any external references or bookmarks.