problems with gtk_html_print in gtkhtml.h

digger vermont dv_mlist at verizon.net
Thu Feb 15 16:52:44 EST 2007


Hi Derek,

On Thu, 2007-02-15 at 11:17 -0500, Derek Atkins wrote:
> Hi,
> 
> digger vermont <dv_mlist at verizon.net> writes:
> 
> > Not getting any response from the bugreport I thought I'd build 2.04
> > myself and also ran into what looks like may be the same problem.  It
> > stalls where gnc-html.c is looking  for gtk_html_print from
> > gtkhtml/gtkhtml.h  
> 
> Actually, that's NOT what the error below is saying.  The error below

...

> [snip]
> > Looking at /usr/include/libgtkhtml-3.8/gtkhtml/gtkhtml.h I can't find
> > gtk_html_print. Ubuntu/Feisty is using version 3.13.91-0ubuntu1 for
> > libgtkhtml3.8-dev.
> 
> Oh REALLY?  If gtk_html_print weren't declared somewhere then the

Yeah really :)  If you're curious I attached a diff between
gtkhtml-3.13.6/src/gtkhtml.h and gtkhtml-3.13.91/src/gtkhtml.h.

My reading skill (programming) is not very good but it seems that they
are getting rid of the dependency on libgnomeprint. 

> compile would've blown out MUCH earlier..  Oh, unless you have
> error-on-warning disabled, which you would if you're building from
> the tarball and don't explicitly --enable-error-on-warning.
> 

Yeah in my hurry I forgot that.  I reconfigured with
--enable-error-on-warning and and it does stop earlier:

make[5]: Entering directory
`/home/digger/src/gnucash-2.0.4/src/gnome-utils'
if /bin/bash ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H
-I. -I. -I../.. -I../.. -I../.. -I../..    -DPREFIX=\"/usr/local\"
-DSYSCONFDIR=\"/usr/local/etc/gnucash\" -DDATADIR=
\"/usr/local/share/gnucash\" -DLIBDIR=\"/usr/local/lib/gnucash\"
-I../../src/core-utils -I../../src/gnc-module -I../../src/engine
-I../../src/backend/file -I../../src/network-utils -I../../src/app-utils
-I../../src -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0
-I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/libgnomeprint-2.2
-I/usr/include/libart-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-I/usr/include/pango-1.0 -I/usr/include/libgnomeprintui-2.2
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/freetype2
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/libpng12 -DORBIT2=1 -pthread
-I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/libart-2.0 -I/usr/include/gconf/2
-I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1
-I/usr/include/orbit-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0
-I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libpng12
-I/usr/include/libxml2 -DORBIT2=1 -pthread -I/usr/include/libgtkhtml-3.8
-I/usr/include/libgnomeui-2.0 -I/usr/include/gtk-unix-print-2.0
-I/usr/include/libglade-2.0 -I/usr/include/libgnome-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/libart-2.0 -I/usr/include/gconf/2
-I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1
-I/usr/include/orbit-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0
-I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libpng12
-I/usr/include/libxml2  -std=gnu99   -I../../lib/libqof/qof
-I../../lib/libqof/qof -I../../lib/goffice-0.0.4 -DORBIT2=1 -pthread
-I/usr/include/libgsf-1 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-vfs-module-2.0
-I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0
-I/usr/include/gconf/2   -g -O2 -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations   -Werror -Wdeclaration-after-statement
-Wno-pointer-sign -D_FORTIFY_SOURCE=2 -MT gnc-html.lo -MD -MP -MF
".deps/gnc-html.Tpo" -c -o gnc-html.lo gnc-html.c; \
        then mv -f ".deps/gnc-html.Tpo" ".deps/gnc-html.Plo"; else rm -f
".deps/gnc-html.Tpo"; exit 1; fi
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../.. -I../.. -DPREFIX=
\"/usr/local\" -DSYSCONFDIR=\"/usr/local/etc/gnucash\" -DDATADIR=
\"/usr/local/share/gnucash\" -DLIBDIR=\"/usr/local/lib/gnucash\"
-I../../src/core-utils -I../../src/gnc-module -I../../src/engine
-I../../src/backend/file -I../../src/network-utils -I../../src/app-utils
-I../../src -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0
-I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/libgnomeprint-2.2
-I/usr/include/libart-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-I/usr/include/pango-1.0 -I/usr/include/libgnomeprintui-2.2
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/freetype2
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/libpng12 -DORBIT2=1 -pthread
-I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/libart-2.0 -I/usr/include/gconf/2
-I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1
-I/usr/include/orbit-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0
-I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libpng12
-I/usr/include/libxml2 -DORBIT2=1 -pthread -I/usr/include/libgtkhtml-3.8
-I/usr/include/libgnomeui-2.0 -I/usr/include/gtk-unix-print-2.0
-I/usr/include/libglade-2.0 -I/usr/include/libgnome-2.0
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
-I/usr/include/libart-2.0 -I/usr/include/gconf/2
-I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1
-I/usr/include/orbit-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libbonobo-2.0
-I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libpng12
-I/usr/include/libxml2 -std=gnu99 -I../../lib/libqof/qof
-I../../lib/libqof/qof -I../../lib/goffice-0.0.4 -DORBIT2=1 -pthread
-I/usr/include/libgsf-1 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-I/usr/include/libbonobo-2.0 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/gnome-vfs-module-2.0
-I/usr/include/orbit-2.0 -I/usr/include/bonobo-activation-2.0
-I/usr/include/gconf/2 -g -O2 -Wall -Wunused -Wmissing-prototypes
-Wmissing-declarations -Werror -Wdeclaration-after-statement
-Wno-pointer-sign -D_FORTIFY_SOURCE=2 -MT gnc-html.lo -MD -MP
-MF .deps/gnc-html.Tpo -c gnc-html.c  -fPIC -DPIC -o .libs/gnc-html.o
cc1: warnings being treated as errors
gnc-html.c: In function 'gnc_html_print':
gnc-html.c:1328: warning: implicit declaration of function
'gtk_html_print'
make[5]: *** [gnc-html.lo] Error 1
make[5]: Leaving directory
`/home/digger/src/gnucash-2.0.4/src/gnome-utils'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/home/digger/src/gnucash-2.0.4/src/gnome-utils'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/home/digger/src/gnucash-2.0.4/src/gnome-utils'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/digger/src/gnucash-2.0.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/digger/src/gnucash-2.0.4'
make: *** [all] Error 2


> > I looked at the changes to gtkhtml.h at
> > http://svn.gnome.org/viewcvs/gtkhtml/trunk/src/ and it looks to me like
> > the function gtk_html_print has been removed.
> >
> > So, given that Ubuntu is using the development branch I guess I'm not
> > sure where to go from here. I'll add the info to the ubuntu bugreport.
> > However on the Gnucash end, is this a known problem and/or should I file
> > a bugreport with Gnucash?
> 
> Complain to Ubuntu.   Unfortunately there's just not much we can
> do right now if GtkHTML removed printing capability.
> 

Okay.

> > Thanks,
> >
> > digger
> 
> -derek
> 

digger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtkhtml.diff
Type: text/x-patch
Size: 1782 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20070215/5bad3878/attachment.bin 


More information about the gnucash-devel mailing list