Description:
[ 77%] Built target protoclib
Linking CXX executable ../../runtime_output_directory/protoc
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/compiler/command_line_interface.cc:412: error: undefined reference to 'google::protobuf::compiler::ZipWriter::ZipWriter(google::protobuf::io::ZeroCopyOutputStream*)'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/compiler/command_line_interface.cc:416: error: undefined reference to 'google::protobuf::compiler::ZipWriter::Write(std::string const&, std::string const&)'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/compiler/command_line_interface.cc:419: error: undefined reference to 'google::protobuf::compiler::ZipWriter::WriteDirectory()'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/compiler/command_line_interface.cc:412: error: undefined reference to 'google::protobuf::compiler::ZipWriter::~ZipWriter()'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/compiler/command_line_interface.cc:412: error: undefined reference to 'google::protobuf::compiler::ZipWriter::~ZipWriter()'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/compiler/plugin.pb.cc:441: error: undefined reference to 'google::protobuf::internal::ReflectionOps::Merge(google::protobuf::Message const&, google::protobuf::Message*)'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/compiler/plugin.pb.cc:801: error: undefined reference to 'google::protobuf::internal::ReflectionOps::Merge(google::protobuf::Message const&, google::protobuf::Message*)'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/compiler/plugin.pb.cc:1089: error: undefined reference to 'google::protobuf::internal::ReflectionOps::Merge(google::protobuf::Message const&, google::protobuf::Message*)'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/compiler/cpp/cpp_generator.cc:101: error: undefined reference to 'google::protobuf::compiler::cpp::FileGenerator::FileGenerator(google::protobuf::FileDescriptor const*, google::protobuf::compiler::cpp::Options const&)'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/compiler/cpp/cpp_generator.cc:108: error: undefined reference to 'google::protobuf::compiler::cpp::FileGenerator::GenerateHeader(google::protobuf::io::Printer*)'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/compiler/cpp/cpp_generator.cc:116: error: undefined reference to 'google::protobuf::compiler::cpp::FileGenerator::GenerateSource(google::protobuf::io::Printer*)'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/compiler/cpp/cpp_generator.cc:101: error: undefined reference to 'google::protobuf::compiler::cpp::FileGenerator::~FileGenerator()'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/compiler/cpp/cpp_generator.cc:101: error: undefined reference to 'google::protobuf::compiler::cpp::FileGenerator::~FileGenerator()'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/descriptor.pb.cc:938: error: undefined reference to 'google::protobuf::internal::ReflectionOps::Merge(google::protobuf::Message const&, google::protobuf::Message*)'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/message.cc:81: error: undefined reference to 'google::protobuf::internal::ReflectionOps::Copy(google::protobuf::Message const&, google::protobuf::Message*)'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/message.cc:89: error: undefined reference to 'google::protobuf::internal::ReflectionOps::Clear(google::protobuf::Message*)'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/message.cc:93: error: undefined reference to 'google::protobuf::internal::ReflectionOps::IsInitialized(google::protobuf::Message const&)'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/message.cc:97: error: undefined reference to 'google::protobuf::internal::ReflectionOps::FindInitializationErrors(google::protobuf::Message const&, std::string const&, std::vector<std::string, std::allocator<std::string> >*)'
/home/rdb/mysql-8.0.3-rc/extra/protobuf/protobuf-2.6.1/src/google/protobuf/message.cc:113: error: undefined reference to 'google::protobuf::internal::ReflectionOps::DiscardUnknownFields(google::protobuf::Message*)'
collect2: error: ld returned 1 exit status
make[2]: *** [runtime_output_directory/protoc] Error 1
make[1]: *** [extra/protobuf/CMakeFiles/protoc.dir/all] Error 2
make: *** [all] Error 2
How to repeat:
1、
cmake ../ -DCMAKE_INSTALL_PREFIX=/home/rdb \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DENABLED_LOCAL_INFILE=1 \
-DEXTRA_CHARSETS=all \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_DEBUG=1
2、make