• Bug#1102781: orthanc-webviewer: FTBFS: undefined reference to `DcmInput

    From =?utf-8?Q?=C3=89tienne?= Mollier@21:1/5 to All on Sun Apr 13 12:00:01 2025
    Hi Mathieu, Hi Sébastien,

    Dcmtk and Orthanc ecosystem seem tangled in difficult migration
    to testing. There is the present bug #1102781 affecting the
    package orthanc-webviewer, and there are also dcmtk excuses[1]
    raising run time problems in orthanc and orthanc-wsi.

    [1]: https://qa.debian.org/excuses.php?package=dcmtk

    Dcmtk needed a number of security patches lately, so it is
    understandable if some things are hardly actionable on dcmtk
    side, and on the other hand, we are in transition freeze for
    almost a month now, so migration to testing will likely require
    an unblock request. Per chance, do you have an idea what's up
    and how to get back on tracks?

    Excerpt from Santiago Vila's bug report:
    [ 95%] Linking CXX shared library libOrthancWebViewer.so
    /usr/bin/cmake -E cmake_link_script CMakeFiles/OrthancWebViewer.dir/link.txt --verbose=1
    /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libOrthancFramework.a(FromDcmtkBridge.cpp.o): in function `Orthanc::SetString(DcmDataset&, DcmTag const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
    const&) [clone .isra.0]':
    (.text+0x158): undefined reference to `DcmItem::putAndInsertString(DcmTag const&, char const*, bool)'
    /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libOrthancFramework.a(FromDcmtkBridge.cpp.o): in function `Orthanc::GetTagNameInternal(DcmTag&)':
    (.text+0xe14): undefined reference to `DcmTag::getTagName()'
    /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libOrthancFramework.a(FromDcmtkBridge.cpp.o): in function `Orthanc::FromDcmtkBridge::LoadExternalDictionaries(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::
    allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&)':
    (.text+0x12a9): undefined reference to `dcmDataDict'
    /usr/bin/ld: (.text+0x12b3): undefined reference to `GlobalDcmDataDictionary::wrlock()'
    /usr/bin/ld: (.text+0x1353): undefined reference to `DcmDataDictionary::clear()'
    [… trimmed a sprawl of linking issues …]
    /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libOrthancFramework.a(FromDcmtkBridge.cpp.o): in function `Orthanc::FromDcmtkBridge::SaveToMemoryBuffer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&,
    DcmDataset&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) [clone .cold]':
    (.text.unlikely+0x3d7b): undefined reference to `DcmOutputBufferStream::~DcmOutputBufferStream()'
    /usr/bin/ld: (.text.unlikely+0x3d83): undefined reference to `DcmFileFormat::~DcmFileFormat()'
    /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../../lib/libOrthancFramework.a(FromDcmtkBridge.cpp.o): in function `_GLOBAL__sub_I_FromDcmtkBridge.cpp':
    (.text.startup+0xb91): undefined reference to `DiRegister::DiRegister()' /usr/bin/ld: (.text.startup+0xb98): undefined reference to `DiRegister::~DiRegister()'
    collect2: error: ld returned 1 exit status
    /usr/bin/c++ -fPIC -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>> [too-long-redacted] ncpp -lpugixml -luuid -lsqlite3
    make[3]: *** [CMakeFiles/OrthancWebViewer.dir/build.make:242: libOrthancWebViewer.so.2.9] Error 1
    make[3]: Leaving directory '/<<PKGBUILDDIR>>/Build'
    make[2]: *** [CMakeFiles/Makefile2:126: CMakeFiles/OrthancWebViewer.dir/all] Error 2
    make[2]: Leaving directory '/<<PKGBUILDDIR>>/Build'
    make[1]: *** [Makefile:139: all] Error 2
    make[1]: Leaving directory '/<<PKGBUILDDIR>>/Build'
    dh_auto_build: error: cd Build && make -j2 "INSTALL=install --strip-program=true" VERBOSE=1 returned exit code 2
    make: *** [debian/rules:17: binary] Error 25
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
    --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

    https://people.debian.org/~sanvila/build-logs/202504/

    For information,
    --
    .''`. Étienne Mollier <emollier@debian.org>
    : :' : pgp: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
    `. `' sent from /dev/pts/1, please excuse my verbosity
    `- on air: Leap Day - Mind The Gap

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmf7iNQACgkQeTz2fo8N EdpU9A/9F3FcdPV4mN/rzzNKB7qQqXO9+tpcwcS0snJVz4JAwJtyyJ2JDdVh/rax u+ZTVGsxlosA71NDg5kp11ZY90AShobhRfnu31B0a95RetXbvtDUlzmt55XbG9+6 CjF5DgirE+hi1vaP8Ty/yYIG6XO6T/vLiHjSp++ciqGNdoaWBEJtgA5gSeIVHWWJ gc5qn6gWMJnt6iOSNxljq0lEZKCD2OLSTttSqlvO6JBN8syjcj4O+YyZQTGr9bC4 eVka4KpoNq7hA+c0NOyEWAhT6yyWKsvfIrYRPzut63WIJS86Ajh4PwG89G0+1N1w 0HeHUCZW1RexC173YBp3be9hKQTFYtn/Eomjnij9gVfJsqTgaywxmbwcZnzuog/2 q8d3R7az6miJ2DgdxqYK1NeAhIPfV0yK0eJqXxp+oQXV6JKWdeK7r8/S/7ug2GEV ZxgQFuM5kihUFYJCa5k9ZbIHIFafihd8xy48lZWD+yzRwCZSt2aYeB0t4fVQjy6x ASb5z2+PJR4H+tpkKSUgbjSih7RkdxkGGKjusReRe7KVw4OlH71q3EKhmKX53QqP IcOKiwYwdT8QfyTNEOgRjGErWuiLohkFxHUdVXL0xfl4cJKRrLHzofB+EsjXPKaE H9rX7zA3Rrvk1g4P/aGweVbyHyWdszs+jAEc14kiAC
  • From =?utf-8?Q?=C3=89tienne?= Mollier@21:1/5 to All on Fri Apr 18 11:50:01 2025
    Hi Sébastien,

    Sébastien Jodogne, on 2025-04-14:
    I have released orthanc-webviewer_2.9+dfsg-2, which has just been
    accepted into unstable. As Trixie soft freeze is tomorrow, I guess
    everything is OK now.

    Thank you, this sorts the situation for orthanc-webviewer.
    There are still issues affecting orthanc and orthanc-wsi
    though[1]. I consider opening bugs to keep issues properly
    separate; having a look at autopkgtets logs, there seems to be
    different issues at play.

    [1]: https://qa.debian.org/excuses.php?package=dcmtk

    Have a nice day, :)
    --
    .''`. Étienne Mollier <emollier@debian.org>
    : :' : pgp: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
    `. `' sent from /dev/pts/4, please excuse my verbosity
    `- on air: Ayreon - Phase I: Singularity

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmgCH0MACgkQeTz2fo8N Edo7lg//adgIY/H6MCotcUReLcLphgA48MIWOod07mFIUwgrPb4UXr5Ja4FKpVsg kUYLuzDd1xss5sbwAqheOK4wuAEEUsLgFMcXhrSYoL4/SG7nTzbkmgBJNeGZkw1H S9j0IjJDfifvFBE229E87TeZc1WnfUTQm7vtVNPicaUb0LMedpd30zi3g74FFm2L /SMb7O7L2dl/v8mYy1bodQ25ipulmFxE7VD/5O6849Ftglq/aOxKvspeL3cCHxte PXA/F1DLNQrRTsq3KHBE0mz2giajiqoAF+cDHef0Ow/OcScERJiJFoKOpupv9oIS o8gMvvQFcBqqC3ITBi/kzx6qwtH8qm7yO3ys5hnIZazsb5tlvOtBohdvg3tV9Kp/ 979B3NLznM4o/iohJ3Nl10Eov2Suc1gQvly1Ko0FohpVtMngGFi6flspT4ZasVv+ Uxj1gxTLipM1PZyOENmVQ3pZkVyTCXFMHcijKbBKjU3ANH6ScwsM8jWH0HKTyjnK RQI5F3p7ToRJHCEEZX5g/wYWFrmh1PHt/cTT7zF7ENfR1qBrzzlOrfFgivht4B2f 6EROMCORExnh9OCNemG6Mc0/ptSrdRoaxhwLFB2qPnce7XbswN0PQ21QKTXy0+yU FctgfmKesQ6AWUvjROmseahFEoAcMKXX+ZWd