[xml] win32 threading enabled builds with mingw-w64 64bit?



On a Win8.1 64-bit machine with a 64-bit mingw-w64 4.8.2 toolchain, I get this build fail

  CCLD   testThreads.exe
testThreadsWin32.o:testThreadsWin32.c:(.text+0x88): undefined reference to `xmlParseFile'
collect2.exe: error: ld returned 1 exit status

The artifacts appear to have been built correctly, but the test confirmation fails. The error does not occur when I use `--without-threads`.

From the linker error, it appears I've misconfigured the build, perhaps leaving out a critical define.

Before I spend too much more time spelunking, would you confirm that 2.9.1 can be build with `--with-threads=win32` and/or spot my configuration or build mistake below?


C:\Users\Jon\Documents\CDev\buildlets-git\libxml2-2.9.1>gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/apps/devtools/mingw/bin/../libexec/gcc/x86_64-w64-mingw32/4.8.2/lto-wrapper.exe
Target: x86_64-w64-mingw32
...[SNIP]...
Thread model: win32
gcc version 4.8.2 (rev0, Built by MinGW-W64 project)


C:\Users\Jon\Documents\CDev\buildlets-git\libxml2-2.9.1>sh -c "./configure --prefix=C:/Users/Jon/Downloads/temp --without-debug --without-docbook --without-sax1 --without-python --with-threads=win32 --build=x86_64-w64-mingw32 CFLAGS=-mms-bitfields CPATH='C:/devlibs/libiconv/x64/1.14/include;C:/devlibs/zlib/x64/1.2.8/include;C:/devlibs/liblzma/x64/5.0.5/include' LIBRARY_PATH='C:/devlibs/libiconv/x64/1.14/lib;C:/devlibs/zlib/x64/1.2.8/lib;C:/devlibs/liblzma/x64/5.0.5/lib'"


C:\Users\Jon\Documents\CDev\buildlets-git\libxml2-2.9.1>sh -c "make CPATH='C:/devlibs/libiconv/x64/1.14/include;C:/devlibs/zlib/x64/1.2.8/include;C:/devlibs/liblzma/x64/5.0.5/include' LIBRARY_PATH='C:/devlibs/libiconv/x64/1.14/lib;C:/devlibs/zlib/x64/1.2.8/lib;C:/devlibs/liblzma/x64/5.0.5/lib' LDFLAGS='-no-undefined'"


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