Project

General

Profile

Actions

Bug #787

closed

DCMTK 3.6.2 compilation fails when creating static binaries due to libxml2 dependency

Added by Marco Eichelberg about 8 years ago. Updated over 4 years ago.

Status:
WontFix
Priority:
Normal
Assignee:
Jan Schlamelcher
Category:
Configuration
Target version:
-
Start date:
2017-07-26
Due date:
% Done:

50%

Estimated time:
Module:
config
Operating System:
Compiler:

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.

Actions #1

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").

Actions #2

Updated by Marco Eichelberg over 7 years ago

  • Target version changed from 3.6.3 to 3.6.6
Actions #3

Updated by Jan Schlamelcher over 6 years ago

  • Assignee set to Jan Schlamelcher
  • Target version changed from 3.6.6 to 3.6.5
Actions #4

Updated by Michael Onken over 5 years ago

  • Target version changed from 3.6.5 to 3.6.6
Actions #5

Updated by Marco Eichelberg about 5 years ago

  • Target version changed from 3.6.6 to 3.6.7
Actions #6

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.

Actions

Also available in: Atom PDF