GNOME Bugzilla – Bug 732733
Variable exports are failing on MingW (_imp__xmlXPathNAN, _imp_xmlFree)
Last modified: 2021-07-05 13:27:17 UTC
If I try to build libxml2 v2.9.1 on MingW-w64/MSYS, if I run $ ./configure $ make c:\t\libxml2-2.9.1/xmllint.c:326: undefined reference to `_imp__xmlFree' I can get a bit further like this: $ ./configure --with-threads=yes --with-thread-allow $ make Then I get these linker errors: c:\t\libxml2-2.9.1/testapi.c:327: undefined reference to `_imp__xmlXPathNAN' Any suggestions on a workabout?
There seems to be an issue with creating dynamic libraries. With ./configure --enable-shared, the build fails during the building of the tests, but at that stage .lib/libxml2.a is present, but no .dlls or .so files. To my understanding, the build process seems to be trying to import symbols mangled for a shared library from a static library. - that's my hunch, could be wrong on that. Anyway I can get the build to complete by doing ./configure --disable-shared but then I don't get a shared library :(
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/libxml2/-/issues/ Thank you for your understanding and your help.