[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: link error with gettext 0.18.1.1 on cygwin
From: |
Bruno Haible |
Subject: |
Re: link error with gettext 0.18.1.1 on cygwin |
Date: |
Thu, 17 Jun 2010 03:33:53 +0200 |
User-agent: |
KMail/1.9.9 |
Hi Eric,
Eric Blake wrote:
> I'm failing to build gettext out of the box on cygwin:
> ...
> Creating library file: .libs/libgettextlib.dll.a
> ./.libs/libcroco_rpl.a(libcroco_rpl_la-cr-sel-eng.o): In function
> `lang_pseudo_class_handler':
> /home/eblake/gettext-0.18.1.1/gettext-tools/gnulib-lib/libcroco/cr-sel-eng.c:144:
> undefined reference to `_xmlFree'
Hmm, I haven't seen this error, because I never had libxml2 preinstalled
when building gettext on Cygwin.
> Notice that /usr/lib/libxml2.dll.a is listed on the link line, and it
> occurs after ./.libs/libcroco_rpl.a, so the only thing I can think of is
> that libcroco/cr-sel-eng.c is missing a #include, or that cygwin's
> libxml2.dll.a is incomplete. cr-sel-eng.h includes the lines:
>
> #ifdef CROCO_HAVE_LIBXML2
> #include <libxml/tree.h>
> #endif
>
> I also see #define CROCO_HAVE_LIBXML2 1 in
> gnulib-lib/libcroco/libcroco-config.h. So I can't figure out why xmlFree
> is not being properly declared, or what missing #include to add.
With the information that you gave, I cannot guess it either.
> Any suggestions on what to try next?
You can try configuring with --without-libxml2-prefix. Then the installed
libxml2 will not be used, leading to a bigger libgettextlib, but hopefully
no link error.
Bruno