facebookincubator / fizz

C++14 implementation of the TLS-1.3 standard
Other
1.14k stars 162 forks source link

make[2]: *** [bin/HandshakeTest] error 1 #44

Closed z6833 closed 4 years ago

z6833 commented 4 years ago

hello, I got a problem while compiling fizz on Centos7.7. The detail information :

[root@localhost fbuild]# make [ 24%] Built target fizz [ 24%] Built target BogoShim [ 26%] Built target fizz_test_support [ 27%] Linking CXX executable bin/HandshakeTest /usr/local/lib/libfolly.a(Uri.cpp.o):在函数‘bool boost::regex_match<char const, std::allocator<boost::sub_match<char const> >, char, boost::regex_traits<char, boost::cpp_regex_traits > >(char const, char const, boost::match_results<char const, std::allocator<boost::sub_match<char const> > >&, boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits > > const&, boost::regex_constants::_match_flags)’中: /usr/local/boost/include/boost/regex/v4/regex_match.hpp:50:对‘boost::re_detail_107200::perl_matcher<char const, std::allocator<boost::sub_match<char const> >, boost::regex_traits<char, boost::cpp_regex_traits > >::match()’未定义的引用 /usr/local/lib/libfolly.a(Uri.cpp.o):在函数‘boost::re_detail_107200::perl_matcher<char const, std::allocator<boost::sub_match<char const> >, boost::regex_traits<char, boost::cpp_regex_traits > >::perl_matcher(char const, char const, boost::match_results<char const, std::allocator<boost::sub_match<char const> > >&, boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits > > const&, boost::regex_constants::_match_flags, char const)’中: /usr/local/boost/include/boost/regex/v4/perl_matcher.hpp:391:对‘boost::re_detail_107200::perl_matcher<char const, std::allocator<boost::sub_match<char const> >, boost::regex_traits<char, boost::cpp_regex_traits > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits > > const&, boost::regex_constants::_match_flags)’未定义的引用 /usr/local/lib/libfolly.a(Uri.cpp.o):在函数‘bool boost::regex_search<char const, std::allocator<boost::sub_match<char const> >, char, boost::regex_traits<char, boost::cpp_regex_traits > >(char const, char const, boost::match_results<char const, std::allocator<boost::sub_match<char const> > >&, boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits > > const&, boost::regex_constants::_match_flags, char const)’中: /usr/local/boost/include/boost/regex/v4/regex_search.hpp:56:对‘boost::re_detail_107200::perl_matcher<char const, std::allocator<boost::sub_match<char const> >, boost::regex_traits<char, boost::cpp_regex_traits > >::find()’未定义的引用 /usr/local/lib/libfolly.a(JSONSchema.cpp.o):在函数‘bool boost::regex_search<gnu_cxx::normal_iterator<char const*, std::string>, char, boost::regex_traits<char, boost::cpp_regex_traits > >(gnu_cxx::normal_iterator<char const, std::string>, __gnu_cxx::__normal_iterator<char const, std::string>, boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits > > const&, boost::regex_constants::_match_flags)’中: /usr/local/boost/include/boost/regex/v4/regex_search.hpp:145:对‘boost::re_detail_107200::perl_matcher<gnu_cxx::normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<gnu_cxx::normal_iterator<char const, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits > >::find()’未定义的引用 /usr/local/lib/libfolly.a(JSONSchema.cpp.o):在函数‘boost::re_detail_107200::perl_matcher<__gnu_cxx::__normal_iterator<char const, std::string>, std::allocator<boost::sub_match<gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits > >::perl_matcher(gnu_cxx::normal_iterator<char const*, std::string>, __gnu_cxx::normal_iterator<char const, std::string>, boost::match_results<__gnu_cxx::__normal_iterator<char const, std::string>, std::allocator<boost::sub_match<gnu_cxx::normal_iterator<char const*, std::string> > > >&, boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits > > const&, boost::regex_constants::_match_flags, gnu_cxx::normal_iterator<char const, std::string>)’中: /usr/local/boost/include/boost/regex/v4/perl_matcher.hpp:391:对‘boost::re_detail_107200::perl_matcher<__gnu_cxx::__normal_iterator<char const, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits > > const&, boost::regex_constants::_match_flags)’未定义的引用 /usr/local/lib/libfolly.a(NestedCommandLineApp.cpp.o):在函数‘folly::NestedCommandLineApp::NestedCommandLineApp(std::string, std::string, std::string, std::string, std::function<void (std::string const&, boost::program_options::variables_map const&, std::vector<std::string, std::allocator > const&)>)’中: /home/h3c/zhao/folly/folly/experimental/NestedCommandLineApp.cpp:64:对‘boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)’未定义的引用 /usr/local/lib/libfolly.a(NestedCommandLineApp.cpp.o):在函数‘folly::NestedCommandLineApp::addCommand(std::string, std::string, std::string, std::string, std::function<void (boost::program_options::variables_map const&, std::vector<std::string, std::allocator > const&)>)’中: /home/h3c/zhao/folly/folly/experimental/NestedCommandLineApp.cpp:103:对‘boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)’未定义的引用 /usr/local/lib/libfolly.a(NestedCommandLineApp.cpp.o):在函数‘boost::program_options::basic_command_line_parser::basic_command_line_parser(std::vector<std::string, std::allocator > const&)’中: /usr/local/boost/include/boost/program_options/detail/parsers.hpp:19:对‘boost::program_options::detail::cmdline::cmdline(std::vector<std::string, std::allocator > const&)’未定义的引用 /usr/local/lib/libfolly.a(NestedCommandLineApp.cpp.o):在函数‘std::vector<std::string, std::allocator > boost::program_options::to_internal(std::vector<std::string, std::allocator > const&)’中: /usr/local/boost/include/boost/program_options/detail/convert.hpp:79:对‘boost::program_options::to_internal(std::string const&)’未定义的引用 /usr/local/lib/libfolly.a(ProgramOptions.cpp.o):在函数‘folly::getGFlags(folly::ProgramOptionsStyle)’中: /home/h3c/zhao/folly/folly/experimental/ProgramOptions.cpp:288:对‘boost::program_options::options_description::options_description(std::string const&, unsigned int, unsigned int)’未定义的引用 /usr/local/lib/libfolly.a(ProgramOptions.cpp.o):在函数‘folly::(anonymous namespace)::GFlagValueSemanticBase::parse(boost::any&, std::vector<std::string, std::allocator > const&, bool) const’中: /home/h3c/zhao/folly/folly/experimental/ProgramOptions.cpp:134:对‘boost::program_options::invalid_option_value::invalid_option_value(std::string const&)’未定义的引用 /usr/local/lib/libfolly.a(ProgramOptions.cpp.o):在函数‘folly::(anonymous namespace)::GFlagValueSemanticBase::parse(boost::any&, std::vector<std::string, std::allocator > const&, bool) const’中: /home/h3c/zhao/folly/folly/experimental/ProgramOptions.cpp:134:对‘boost::program_options::invalid_option_value::invalid_option_value(std::string const&)’未定义的引用 /usr/local/lib/libfolly.a(ProgramOptions.cpp.o):在函数‘folly::(anonymous namespace)::GFlagValueSemanticBase::parse(boost::any&, std::vector<std::string, std::allocator > const&, bool) const’中: /home/h3c/zhao/folly/folly/experimental/ProgramOptions.cpp:134:对‘boost::program_options::invalid_option_value::invalid_option_value(std::string const&)’未定义的引用 /usr/local/lib/libfolly.a(ProgramOptions.cpp.o):在函数‘folly::(anonymous namespace)::GFlagValueSemanticBase::parse(boost::any&, std::vector<std::string, std::allocator > const&, bool) const’中: /home/h3c/zhao/folly/folly/experimental/ProgramOptions.cpp:134:对‘boost::program_options::invalid_option_value::invalid_option_value(std::string const&)’未定义的引用 /usr/local/lib/libfolly.a(ProgramOptions.cpp.o):在函数‘folly::(anonymous namespace)::GFlagValueSemanticBase::parse(boost::any&, std::vector<std::string, std::allocator > const&, bool) const’中: /home/h3c/zhao/folly/folly/experimental/ProgramOptions.cpp:134:对‘boost::program_options::invalid_option_value::invalid_option_value(std::string const&)’未定义的引用 /usr/local/lib/libfolly.a(ProgramOptions.cpp.o):/home/h3c/zhao/folly/folly/experimental/ProgramOptions.cpp:134: 跟着更多未定义的参考到 boost::program_options::invalid_option_value::invalid_option_value(std::string const&) /usr/local/lib/libfolly.a(ProgramOptions.cpp.o):在函数‘boost::program_options::basic_command_line_parser::basic_command_line_parser(int, char const const*)’中: /usr/local/boost/include/boost/program_options/detail/parsers.hpp:28:对‘boost::program_options::detail::cmdline::cmdline(std::vector<std::string, std::allocator > const&)’未定义的引用 /usr/local/lib/libfolly.a(ProgramOptions.cpp.o):(.rodata._ZTVN5boost15program_options20invalid_option_valueE[_ZTVN5boost15program_options20invalid_option_valueE]+0x30):对‘boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const’未定义的引用 /usr/local/lib/libfolly.a(ProgramOptions.cpp.o):(.rodata._ZTVN5boost15program_options16validation_errorE[_ZTVN5boost15program_options16validation_errorE]+0x30):对‘boost::program_options::error_with_option_name::substitute_placeholders(std::string const&) const’未定义的引用 /usr/local/lib/libfolly.a(FsUtil.cpp.o):在函数‘folly::fs::remove_prefix(boost::filesystem::path const&, boost::filesystem::path const&)’中: /home/h3c/zhao/folly/folly/experimental/io/FsUtil.cpp:57:对‘boost::filesystem::filesystem_error::filesystem_error(std::string const&, boost::filesystem::path const&, boost::filesystem::path const&, boost::system::error_code)’未定义的引用 collect2: error: ld returned 1 exit statu make[2]: [bin/HandshakeTest] 错误 1 make[1]: [CMakeFiles/HandshakeTest.dir/all] 错误 2 make: *** [all] 错误 2

############################################################# what should I do for it ?

physician85 commented 4 years ago

@z6833

I have the same problem. How to solve the issue?