shengyunyao opened a new issue #1041: 0.9.6 编译错误 master分支编译正常 URL: https://github.com/apache/incubator-brpc/issues/1041 **Describe the bug (描述bug)** master分支编译是可以的,但是编译0.9.6源码的时候,出现以下错误 ``` /home/work/workspace/incubator-brpc/bld/brpc/trackme.pb.cc:103:6: error: ‘::descriptor_table_brpc_2foptions_2eproto’ has not been declared &::descriptor_table_brpc_2foptions_2eproto, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/work/workspace/incubator-brpc/bld/brpc/trackme.pb.cc:103:6: note: suggested alternative: ‘descriptor_table_brpc_2ftrackme_2eproto’ &::descriptor_table_brpc_2foptions_2eproto, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ descriptor_table_brpc_2ftrackme_2eproto /home/work/workspace/incubator-brpc/bld/brpc/streaming_rpc_meta.pb.cc:142:6: error: ‘::descriptor_table_brpc_2foptions_2eproto’ has not been declared &::descriptor_table_brpc_2foptions_2eproto, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/work/workspace/incubator-brpc/bld/brpc/streaming_rpc_meta.pb.cc:142:6: note: suggested alternative: ‘descriptor_table_brpc_2fstreaming_5frpc_5fmeta_2eproto’ &::descriptor_table_brpc_2foptions_2eproto, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ descriptor_table_brpc_2fstreaming_5frpc_5fmeta_2eproto /home/work/workspace/incubator-brpc/bld/brpc/policy/mongo.pb.cc:157:6: error: ‘::descriptor_table_brpc_2foptions_2eproto’ has not been declared &::descriptor_table_brpc_2foptions_2eproto, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/work/workspace/incubator-brpc/bld/brpc/policy/mongo.pb.cc:157:6: note: suggested alternative: ‘descriptor_table_brpc_2fpolicy_2fmongo_2eproto’ &::descriptor_table_brpc_2foptions_2eproto, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ descriptor_table_brpc_2fpolicy_2fmongo_2eproto make[2]: *** [CMakeFiles/PROTO_LIB.dir/build.make:402: CMakeFiles/PROTO_LIB.dir/brpc/trackme.pb.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [CMakeFiles/PROTO_LIB.dir/build.make:415: CMakeFiles/PROTO_LIB.dir/brpc/streaming_rpc_meta.pb.cc.o] Error 1 make[2]: *** [CMakeFiles/PROTO_LIB.dir/build.make:389: CMakeFiles/PROTO_LIB.dir/brpc/policy/mongo.pb.cc.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:227: CMakeFiles/PROTO_LIB.dir/all] Error 2 make: *** [Makefile:152: all] Error 2 ~ ``` **To Reproduce (复现方法)** 0.9.6版本下如下执行 ``` cmake -DCMAKE_INCLUDE_PATH="/usr/include /usr/local/include" -DCMAKE_LIBRARY_PATH="/usr/local/lib /usr/local/lib64 /usr/lib /usr/lib/ /usr/lib64" .. && make -j 4 ``` **Expected behavior (期望行为)** 编译成功 **Versions (各种版本)** OS: centos7 Compiler: gcc 8.3.1 brpc: 0.9.6 protobuf: 3.11.2 **Additional context/screenshots (更多上下文/截图)**
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
