{"action":"created","issue":{"url":"https://api.github.com/repos/tencent-wechat/phxsql/issues/10","repository_url":"https://api.github.com/repos/tencent-wechat/phxsql","labels_url":"https://api.github.com/repos/tencent-wechat/phxsql/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/tencent-wechat/phxsql/issues/10/comments","events_url":"https://api.github.com/repos/tencent-wechat/phxsql/issues/10/events","html_url":"https://github.com/tencent-wechat/phxsql/issues/10","id":174692016,"number":10,"title":"编译出错","user":{"login":"shijianlau","id":14195610,"avatar_url":"https://avatars.githubusercontent.com/u/14195610?v=3","gravatar_id":"","url":"https://api.github.com/users/shijianlau","html_url":"https://github.com/shijianlau","followers_url":"https://api.github.com/users/shijianlau/followers","following_url":"https://api.github.com/users/shijianlau/following{/other_user}","gists_url":"https://api.github.com/users/shijianlau/gists{/gist_id}","starred_url":"https://api.github.com/users/shijianlau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shijianlau/subscriptions","organizations_url":"https://api.github.com/users/shijianlau/orgs","repos_url":"https://api.github.com/users/shijianlau/repos","events_url":"https://api.github.com/users/shijianlau/events{/privacy}","received_events_url":"https://api.github.com/users/shijianlau/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tencent-wechat/phxsql/labels/compile%20error","name":"compile error","color":"b60205"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-02T06:48:30Z","updated_at":"2016-09-05T09:38:07Z","closed_at":null,"body":"系统:centos 6.5 x86_64, gcc升级到4.8.5, 在make phxsql时出现以下错误：\r\ng++ phxrpc_phxbinlog_service.o phxrpc_phxbinlog_dispatcher.o phxbinlog_server_config.o phxbinlog_service_impl.o phxbinlog_server.o phxbinlog_main.o -o phxbinlogsvr_phxrpc -L/usr/local/src/phxsql-master/third_party/phxpaxos/lib -L/usr/local/src/phxsql-master/.lib -L/usr/local/src/phxsql-master/third_party/protobuf/lib -L/usr/local/src/phxsql-master/third_party/leveldb/lib/  -L/usr/local/src/phxsql-master/third_party/glog/lib -L -L -L/usr/local/src/phxsql-master/percona/libmysql -L/usr/local/src/phxsql-master/third_party/colib/lib  -static-libgcc -static-libstdc++ -lphxbinlogsvrclient_phxrpc -lphxbinlogsvrlogic -lphxbinlogsvrclient_base -lclientproto -lagent -leventagent -lagentrepl -lagentmonitor -leventhandler -lagentstatus -lmasteragent -lpaxosagentbase -lmasterhandler -lnet -lagentmonitorcomm -lmysqlcommand -lagentstorage -lphxbinlogstat -lgtidhandler -lphxbinlogproto -lphxbinlogconfig -lphxconfig -lconfigparser -lphxutils -lphxlog -lphxglog /usr/local/src/phxsql-master/third_party/phxpaxos/lib/libphxpaxos_plugin.a /usr/local/src/phxsql-master/third_party/phxpaxos/lib/libphxpaxos.a /usr/local/src/phxsql-master/third_party/leveldb/lib//libleveldb.a /usr/local/src/phxsql-master/third_party/protobuf/lib/libprotobuf.a /usr/local/src/phxsql-master/percona/libmysql/libperconaserverclient.a -ldl -lrt -lz /usr/local/src/phxsql-master/third_party/glog/lib/libglog.a -lpthread /usr/local/src/phxsql-master/third_party/phxrpc/lib/libphxrpc.a\r\n/usr/local/src/phxsql-master/third_party/leveldb/lib//libleveldb.a(table_builder.o): In function `leveldb::TableBuilder::WriteBlock(leveldb::BlockBuilder*, leveldb::BlockHandle*)':\r\ntable_builder.cc:(.text+0x698): undefined reference to `snappy::MaxCompressedLength(unsigned long)'\r\ntable_builder.cc:(.text+0x6d2): undefined reference to `snappy::RawCompress(char const*, unsigned long, char*, unsigned long*)'\r\n/usr/local/src/phxsql-master/third_party/leveldb/lib//libleveldb.a(format.o): In function `leveldb::ReadBlock(leveldb::RandomAccessFile*, leveldb::ReadOptions const&, leveldb::BlockHandle const&, leveldb::BlockContents*)':\r\nformat.cc:(.text+0x5de): undefined reference to `snappy::GetUncompressedLength(char const*, unsigned long, unsigned long*)'\r\nformat.cc:(.text+0x64e): undefined reference to `snappy::RawUncompress(char const*, unsigned long, char*)'\r\n/usr/local/src/phxsql-master/third_party/glog/lib/libglog.a(libglog_la-utilities.o): In function `google::GetStackTrace(void**, int, int)':\r\nutilities.cc:(.text+0x73e): undefined reference to `_Ux86_64_getcontext'\r\nutilities.cc:(.text+0x757): undefined reference to `_ULx86_64_init_local'\r\nutilities.cc:(.text+0x7af): undefined reference to `_ULx86_64_get_reg'\r\nutilities.cc:(.text+0x7f4): undefined reference to `_ULx86_64_step'\r\ncollect2: 错误：ld 返回 1\r\nmake[4]: *** [phxbinlogsvr_phxrpc] 错误 1\r\nmake[4]: Leaving directory `/usr/local/src/phxsql-master/phxbinlogsvr/framework/phxrpc/svr'\r\nmake[3]: *** [sub_dir] 错误 1\r\nmake[3]: Leaving directory `/usr/local/src/phxsql-master/phxbinlogsvr/framework/phxrpc'\r\nmake[2]: *** [sub_dir] 错误 1\r\nmake[2]: Leaving directory `/usr/local/src/phxsql-master/phxbinlogsvr/framework'\r\nmake[1]: *** [sub_dir] 错误 1\r\nmake[1]: Leaving directory `/usr/local/src/phxsql-master/phxbinlogsvr'\r\nmake: *** [sub_dir] 错误 1"},"comment":{"url":"https://api.github.com/repos/tencent-wechat/phxsql/issues/comments/244703805","html_url":"https://github.com/tencent-wechat/phxsql/issues/10#issuecomment-244703805","issue_url":"https://api.github.com/repos/tencent-wechat/phxsql/issues/10","id":244703805,"user":{"login":"zhibinliu","id":22002120,"avatar_url":"https://avatars.githubusercontent.com/u/22002120?v=3","gravatar_id":"","url":"https://api.github.com/users/zhibinliu","html_url":"https://github.com/zhibinliu","followers_url":"https://api.github.com/users/zhibinliu/followers","following_url":"https://api.github.com/users/zhibinliu/following{/other_user}","gists_url":"https://api.github.com/users/zhibinliu/gists{/gist_id}","starred_url":"https://api.github.com/users/zhibinliu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhibinliu/subscriptions","organizations_url":"https://api.github.com/users/zhibinliu/orgs","repos_url":"https://api.github.com/users/zhibinliu/repos","events_url":"https://api.github.com/users/zhibinliu/events{/privacy}","received_events_url":"https://api.github.com/users/zhibinliu/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T09:38:07Z","updated_at":"2016-09-05T09:38:07Z","body":"我也是碰到了glog的问题，重编也不行。我的编译glog步骤是：\r\n./configure CXXFLAGS=-fPIC --prefix=/apps/zhibin/weixin/phxsql/third_party/glog\r\nmake\r\nmake install\r\n\r\n出错：\r\ng++ phxrpc_phxbinlog_service.o phxrpc_phxbinlog_dispatcher.o phxbinlog_server_config.o phxbinlog_service_impl.o phxbinlog_server.o phxbinlog_main.o -o phxbinlogsvr_phxrpc -L/apps/zhibin/weixin/phxsql/third_party/phxpaxos/lib -L/apps/zhibin/weixin/phxsql/.lib -L/apps/zhibin/weixin/phxsql/third_party/protobuf/lib -L/apps/zhibin/weixin/phxsql/third_party/leveldb/lib/  -L/apps/zhibin/weixin/phxsql/third_party/glog/lib -L -L -L/apps/zhibin/weixin/phxsql/percona/libmysql -L/apps/zhibin/weixin/phxsql/third_party/colib/lib  -static-libgcc -static-libstdc++ -lphxbinlogsvrclient_phxrpc -lphxbinlogsvrlogic -lphxbinlogsvrclient_base -lclientproto -lagent -leventagent -lagentrepl -lagentmonitor -leventhandler -lagentstatus -lmasteragent -lpaxosagentbase -lmasterhandler -lnet -lagentmonitorcomm -lmysqlcommand -lagentstorage -lphxbinlogstat -lgtidhandler -lphxbinlogproto -lphxbinlogconfig -lphxconfig -lconfigparser -lphxutils -lphxlog -lphxglog /apps/zhibin/weixin/phxsql/third_party/phxpaxos/lib/libphxpaxos_plugin.a /apps/zhibin/weixin/phxsql/third_party/phxpaxos/lib/libphxpaxos.a /apps/zhibin/weixin/phxsql/third_party/leveldb/lib//libleveldb.a /apps/zhibin/weixin/phxsql/third_party/protobuf/lib/libprotobuf.a /apps/zhibin/weixin/phxsql/percona/libmysql/libperconaserverclient.a -ldl -lrt -lz /apps/zhibin/weixin/phxsql/third_party/glog/lib/libglog.a -lpthread /apps/zhibin/weixin/phxsql/third_party/phxrpc/lib/libphxrpc.a\r\n/apps/zhibin/weixin/phxsql/third_party/glog/lib/libglog.a(libglog_la-utilities.o): In function `google::GetStackTrace(void**, int, int)':\r\nutilities.cc:(.text+0x77d): undefined reference to `_Ux86_64_getcontext'\r\nutilities.cc:(.text+0x796): undefined reference to `_ULx86_64_init_local'\r\nutilities.cc:(.text+0x7ef): undefined reference to `_ULx86_64_get_reg'\r\nutilities.cc:(.text+0x83f): undefined reference to `_ULx86_64_step'\r\ncollect2: error: ld returned 1 exit status\r\nmake[4]: *** [phxbinlogsvr_phxrpc] Error 1\r\nmake[4]: Leaving directory `/apps/zhibin/weixin/phxsql/phxbinlogsvr/framework/phxrpc/svr'\r\nmake[3]: *** [sub_dir] Error 1\r\nmake[3]: Leaving directory `/apps/zhibin/weixin/phxsql/phxbinlogsvr/framework/phxrpc'\r\nmake[2]: *** [sub_dir] Error 1\r\nmake[2]: Leaving directory `/apps/zhibin/weixin/phxsql/phxbinlogsvr/framework'\r\nmake[1]: *** [sub_dir] Error 1\r\nmake[1]: Leaving directory `/apps/zhibin/weixin/phxsql/phxbinlogsvr'\r\nmake: *** [sub_dir] Error 1"}}
{"actor":{"display_login":"zhibinliu"}}