libiconv not found, so character conversion unsupported

Bug #1702307 reported by Sjors Gielen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dcmtk (Ubuntu)
Confirmed
Undecided
Debian Med

Bug Description

DCMTK 3.6.1 has an option to use libiconv to support character conversion. It looks like this option is explicitly turned on in the rules file:

    -DDCMTK_WITH_ICONV:BOOL=ON \

However, since the Debian package does not depend on libiconv, it is not found during package build, which is ignored with only a warning:

    -- Could NOT find LIBICONV (missing: LIBICONV_LIBRARY)
    -- Warning: ICONV support will be disabled because libiconv was not found. Correct LIBICONV_LIBDIR and LIBICONV_INCLUDE_DIR and re-enable DCMTK_WITH_ICONV.

This causes the DCMTK tools to be unable to convert to UTF-8:

(from 'man dcmdump')
         +U8 --convert-to-utf8
                convert all element values that are affected
                by Specific Character Set (0008,0005) to UTF-8

                # requires support from the libiconv toolkit

$ dcmdump --convert-to-utf8
$dcmtk: dcmdump v3.6.1 2015-09-24 $

dcmdump: Dump DICOM file and data set
error: Unknown option --convert-to-utf8

And in the code, when .convertToUTF8() is called, a 'bad' OFCondition with text "No character encoding library available" is returned.

I would expect, especially considering WITH_ICONV is explicitly enabled, that iconv would be a necessary dependency for the package, and the resulting build is able to use iconv to convert incoming Dicoms to UTF-8.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: dcmtk 3.6.1~20150924-5
ProcVersionSignature: Ubuntu 4.4.0-83.106-generic 4.4.70
Uname: Linux 4.4.0-83-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.6
Architecture: amd64
CurrentDesktop: XFCE
Date: Tue Jul 4 15:47:31 2017
InstallationDate: Installed on 2015-02-18 (867 days ago)
InstallationMedia: Xubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140723)
SourcePackage: dcmtk
UpgradeStatus: Upgraded to xenial on 2017-03-02 (124 days ago)

Revision history for this message
Sjors Gielen (sgielen) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in dcmtk (Ubuntu):
status: New → Confirmed
Dylan Aïssi (daissi)
Changed in dcmtk (Ubuntu):
assignee: nobody → Debian Med (debian-med)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.