Tencent / phxsql

A high availability MySQL cluster that guarantees data consistency between a master and slaves.
Other
2.47k stars 557 forks source link

编译报错 #165

Open ravecn opened 6 years ago

ravecn commented 6 years ago

系统是centos 6.9,在进行make的时候报错了,具体错误如下 [ 87%] Building CXX object sql/CMakeFiles/slave.dir/rpl_info_dummy.cc.o Linking CXX static library libslave.a make[3]: Leaving directory /data/phxsql/percona' [ 87%] Built target slave make[3]: Entering directory/data/phxsql/percona' Scanning dependencies of target pfs_connect_attr-t make[3]: Leaving directory /data/phxsql/percona' make[3]: Entering directory/data/phxsql/percona' [ 87%] Building CXX object storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/pfs_connect_attr-t.cc.o [ 87%] Building CXX object storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir///__/sql/sql_builtin.cc.o [ 87%] Building C object storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir///__/mysys/string.c.o Linking CXX executable pfs_connect_attr-t ../../../plugin/phxsync_phxrpc/libphxsync_master_phxrpc.a(phxsync_utils.cc.o): In function repl_phx_report_binlog_to_binlogsvr(Binlog_storage_param*, char const*, char const*, unsigned long long, char const*, unsigned long long)': phxsync_utils.cc:(.text+0x4ad): undefined reference tophxbinlog::GtidHandler::ParseEventList(std::basic_string<char, std::char_traits, std::allocator > const&, std::vector<std::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::basic_string<char, std::char_traits, std::allocator > > >, bool, std::basic_string<char, std::char_traits, std::allocator >, std::vector<std::basic_string<char, std::char_traits, std::allocator >, std::allocator<std::basic_string<char, std::char_traits, std::allocator > > >)' phxsync_utils.cc:(.text+0x636): undefined reference to phxbinlogsvr::PhxBinlogClient::SendBinLog(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)' ../../../plugin/phxsync_phxrpc/libphxsync_master_phxrpc.a(init_with_phxbinlogsvr.cc.o): In functionBinlogGtidState::get_last_gtid_in_binlogsvr(char const, std::basic_string<char, std::char_traits, std::allocator >&)': init_with_phxbinlogsvr.cc:(.text+0x551): undefined reference to phxbinlogsvr::PhxBinlogClient::GetLastSendGtid(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)' init_with_phxbinlogsvr.cc:(.text+0x67c): undefined reference tophxbinlogsvr::PhxBinlogClient::GetLastSendGtid(std::basic_string<char, std::char_traits, std::allocator > const&, std::basic_string<char, std::char_traits, std::allocator >*)' collect2: ld returned 1 exit status make[3]: [storage/perfschema/unittest/pfs_connect_attr-t] Error 1 make[3]: Leaving directory `/data/phxsql/percona' make[2]: [storage/perfschema/unittest/CMakeFiles/pfs_connect_attr-t.dir/all] Error 2 make[2]: Leaving directory /data/phxsql/percona' make[1]: *** [all] Error 2 make[1]: Leaving directory/data/phxsql/percona' make: *** [mysql] Error 2