Andrew Christianson created MINIFI-367: ------------------------------------------
Summary: PutFileTests compilation error in 'make docker' Key: MINIFI-367 URL: https://issues.apache.org/jira/browse/MINIFI-367 Project: Apache NiFi MiNiFi Issue Type: Bug Components: C++ Reporter: Andrew Christianson {{[ 75%] Building CXX object CMakeFiles/PutFileTests.dir/libminifi/test/unit/PutFileTests.cpp.o In file included from /opt/minifi/thirdparty/yaml-cpp-yaml-cpp-0.5.3/include/yaml-cpp/yaml.h:10:0, from /opt/minifi/libminifi/test/unit/../unit/../../include/ConfigurationListener.h:30, from /opt/minifi/libminifi/test/unit/../unit/../../include/FlowController.h:47, from /opt/minifi/libminifi/test/unit/../unit/ProvenanceTestHelper.h:33, from /opt/minifi/libminifi/test/unit/../TestBase.h:38, from /opt/minifi/libminifi/test/unit/PutFileTests.cpp:28: /opt/minifi/thirdparty/yaml-cpp-yaml-cpp-0.5.3/include/yaml-cpp/parser.h:43:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations] std::auto_ptr<Scanner> m_pScanner; ^~~~~~~~ In file included from /usr/include/c++/6.4.0/memory:81:0, from /opt/minifi/libminifi/test/unit/PutFileTests.cpp:22: /usr/include/c++/6.4.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ In file included from /opt/minifi/thirdparty/yaml-cpp-yaml-cpp-0.5.3/include/yaml-cpp/yaml.h:10:0, from /opt/minifi/libminifi/test/unit/../unit/../../include/ConfigurationListener.h:30, from /opt/minifi/libminifi/test/unit/../unit/../../include/FlowController.h:47, from /opt/minifi/libminifi/test/unit/../unit/ProvenanceTestHelper.h:33, from /opt/minifi/libminifi/test/unit/../TestBase.h:38, from /opt/minifi/libminifi/test/unit/PutFileTests.cpp:28: /opt/minifi/thirdparty/yaml-cpp-yaml-cpp-0.5.3/include/yaml-cpp/parser.h:44:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations] std::auto_ptr<Directives> m_pDirectives; ^~~~~~~~ In file included from /usr/include/c++/6.4.0/memory:81:0, from /opt/minifi/libminifi/test/unit/PutFileTests.cpp:22: /usr/include/c++/6.4.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ In file included from /opt/minifi/thirdparty/yaml-cpp-yaml-cpp-0.5.3/include/yaml-cpp/yaml.h:11:0, from /opt/minifi/libminifi/test/unit/../unit/../../include/ConfigurationListener.h:30, from /opt/minifi/libminifi/test/unit/../unit/../../include/FlowController.h:47, from /opt/minifi/libminifi/test/unit/../unit/ProvenanceTestHelper.h:33, from /opt/minifi/libminifi/test/unit/../TestBase.h:38, from /opt/minifi/libminifi/test/unit/PutFileTests.cpp:28: /opt/minifi/thirdparty/yaml-cpp-yaml-cpp-0.5.3/include/yaml-cpp/emitter.h:125:8: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations] std::auto_ptr<EmitterState> m_pState; ^~~~~~~~ In file included from /usr/include/c++/6.4.0/memory:81:0, from /opt/minifi/libminifi/test/unit/PutFileTests.cpp:22: /usr/include/c++/6.4.0/bits/unique_ptr.h:49:28: note: declared here template<typename> class auto_ptr; ^~~~~~~~ /opt/minifi/libminifi/test/unit/PutFileTests.cpp: In function 'uint64_t getModificationTime(std::__cxx11::string)': /opt/minifi/libminifi/test/unit/PutFileTests.cpp:52:19: error: 'struct stat' has no member named 'st_mtimespec'; did you mean 'st_mtim'? return result.st_mtimespec.tv_sec; ^~~~~~~~~~~~ make[2]: *** [CMakeFiles/PutFileTests.dir/build.make:63: CMakeFiles/PutFileTests.dir/libminifi/test/unit/PutFileTests.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:876: CMakeFiles/PutFileTests.dir/all] Error 2 make: *** [Makefile:163: all] Error 2}} -- This message was sent by Atlassian JIRA (v6.4.14#64029)