bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

link error with gettext 0.18.1.1 on cygwin


From: Eric Blake
Subject: link error with gettext 0.18.1.1 on cygwin
Date: Wed, 16 Jun 2010 06:52:51 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

I'm failing to build gettext out of the box on cygwin:

libtool: link: g++ -shared -nostdlib
/usr/lib/gcc/i686-pc-cygwin/4.3.4/crtbegin.o  .libs/set-mode-acl.o
.libs/copy-acl.o .libs/file-has-acl.o
...
.libs/spawnp.o .libs/strchrnul.o .libs/tempname.o  -Wl,--whole-archive
./.libs/libcroco_rpl.a ./.libs/libglib_rpl.a -Wl,--no-whole-archive
../intl/.libs/libintl.dll.a -L/usr/lib /usr/lib/libxml2.dll.a -lz
/usr/lib/libiconv.dll.a /usr/lib/libncurses.dll.a
-L/usr/lib/gcc/i686-pc-cygwin/4.3.4
-L/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../..
/usr/lib/gcc/i686-pc-cygwin/4.3.4/libstdc++.dll.a -lgcc_s -lgcc_s -lcygwin
-luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc_s -lgcc_s
/usr/lib/gcc/i686-pc-cygwin/4.3.4/crtend.o  -Wl,--export-all-symbols
-Wl,--disable-auto-import   -o .libs/cyggettextlib-0-18-1.dll
-Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker
.libs/libgettextlib.dll.a
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'

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.

Any suggestions on what to try next?

-- 
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]