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
dependency not complete #2
Comments
The default compilation option for LevelDB does not require snappy, maybe you have compiled the LevelDB depends on snappy and link it into the phxqueue/third_party. Try run build.sh in pure origin master.
|
And I found a issue of glog compilation errors caused by gflags. |
thanks for your help . so, is PhxQueue in your real production environment used so-lib, not used a-lib, this problem is caused by the a-lib, because so-lib will link the dependency automaticly |
I see. Using a dynamic library is a solution, but it requires that the online environment need to deploy leveldb.so, as same as the compiled environment. So, this has higher requirements of the maintenance on the online environment. |
build by build.sh
in phxqueue/makefile.mk should link gflags or it will report
more undefined references to `google::FlagRegisterer::FlagRegisterer(char const*, char const*, char const*, char const*, void*, void*)'
and ohter missing link as
table_builder.cc:(.text+0x8ff):对‘snappy::MaxCompressedLength(unsigned long)’未定义的引用
table_builder.cc:(.text+0x93d):对‘snappy::RawCompress(char const*, unsigned long, char*, unsigned long*)’未定义的引用
/data/wangxiaolei-s/3rd/phxqueue//third_party/leveldb/lib/libleveldb.a(format.o):在函数‘leveldb::ReadBlock(leveldb::RandomAccessFile*, leveldb::ReadOptions const&, leveldb::BlockHandle const&, leveldb::BlockContents*)’中:
format.cc:(.text+0x4d9):对‘snappy::GetUncompressedLength(char const*, unsigned long, unsigned long*)’未定义的引用
format.cc:(.text+0x5ae):对‘snappy::RawUncompress(char const*, unsigned long, char*)’未定义的引用
The text was updated successfully, but these errors were encountered: