[xml] Can't build DLL under MinGW


I can't build libxml2 (the latest CVS snapshot) as DLL under MinGW.
I'm doing the following with the unpacked snapshot:

$ make clean
$ rm config.cache
$ ./autogen.sh --prefix=/usr/local --without-ftp --without-http --without-threads --without-iconv 
$ make

During the linkage process I see:

 gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include -I./include -DWIN32 -g -O2 -Wall -MT pattern.lo -MD -MP -MF 
.deps/pattern.Tpo -c pattern.c -o pattern.o >/dev/null 2>&1
/bin/sh ./libtool --mode=link gcc  -g -O2 -Wall   -o libxml2.la -rpath /usr/local/lib -version-info 8:6:6 
SAX.lo entities.lo encoding.lo error.lo parserInternals.lo parser.lo tree.lo hash.lo list.lo xmlIO.lo 
xmlmemory.lo uri.lo valid.lo xlink.lo HTMLparser.lo HTMLtree.lo debugXML.lo xpath.lo xpointer.lo xinclude.lo 
nanohttp.lo nanoftp.lo DOCBparser.lo catalog.lo globals.lo threads.lo c14n.lo xmlstring.lo xmlregexp.lo 
xmlschemas.lo xmlschemastypes.lo xmlunicode.lo xmlreader.lo relaxng.lo dict.lo SAX2.lo xmlwriter.lo legacy.lo 
chvalid.lo pattern.lo   -lws2_32 
libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared libraries

Actually, I tryed to ./configure without all that "without" options,
but I got the same. If somebody had a success building DLL under
MinGW, please describe me the right way to do this. Any help would be

Regards, Dmitry Samoyloff

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