southbear-club opened a new issue #1328:
URL: https://github.com/apache/incubator-brpc/issues/1328


   **Describe the bug (描述bug)**
   开启thrift,cmake -B build -DWITH_THRIFT=ON编译出错
   
   /usr/local/include/thrift/protocol/TBinaryProtocol.h:38:7: note: candidate: 
‘apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TMemoryBuffer>::TBinaryProtocolT(apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TMemoryBuffer>&&)’
   /usr/local/include/thrift/protocol/TBinaryProtocol.h:38:7: note:   no known 
conversion for argument 1 from 
‘boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>’ to 
‘apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TMemoryBuffer>&&’
   
/mnt/e/ormosiaVM/github/Asty/Asty-platform-server/thirdparty/incubator-brpc/src/brpc/policy/thrift_protocol.cpp:
 In function ‘void brpc::policy::SerializeThriftRequest(butil::IOBuf*, 
brpc::Controller*, const google::protobuf::Message*)’:
   
/mnt/e/ormosiaVM/github/Asty/Asty-platform-server/thirdparty/incubator-brpc/src/brpc/policy/thrift_protocol.cpp:673:110
    error: no matching function for call to 
‘apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TMemoryBuffer>::TBinaryProtocolT(boost::shared_ptr<apache::thrift::transport::TMemoryBuffer>&)’
     673 |         
apache::thrift::protocol::TBinaryProtocolT<apache::thrift::transport::TMemoryBuffer>
 oprot(out_buffer);
         |                                                                      
                                        ^
   In file included from 
/mnt/e/ormosiaVM/github/Asty/Asty-platform-server/thirdparty/incubator-brpc/src/brpc/policy/thrift_protocol.cpp:39:
   /usr/local/include/thrift/protocol/TBinaryProtocol.h:52:3: note: candidate: 
‘apache::thrift::protocol::TBinaryProtocolT<Transport_, 
ByteOrder_>::TBinaryProtocolT(std::shared_ptr<_Tp>, int32_t, int32_t, bool, 
bool) [with Transport_ = apache::thrift::transport::TMemoryBuffer; ByteOrder_ = 
apache::thrift::protocol::TNetworkBigEndian; int32_t = int]’
      52 |   TBinaryProtocolT(std::shared_ptr<Transport_> trans,
         |   ^~~~~~~~~~~~~~~~
   /usr/local/include/thrift/protocol/TBinaryProtocol.h:52:3: note:   candidate 
expects 5 arguments, 1 provided
   
   **To Reproduce (复现方法)**
   开启thrift,cmake -B build -DWITH_THRIFT=ON编译出错
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS:WSL2 ubuntu20.04
   Compiler:gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)
   brpc:
   commit b226c34b019223d6f59dbde892ad59f6740a2439 (HEAD -> master, 
origin/master, origin/HEAD)
   Merge: b34b776c ba5d932d
   Author: Jiashun Zhu <[email protected]>
   Date:   Thu Jan 7 19:25:17 2021 +0100
   
   **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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to