[Debian-med-packaging] packages using dcmtk failing to build with missing -lnsl are actually an issue in dcmtk
Aurelien Jarno
aurel32 at debian.org
Wed Mar 13 18:02:00 GMT 2024
control: reassign 1066422 libdcmtk-dev
control: reassign 1066423 libdcmtk-dev
control: forcemerge 1066422 1066423
control: retitle 1066422 libdcmtk-dev: missing dependency on libnsl-dev
control: affects 1066422 plastimatch
control: affects 1066423 sight
Hi,
There are 2 packages using dcmtk failing to build in the latest archive
rebuild:
#1066422 plastimatch: FTBFS: ld: cannot find -lnsl: No such file or directory
#1066423 sight: FTBFS: ld.gold: error: cannot find -lnsl
Investigating, it appears that the issue is actually at the dcmtk
package level. They try to link with -lnsl because dcmtk says so:
$ grep nsl /usr/lib/x86_64-linux-gnu/cmake/dcmtk/DCMTKTargets.cmake
INTERFACE_LINK_LIBRARIES "DCMTK::config;nsl;pthread;rt"
dcmtk actually does not depends on libnsl-dev, but gets this dependency
through the libwrap0-dev package. Therefore it seems that libdcmtk-dev
is missing a dependency on libnsl-dev. In addition it might be good to
add it as a build-dependency of the dcmtk package, to ensure it
continues building even if libwrap0-dev drops it at some point.
Regards
Aurelien
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien at aurel32.net http://aurel32.net
More information about the Debian-med-packaging
mailing list