After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732733 - Variable exports are failing on MingW (_imp__xmlXPathNAN, _imp_xmlFree)
Variable exports are failing on MingW (_imp__xmlXPathNAN, _imp_xmlFree)
Status: RESOLVED OBSOLETE
Product: libxml2
Classification: Platform
Component: general
git master
Other Windows
: Normal normal
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2014-07-04 10:19 UTC by Joel Holdsworth
Modified: 2021-07-05 13:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Joel Holdsworth 2014-07-04 10:19:40 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?
Comment 1 Joel Holdsworth 2014-07-04 14:26:01 UTC
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 :(
Comment 2 GNOME Infrastructure Team 2021-07-05 13:27:17 UTC
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.