Cmake 3.11.4 version fails to install on solaris 11 because of c++11 dependency
Hi Team,
I am trying to install cmake 3.11.4 version in solaris 11 machine. Below are the steps followed,
- Extract cmake-3.11.4 source code
- cd cmake-3.11.4
- ./bootstrap -- runs fine ( please refer attached bootstrap.txt for reference)
- make -- fails with below error (please refer attached make.txt for full logs)
/scratch/pankakum/cmake-3.11.4/Utilities/cmjsoncpp/src/lib_json/json_reader.cpp: In member function ‘std::string Json::Reader::getLocationLineAndColumn(Json::Reader::Location) const’:
/scratch/pankakum/cmake-3.11.4/Utilities/cmjsoncpp/src/lib_json/json_reader.cpp:36:18: error: ‘snprintf’ is not a member of ‘std’
#define snprintf std::snprintf
This indecates that the gcc compiler is not using c++11 std. I have gcc 4.8.2 (GCC) version installed.
I tried adding <cstdio>
to json_reader.cpp
file as well but it did not help. So any help is appreciated.
EDIT: See also #18112 (closed).
Edited by Brad King