Package Details: mingw-w64-libxml2 2.9.4-1

Git Clone URL: (read-only)
Package Base: mingw-w64-libxml2
Description: XML parsing library, version 2 (mingw-w64)
Upstream URL:
Licenses: LGPL
Submitter: brcha
Maintainer: xantares
Last Packager: xantares
Votes: 10
Popularity: 0.005131
First Submitted: 2012-06-13 19:59
Last Updated: 2016-05-25 18:47

Latest Comments

xantares commented on 2014-10-26 09:14

yeah me too, but the binaires produced are correct, I tested both shared and static libs.

digifuzzy commented on 2014-10-25 20:09

updating this package I get a weird output sequence.
building will report an error of invalid pointer, dump a backtrace and memory map and then ask if package is to be installed.

Copy of sequence available at:

xantares commented on 2013-11-04 07:50

Seems he disowned, I updated it for him.

xantares commented on 2013-09-19 16:50


I think the missing !libtool was the cause:


xantares commented on 2013-09-19 16:48


I think i figured it out: you need the !libtool option instead of modifying LIBS


xantares commented on 2013-09-13 18:16


This fixes the url, the link flag, and the build dir creation:


xantares commented on 2013-09-13 10:27

Hey, it seems I'm full of crap for this linking bug.
But the http link is still more reliable.

xantares commented on 2013-09-13 10:26

Hey, it seems I'm full of crap for this linking bug.
But the html link is still more reliable.

ant32 commented on 2013-09-12 23:59

@xantares could you post a fixed src tarball for others to use until brcha is back again?

xantares commented on 2013-09-12 21:30

This time I've got a real bug :]

When you try to link a sample C executable with libxml2:
#include "libxml/parser.h"
int main()
printf("%d\n", xmlHasFeature(XML_WITH_THREAD));
return 0;

$ i686-w64-mingw32-gcc t_libxml2.c -I/usr/i686-w64-mingw32/include/libxml2
$ ./a.exe
err:module:import_dll Library iconv.dll (which is needed by L"Z:\\home\\xantares\\projects\\mingw-w64-test\\libxml2-2.dll") not found
err:module:import_dll Library libxml2-2.dll (which is needed by L"Z:\\home\\xantares\\projects\\mingw-w64-test\\a.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\home\\xantares\\projects\\mingw-w64-test\\a.exe" failed, status c000

The problem is that libxml2 links both to symbols in libiconv.dll altough mingw-w64-libiconv ships libiconv-2.dll

One can fix that by replacing the iconv libs var: LIBS=-liconv in the PKGBUILD near the first patch line:
sed -i "s|liconv|liconv-2|g" configure

Check also the package mingw-w64-testsuite.


All comments