Bug #787
closedDCMTK 3.6.2 compilation fails when creating static binaries due to libxml2 dependency
50%
Description
Compilation of DCMTK 3.6.2 static binaries on Linux, i.e. with LDFLAGS = -static
, fails when libxml2 support is enabled.
Apparently libxml2 depends on liblzma, so XMLLIBS = -lxml2 -llzma
is needed instead of the current XMLLIBS = -lxml2
.
For some reasone, this does not cause compile errors when libxml2 is dynamically linked.
Since libxml2 can (as far as I know) be compiled without lzma support, the preferrable solution would be to add
a configure test for the presence of liblzma. If the library is found, -llzma should be added to XMLLIBS.
Updated by Jörg Riesmeier about 8 years ago
- Module set to config
If static linkage is used, "xml2-config" should be called with "--static" in addition to "--libs":
> xml2-config --libs --static -lxml2 -lz -lpthread -lm
This change is at least needed for the Auoconf build systems (see "config/configure.in").
Updated by Marco Eichelberg over 7 years ago
- Target version changed from 3.6.3 to 3.6.6
Updated by Jan Schlamelcher over 6 years ago
- Assignee set to Jan Schlamelcher
- Target version changed from 3.6.6 to 3.6.5
Updated by Michael Onken over 5 years ago
- Target version changed from 3.6.5 to 3.6.6
Updated by Marco Eichelberg about 5 years ago
- Target version changed from 3.6.6 to 3.6.7
Updated by Marco Eichelberg over 4 years ago
- Status changed from New to WontFix
- Target version deleted (
3.6.7) - % Done changed from 0 to 50
This issue has meanwhile been fixed in the build scripts for CMake based builds. We will not fix it for the (deprecated) autoconf toolchain.