gdcm fails to build with gcc11 compiler:
cd /home/abuild/rpmbuild/BUILD/gdcm-3.0.8/build/Source/MediaStorageAndFileFormat && /usr/bin/c++ -DgdcmMSFF_EXPORTS -I/home/abuild/rpmbuild/BUILD/gdcm-3.0.8/Source/Common -I/home/abuild/rpmbuild/BUILD/gdcm-3.0.8/build/Source/Common -I/home/abuild/rpmbuild/BUILD/gdcm-3.0.8/Source/DataStructureAndEncodingDefinition -I/home/abuild/rpmbuild/BUILD/gdcm-3.0.8/Source/DataDictionary -I/home/abuild/rpmbuild/BUILD/gdcm-3.0.8/Source/InformationObjectDefinition -I/home/abuild/rpmbuild/BUILD/gdcm-3.0.8/Source/MediaStorageAndFileFormat -I/home/abuild/rpmbuild/BUILD/gdcm-3.0.8/Utilities -I/home/abuild/rpmbuild/BUILD/gdcm-3.0.8/build/Utilities -I/usr/include/charls -I/usr/include/openjpeg-2.4 -I/usr/include/json-c -I/usr/include/json -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -fpermissive -O2 -g -DNDEBUG -fPIC -MD -MT Source/MediaStorageAndFileFormat/CMakeFiles/gdcmMSFF.dir/gdcmImageChangePhotometricInterpretation.cxx.o -MF CMakeFiles/gdcmMSFF.dir/gdcmImageChangePhotometricInterpretation.cxx.o.d -o CMakeFiles/gdcmMSFF.dir/gdcmImageChangePhotometricInterpretation.cxx.o -c /home/abuild/rpmbuild/BUILD/gdcm-3.0.8/Source/MediaStorageAndFileFormat/gdcmImageChangePhotometricInterpretation.cxx
[ 131s] In file included from /home/abuild/rpmbuild/BUILD/gdcm-3.0.8/Source/MediaStorageAndFileFormat/gdcmImageChangePhotometricInterpretation.cxx:14:
[ 131s] /home/abuild/rpmbuild/BUILD/gdcm-3.0.8/Source/MediaStorageAndFileFormat/gdcmImageChangePhotometricInterpretation.h: In function 'T gdcm::Clamp(int)':
[ 131s] /home/abuild/rpmbuild/BUILD/gdcm-3.0.8/Source/MediaStorageAndFileFormat/gdcmImageChangePhotometricInterpretation.h:67:32: error: 'numeric_limits' is not a member of 'std'
[ 131s] 67 | return v < 0 ? 0 : (v > std::numeric_limits<t>::max() ? std::numeric_limits<t>::max() : v);</t></t>
The attached patch fixed it for me
4404b770be337bd0d5d3c2289abfd34426433db2
Thanks !