MantisBT - CMake
View Issue Details
0012916CMakeModulespublic2012-01-27 16:242016-06-10 14:31
kentwilliams 
Kitware Robot 
normalmajorhave not tried
closedmoved 
MacOS X10.x
CMake 2.8.7 
 
0012916: FindDCMTK.cmake leaving out oflog & bad ordering for Linux linker
DCMTK has a library called 'oflog' that is needed by other DCMTK libraries. It is left out of the list of libraries added to DCMTK_LIBRARIES in FindDCMTK.cmake

On Linux (RHEL6 at least) the linker is stupid, and unless DCMTK's ofstd library is after oflog in the linker list, oflog can't find several symbols that live in ofstd.
Try to build a program that uses DCMTK
Patch to fix:

*** /opt/cmake/share/cmake-2.8/Modules/FindDCMTK.cmake 2011-10-04 16:51:26.000000000 -0500
--- /raid0/homes/kent/FindDCMTK.cmake 2012-01-27 15:23:02.428630000 -0600
***************
*** 56,61 ****
--- 56,62 ----
      ijg12
      ijg16
      ijg8
+ oflog
      ofstd)
  
    find_library(DCMTK_${lib}_LIBRARY
No tags attached.
Issue History
2012-01-27 16:24kentwilliamsNew Issue
2012-03-14 11:03Michael OnkenNote Added: 0028918
2012-04-11 18:13Rolf Eike BeerCategoryCMake => Modules
2012-08-11 21:35David ColeStatusnew => backlog
2012-08-11 21:35David ColeNote Added: 0030394
2016-06-10 14:28Kitware RobotNote Added: 0041973
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0028918)
Michael Onken   
2012-03-14 11:03   
A corrected version is part of the CommonTK project on github, see https://github.com/commontk/CTK/blob/master/Utilities/CMake/FindDCMTK.cmake [^]
(0030394)
David Cole   
2012-08-11 21:35   
Sending old, never assigned issues to the backlog.

(The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
(0041973)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.