Source: vtk-dicom
Version: 0.8.17-2
Severity: important
Tags: ftbfs
Attempting a rebuild of vtk-dicom (using gcc 15.3.0 with vtk 9.6) got this build
error:
[ 54%] Generating Python wrapper sources for vtkDICOMWriter
/usr/bin/vtkWrapPython-9.6 -MF
//build/vtk-dicom-0.8.17/obj-x86_64-linux-gnu/CMakeFiles/vtkDICOMPython/vtkDICOMWriterPython.cxx.d
@/build/vtk-dicom-0.8.17/obj-x86_64
-linux-gnu/CMakeFiles/vtkDICOMPython/vtkDICOM-python.None.args -o
/build/vtk-dicom-0.8.17/obj-x86_64-linux-gnu/CMakeFiles/vtkDICOMPython/vtkDICOMWriterPython.cxx
/b
uild/vtk-dicom-0.8.17/Source/vtkDICOMWriter.h
/usr/bin/vtkWrapPython-9.6 -MF
/build/vtk-dicom-0.8.17/obj-x86_64-linux-gnu/CMakeFiles/vtkDICOMPython/vtkDICOMVRPython.cxx.d
@/build/vtk-dicom-0.8.17/obj-x86_64-lin
ux-gnu/CMakeFiles/vtkDICOMPython/vtkDICOM-python.None.args -o
/build/vtk-dicom-0.8.17/obj-x86_64-linux-gnu/CMakeFiles/vtkDICOMPython/vtkDICOMVRPython.cxx
/build/vtk
-dicom-0.8.17/Source/vtkDICOMVR.h
/build/vtk-dicom-0.8.17/DicomCli/progress.cxx: In member function ‘virtual void
ProgressObserver::Execute(vtkObject*, long unsigned int, void*)’:
/build/vtk-dicom-0.8.17/DicomCli/progress.cxx:40:14: error: ‘cout’ is not a
member of ‘std’
40 | std::cout << "\r ";
| ^~~~
/build/vtk-dicom-0.8.17/DicomCli/progress.cxx:18:1: note: ‘std::cout’ is
defined in header ‘<iostream>’; this is probably fixable by adding ‘#include
<iostream>’
17 | #include "vtkDICOMUtilities.h"
+++ |+#include <iostream>
18 |
Evidently gcc 15.3 has tightened up C++ conditions (-std=gnu++17 is
now default), so the code now needs an explicit #include <iostream>