The build stops when trying to link against the icu libraries. According to the dcmtk documentation it should be possible to either use libiconv, icu or iconv from the standard library. So forcing icu does not seem to be a terribly good idea, since icu-64 now went stable.
Sorry, I was too quick. The error is not caused by icu but stricter checking by gcc-9. Clang-8.0 also fails. The offending code is in line 57 of file ofstd/include/dcmtk/ofstd/variadic/helpers.h So the title should be sci-libs/dcmtk-3.6.3 fails to build with gcc-9.1.0.
Without fixing the code itself, the build succeeds when adding "-Wno-error=narrowing" to CXXFLAGS.
+1
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d648afac343e93926af5bfb7bf5a0ce31eb8a655 commit d648afac343e93926af5bfb7bf5a0ce31eb8a655 Author: David Seifert <soap@gentoo.org> AuthorDate: 2019-06-22 13:16:22 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2019-06-22 13:16:22 +0000 sci-libs/dcmtk: Fix building against GCC 9 Closes: https://bugs.gentoo.org/686592 Package-Manager: Portage-2.3.67, Repoman-2.3.15 Signed-off-by: David Seifert <soap@gentoo.org> sci-libs/dcmtk/dcmtk-3.6.3.ebuild | 3 ++- sci-libs/dcmtk/files/dcmtk-3.6.3-fix-gcc9.patch | 29 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-)