Actions
Bug #52429
openMissing include to <algorithm> with gcc-11.2.1
Status:
New
Priority:
Normal
Assignee:
-
Category:
build
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
/home/iurt/rpmbuild/BUILD/ceph-16.2.5/src/common/Formatter.cc: In member function 'virtual void ceph::XMLFormatter::close_section()':
/home/iurt/rpmbuild/BUILD/ceph-16.2.5/src/common/Formatter.cc:449:8: error: 'transform' is not a member of 'std'
449 | std::transform(section.begin(), section.end(), section.begin(),
A possible fix:
--- ceph-16.2.5/src/common/Formatter.h.orig 2021-07-08 16:03:56.000000000 +0200
+++ ceph-16.2.5/src/common/Formatter.h 2021-08-27 10:52:08.515845133 +0200
@@ -12,6 +12,7 @@
#include <stdarg.h>
#include <sstream>
#include <map>
+#include <algorithm>
namespace ceph {
Actions