Had to hack "configure" to allow it to complete

Dave Peticolas dave@krondo.com
Tue, 26 Sep 2000 14:32:12 -0700


Eric Hanchrow writes:
> 
> This may be a problem with autoconf, and not GnuCash.  But anyway ...
> 
> Using the 1.5.2 that's in CVS, and the latest Gnome stuff from Helix,
> I did "autogen.sh", and saw this:
> 
>     checking for gtk_html_new in -lgtkhtml... no
>     configure: error: Cannot find gtkhtml.  See the README for more info.
> 
> In `config.log', I found this evidence:
> 
>     configure:6008: checking for gtk_html_new in -lgtkhtml
>     configure:6027: gcc -o conftest -g -O2 -Wall -Wunused -Wmissing-prototype
> s -Wmissing-declarations  -Wall -Werror-implicit-function-declaration   conft
> est.c -lgtkhtml -rdynamic -L/usr/lib -L/usr/X11R6/lib -lgtkhtml -lgdk_pixbuf 
> -ltiff -ljpeg -lpng -lgnomeprint -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE 
> -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -laudiof
> ile -lm -ldb -lglib -ldl -lxml -lz -lm  -lm 1>&5
>     /usr/lib/libgnomeprint.so: undefined reference to `unicode_iconv_open'
>     /usr/lib/libgnomeprint.so: undefined reference to `unicode_init'
>     /usr/lib/libgnomeprint.so: undefined reference to `unicode_iconv'
>     collect2: ld returned 1 exit status
> 
> I figured the problem was simply that configure wasn't passing
> "-lunicode" to the linker.  So I edited "configure" by changing the
> line 
> 
>         LIBS="-lgtkhtml $GTKHTML_LIBS $LIBS"
> 
> to
> 
>         LIBS="-lgtkhtml $GTKHTML_LIBS $LIBS -lunicode"
> 
> That worked, but of course it's not a real fix; it's just a
> workaround.  I suspect that "autoconf" doesn't realize that gtkhtml
> requires -lunicode.  And if I'm right, I guess I should report this as
> a bug against autoconf.  Have I in fact understood the problem
> correctly?

As Jon T. pointed out, it's a bug in the configure data for gnome-print.
It should be fixed in the next version of gnome-print, but your temporary
fix will be fine in the meatime, thought you'd probably want to patch
configure.in, not configure.

dave