You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2019/04/24 02:40:24 UTC

[GitHub] [incubator-brpc] qingyang8513 opened a new issue #745: Mac下编译protobuf支持版本问题

qingyang8513 opened a new issue #745: Mac下编译protobuf支持版本问题
URL: https://github.com/apache/incubator-brpc/issues/745
 
 
   **Describe the bug (描述bug)**
   Mac下按照https://github.com/apache/incubator-brpc/blob/master/docs/cn/getting_started.md#macos方法进行编译。
   手动下载并编译protobuf,发现当前版本brpc不支持最新版本的protobuf,**使用最新版本是编译失败(v3.7.1)**。查看./src/idl_options.pb.h发现:第11行~第20行
    11 **#if GOOGLE_PROTOBUF_VERSION < 3005000**
    12 #error This file was generated by a newer version of protoc which is
    13 #error incompatible with your Protocol Buffer headers.  Please update
    14 #error your headers.
    15 #endif
    16 **#if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION**
    17 #error This file was generated by an older version of protoc which is
    18 #error incompatible with your Protocol Buffer headers.  Please
    19 #error regenerate this file with a newer version of protoc.
    20 #endif
   
   可以看到,当前要求protobuf版本为3005000,即protobuf v3.5.0~v3.5.2
   
   另外,尝试发现,仅v3.5.2版本下brpc能够编译通过。
   
   
   **Expected behavior (期望行为)**
   请确认是否支持最新版protobuf,如果不支持,请在安装说明中进行描述!谢谢!
   
   **Versions (各种版本)**
   OS: macOS 10.14.4 (18E226)
   Compiler: clang
   brpc: master
   protobuf: v3.5.2
   others:
   autoconf 2.69
   automake 1.16.1_1
   boost 1.69.0
   coreutils 8.31
   gdbm 1.18.1
   gettext 0.19.8.1
   gflags 2.2.2
   git 2.21.0
   gnu-getopt 1.1.6
   gperftools 2.7
   icu4c 63.1
   leveldb 1.21
   libtool 2.4.6_1
   openssl 1.0.2r
   pcre2 10.32
   python 3.7.3
   python@2 2.7.16
   readline 8.0.0
   snappy 1.1.7_1
   sqlite 3.27.2
   xz 5.2.4
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org