Apache Thrift Raspberry Pi未定义参考

时间:2018-07-07 12:24:32

标签: apache raspberry-pi3 thrift

我尝试在Raspbian的Rasberry Pi 3上安装Apache Thrift。 我下载并安装了所有依赖项以及apache thrift的副本。 一切正常,直到我尝试“使” Apache节俭...

我得到了错误:

/home/pi/thrift-0.11.0/lib/cpp/.libs/libthrift.so: undefined reference to `boost::atomics::detail::lockpool::scoped_lock::~scoped_lock()'
/home/pi/thrift-0.11.0/lib/cpp/.libs/libthrift.so: undefined reference to `boost::atomics::detail::lockpool::scoped_lock::scoped_lock(void const volatile*)'

已安装libboost-atomic(1.62.0 + dfsg-4)...我不知道喜欢该错误。

非常感谢!

编辑:

我试图与boost Atom链接,但没有帮助(使-lboost_atomic)。 我仍然得到错误。我通过apt-get install安装了boost。可能是这个问题吗?

 make  all-recursive
make[1]: Entering directory '/home/thrift-0.11.0'
Making all in compiler/cpp
make[2]: Entering directory '/home/thrift-0.11.0/compiler/cpp'
Making all in src
make[3]: Entering directory '/home/thrift-0.11.0/compiler/cpp/src'
make  all-am
make[4]: Entering directory '/home/thrift-0.11.0/compiler/cpp/src'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/thrift-0.11.0/compiler/cpp/src'
make[3]: Leaving directory '/home/thrift-0.11.0/compiler/cpp/src'
Making all in src/thrift/plugin
make[3]: Entering directory '/home/thrift-0.11.0/compiler/cpp/src/thrift/plugin'
make  all-am
make[4]: Entering directory '/home/thrift-0.11.0/compiler/cpp/src/thrift/plugin'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/thrift-0.11.0/compiler/cpp/src/thrift/plugin'
make[3]: Leaving directory '/home/thrift-0.11.0/compiler/cpp/src/thrift/plugin'
Making all in .
make[3]: Entering directory '/home/thrift-0.11.0/compiler/cpp'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/thrift-0.11.0/compiler/cpp'
Making all in test
make[3]: Entering directory '/home/thrift-0.11.0/compiler/cpp/test'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/thrift-0.11.0/compiler/cpp/test'
make[2]: Leaving directory '/home/thrift-0.11.0/compiler/cpp'
Making all in lib
make[2]: Entering directory '/home/thrift-0.11.0/lib'
Making all in json
make[3]: Entering directory '/home/thrift-0.11.0/lib/json'
make[4]: Entering directory '/home/thrift-0.11.0/lib/json'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/thrift-0.11.0/lib/json'
make[3]: Leaving directory '/home/thrift-0.11.0/lib/json'
Making all in xml
make[3]: Entering directory '/home/thrift-0.11.0/lib/xml'
make[4]: Entering directory '/home/thrift-0.11.0/lib/xml'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/thrift-0.11.0/lib/xml'
make[3]: Leaving directory '/home/thrift-0.11.0/lib/xml'
Making all in cpp
make[3]: Entering directory '/home/thrift-0.11.0/lib/cpp'
Making all in .
make[4]: Entering directory '/home/thrift-0.11.0/lib/cpp'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/thrift-0.11.0/lib/cpp'
Making all in test
make[4]: Entering directory '/home/thrift-0.11.0/lib/cpp/test'
make  all-am
make[5]: Entering directory '/home/thrift-0.11.0/lib/cpp/test'
/bin/bash ../../../libtool  --tag=CXX   --mode=link g++ -Wall -Wextra -pedantic -g -O2 -L/usr/lib/armv7l-linux-gnueabihf  -o Benchmark Benchmark.o libtestgencpp.la -lrt -lpthread 
libtool: link: g++ -Wall -Wextra -pedantic -g -O2 -o .libs/Benchmark Benchmark.o  -L/usr/lib/armv7l-linux-gnueabihf ./.libs/libtestgencpp.a /home/thrift-0.11.0/lib/cpp/.libs/libthrift.so -lssl -lcrypto -lrt -lpthread
/home/thrift-0.11.0/lib/cpp/.libs/libthrift.so: undefined reference to `boost::atomics::detail::lockpool::scoped_lock::~scoped_lock()'
/home/thrift-0.11.0/lib/cpp/.libs/libthrift.so: undefined reference to `boost::atomics::detail::lockpool::scoped_lock::scoped_lock(void const volatile*)'
collect2: error: ld returned 1 exit status
Makefile:1114: recipe for target 'Benchmark' failed
make[5]: *** [Benchmark] Error 1
make[5]: Leaving directory '/home/thrift-0.11.0/lib/cpp/test'
Makefile:1006: recipe for target 'all' failed
make[4]: *** [all] Error 2
make[4]: Leaving directory '/home/thrift-0.11.0/lib/cpp/test'
Makefile:1658: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/thrift-0.11.0/lib/cpp'
Makefile:577: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/thrift-0.11.0/lib'
Makefile:660: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/thrift-0.11.0'
Makefile:574: recipe for target 'all' failed
make: *** [all] Error 2

0 个答案:

没有答案