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 707545 - xml2-config doesn't report lzma as dependency
xml2-config doesn't report lzma as dependency
Status: RESOLVED FIXED
Product: libxml2
Classification: Platform
Component: general
git master
Other Linux
: Normal minor
: ---
Assigned To: Daniel Veillard
libxml QA maintainers
Depends on:
Blocks:
 
 
Reported: 2013-09-05 09:11 UTC by Renato Golin
Modified: 2017-09-07 18:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Renato Golin 2013-09-05 09:11:19 UTC
As of 2.8.0, libXML2 depends on LZMA (bug #659404), but "xml2-config --libs" doesn't report as so.

Normally, that wouldn't make much difference, since if the xml2 package is installed, so is lzma, or if libxml2 is compiled successfully, so was lzma.

But when the libraries are copied by hand, as it happens during cross-compilation, build systems (such as CMake), that rely on that output, don't get the correct dependency, and the link process fails.

With current GNU linker (as of 2.21) requiring explicit dependencies, it'd be good if xml2-config could report lzma as a library to include in the linker command-line.

I'm currently adding the -llzma myself as an additional library in CMake, but that's not ideal.