-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译出错 #10
Comments
另一个编译错:
|
另外,提个编译目录依赖的建议, 编译依赖库头文件查找目录是/usr/lcoal。 如glog使用 /usr/local/include/glog/.h ; leveldb使用 /usr/local/include/leveldb/.h |
@shijianlau 您好,你的 |
我也是碰到了glog的问题,重编也不行。我的编译glog步骤是: 出错: |
@zhibinliu glog的问题是由于我们的submodule设置的版本有误,我们已经做出更新,并且附带了详细的编译手册,请查看WIKI重新获取源码进行编译,希望能帮助到您。 |
@shijianlau 我之前编译glog的时候也是各种报错,在CentOS下用cmake编译可以,我在CentOS6 和Centos7 下编译成功。文章地址 |
centos 6.x 以下命令安装phxsql 完美编译, 速度快, devtools 2 项目 gcc 4.8 (参考https://segmentfault.com/a/1190000004193587)
|
系统:centos 6.5 x86_64, gcc升级到4.8.5, 在make phxsql时出现以下错误:
g++ 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
/usr/local/src/phxsql-master/third_party/leveldb/lib//libleveldb.a(table_builder.o): In function
leveldb::TableBuilder::WriteBlock(leveldb::BlockBuilder*, leveldb::BlockHandle*)': table_builder.cc:(.text+0x698): undefined reference to
snappy::MaxCompressedLength(unsigned long)'table_builder.cc:(.text+0x6d2): undefined reference to
snappy::RawCompress(char const*, unsigned long, char*, unsigned long*)' /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_)':format.cc:(.text+0x5de): undefined reference to
snappy::GetUncompressedLength(char const*, unsigned long, unsigned long*)' format.cc:(.text+0x64e): undefined reference to
snappy::RawUncompress(char const_, unsigned long, char_)'/usr/local/src/phxsql-master/third_party/glog/lib/libglog.a(libglog_la-utilities.o): In function
google::GetStackTrace(void**, int, int)': utilities.cc:(.text+0x73e): undefined reference to
_Ux86_64_getcontext'utilities.cc:(.text+0x757): undefined reference to
_ULx86_64_init_local' utilities.cc:(.text+0x7af): undefined reference to
_ULx86_64_get_reg'utilities.cc:(.text+0x7f4): undefined reference to
_ULx86_64_step' collect2: 错误:ld 返回 1 make[4]: *** [phxbinlogsvr_phxrpc] 错误 1 make[4]: Leaving directory
/usr/local/src/phxsql-master/phxbinlogsvr/framework/phxrpc/svr'make[3]: *** [sub_dir] 错误 1
make[3]: Leaving directory
/usr/local/src/phxsql-master/phxbinlogsvr/framework/phxrpc' make[2]: *** [sub_dir] 错误 1 make[2]: Leaving directory
/usr/local/src/phxsql-master/phxbinlogsvr/framework'make[1]: *** [sub_dir] 错误 1
make[1]: Leaving directory `/usr/local/src/phxsql-master/phxbinlogsvr'
make: *** [sub_dir] 错误 1
The text was updated successfully, but these errors were encountered: