Hi Derek,

On Thu, 2007-02-15 at 11:17 -0500, Derek Atkins wrote:
> Hi,
> 
> digger vermont <[EMAIL PROTECTED]> 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
*** gtkhtml-3.13.6/src/gtkhtml.h	2007-01-22 11:17:57.000000000 -0500
--- gtkhtml-3.13.91/src/gtkhtml.h	2007-02-12 01:57:38.000000000 -0500
***************
*** 25,32 ****
  #include <sys/types.h>
  #include <gtk/gtklayout.h>
  #include <gtk/gtkbindings.h>
- #include <libgnomeprint/gnome-print.h>
- #include <libgnomeprint/gnome-print-job.h>
  
  #include "gtkhtml-types.h"
  #include "gtkhtml-enums.h"
--- 25,30 ----
***************
*** 216,236 ****
  gboolean                   gtk_html_get_animate                   (const GtkHTML             *html);
  
  /* Printing support.  */
- void                       gtk_html_print_with_header_footer      (GtkHTML                   *html,
- 								   GnomePrintContext         *print_context,
- 								   gdouble                    header_height,
- 								   gdouble                    footer_height,
- 								   GtkHTMLPrintCallback       header_print,
- 								   GtkHTMLPrintCallback       footer_print,
- 								   gpointer                   user_data);
- void                       gtk_html_print                         (GtkHTML                   *html,
- 								   GnomePrintContext         *print_context);
- gint                       gtk_html_print_get_pages_num           (GtkHTML                   *html,
- 								   GnomePrintContext         *print_context,
- 								   gdouble                    header_height,
- 								   gdouble                    footer_height);
- void                       gtk_html_print_set_master              (GtkHTML                   *html,
- 								   GnomePrintJob             *print_master);
  void 			   gtk_html_print_page_with_header_footer  (GtkHTML		     *html,
  								   GtkPrintContext 	     *print_context,
  			   					   gdouble		      header_height,
--- 214,219 ----
_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to