facebook/mcrouter

errors occurred while building from source on ubuntu 18.04

jiaweixiao opened this issue · 0 comments

I want to build mcrouter with tag v0.41.0-release from source on ubuntu 18.04

I followed the scripts in mcrouter/scripts but failed.

Part of the traceback is below

...
THttpParser.cpp:(.text._ZN6apache6thrift11concurrency4Util11currentTimeEv[_ZN6apache6thrift11concurrency4Util11currentTimeEv]+
0xa): undefined reference to `apache::thrift::concurrency::Util::currentTimeTicks(long)'
../../lib/.libs/libmcrouter.so: undefined reference to `apache::thrift::ContextStack::preRead()'
../../lib/.libs/libmcrouter.so: undefined reference to `apache::thrift::ContextStack::preWrite()'
../../lib/.libs/libmcrouter.so: undefined reference to `apache::thrift::ContextStack::postRead(apache::thrift::transport::THea
der*, unsigned int)'
../../lib/.libs/libmcrouter.so: undefined reference to `apache::thrift::ContextStack::onWriteData(apache::thrift::SerializedMe
ssage const&)'
../../lib/.libs/libmcrouter.so: undefined reference to `apache::thrift::ContextStack::postWrite(unsigned int)'
../../lib/.libs/libmcrouter.so: undefined reference to `apache::thrift::ContextStack::onReadData(apache::thrift::SerializedMes
sage const&)'
collect2: error: ld returned 1 exit status
Makefile:482: recipe for target 'mcpiper' failed
make[4]: *** [mcpiper] Error 1
make[4]: Leaving directory 'path/to/mcrouter/mcrouter/tools/mcpiper'
...

How can I solve it?

Thanks!