Project

General

Profile

Actions

Bug #975

closed

DCMTK static binaries on Linux are not really static

Added by Marco Eichelberg over 4 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Category:
Library and Apps
Target version:
Start date:
2021-03-25
Due date:
% Done:

100%

Estimated time:
Module:
Operating System:
Compiler:

Description

The static Linux binaries created by the packaging system are not really static, as glibc will load some shared objects. When running these binaries on a different distributions, errors like the following may occur:

img2dcm: dl-call-libc-early-init.c:37: _dl_call_libc_early_init:
Assertion `sym != NULL' failed.

Apparently this problem can be solved by linking against special static versions of glibc and libstdc++,
which on some distributions are available as packages glibc-static and libstdc++-static
See https://www.systutorials.com/how-to-statically-link-c-and-c-programs-on-linux-with-gcc/.

The static binaries should be built as truly static binaries that do not load any shared object and thus run on any Linux distribution.

Actions

Also available in: Atom PDF