节俭犯错误

发布于 2024-09-19 04:30:35 字数 1391 浏览 8 评论 0原文

我无法正确编译 thrift,当我使用 make 时,这是输出:

 make all
make  all-recursive
make[1]: Entering directory `/root/thrift'
Making all in compiler/cpp
make[2]: Entering directory `/root/thrift/compiler/cpp'
make  all-am
make[3]: Entering directory `/root/thrift/compiler/cpp'
g++ -DHAVE_CONFIG_H -I. -I../..    -Wall -I./src -D     PTHREAD_MUTEX_RECURSIVE_NP=PTHREAD_MUTEX_RECURSIVE -MT thrift-thrifty.o -MD -MP -MF .deps/thrift-thrifty.Tpo -c -o thrift-thrifty.o `test -f 'thrifty.cc' || echo './'`thrifty.cc

In file included from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:41,
             from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr.h:162,
             from /usr/include/c++/4.4/ext/atomicity.h:34,
             from /usr/include/c++/4.4/bits/basic_string.h:41,
             from /usr/include/c++/4.4/string:53,
             from ./src/main.h:23,
             from thrifty.yy:33:
/usr/include/pthread.h:55: error: redefinition of 'PTHREAD_MUTEX_RECURSIVE'
/usr/include/pthread.h:49: error: 'PTHREAD_MUTEX_RECURSIVE' previously defined here
make[3]: *** [thrift-thrifty.o] Error 1
make[3]: Leaving directory `/root/thrift/compiler/cpp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/thrift/compiler/cpp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/thrift'
    make: *** [all] Error 2

Any ideas?谢谢 :)

I can't compile thrift properly, when I use make, this is the output:

 make all
make  all-recursive
make[1]: Entering directory `/root/thrift'
Making all in compiler/cpp
make[2]: Entering directory `/root/thrift/compiler/cpp'
make  all-am
make[3]: Entering directory `/root/thrift/compiler/cpp'
g++ -DHAVE_CONFIG_H -I. -I../..    -Wall -I./src -D     PTHREAD_MUTEX_RECURSIVE_NP=PTHREAD_MUTEX_RECURSIVE -MT thrift-thrifty.o -MD -MP -MF .deps/thrift-thrifty.Tpo -c -o thrift-thrifty.o `test -f 'thrifty.cc' || echo './'`thrifty.cc

In file included from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr-default.h:41,
             from /usr/include/c++/4.4/x86_64-linux-gnu/bits/gthr.h:162,
             from /usr/include/c++/4.4/ext/atomicity.h:34,
             from /usr/include/c++/4.4/bits/basic_string.h:41,
             from /usr/include/c++/4.4/string:53,
             from ./src/main.h:23,
             from thrifty.yy:33:
/usr/include/pthread.h:55: error: redefinition of 'PTHREAD_MUTEX_RECURSIVE'
/usr/include/pthread.h:49: error: 'PTHREAD_MUTEX_RECURSIVE' previously defined here
make[3]: *** [thrift-thrifty.o] Error 1
make[3]: Leaving directory `/root/thrift/compiler/cpp'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/thrift/compiler/cpp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/thrift'
    make: *** [all] Error 2

Any ideas? thanks :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文