songdongsheng opened a new issue #1642:
URL: https://github.com/apache/incubator-brpc/issues/1642


   **Describe the bug (描述bug)**
   
   In file included from 
/tmp/tmp.7mW5R2vmFp/src/brpc/builtin/connections_service.cpp:28:
   /tmp/tmp.7mW5R2vmFp/src/brpc/nshead_service.h:66:19: error: field type 
'brpc::NsheadMessage' is an abstract class
       NsheadMessage _request;
                     ^
   /usr/include/google/protobuf/message.h:251:12: note: unimplemented pure 
virtual method 'New' in 'NsheadMessage'
     Message* New(Arena* arena) const override = 0;
              ^
   In file included from 
/tmp/tmp.7mW5R2vmFp/src/brpc/builtin/connections_service.cpp:28:
   /tmp/tmp.7mW5R2vmFp/src/brpc/nshead_service.h:67:19: error: field type 
'brpc::NsheadMessage' is an abstract class
       NsheadMessage _response;
                     ^
   20 warnings and 2 errors generated.
   
   
   **To Reproduce (复现方法)**
   
   cd $(mktemp -d)
   curl -sSL 
https://downloads.apache.org/incubator/brpc/1.0.0/apache-brpc-1.0.0-incubating-src.tar.gz
 | tar -xz --strip-components 1
   rm -fr build && mkdir build && cd build
   cmake \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
     -DCMAKE_INSTALL_PREFIX=/usr \
     ..
   make -j 2
   
   **Expected behavior (期望行为)**
   make successful
   
   **Versions (各种版本)**
   OS: RHEL 8.5
   Compiler: both clang 12.0.1 & 8.5.0 failed
   brpc: 1.0.0
   protobuf: v3.19.1
   
   **Additional context/screenshots (更多上下文/截图)**
   
![image](https://user-images.githubusercontent.com/68488/146361305-946c374b-4110-4edc-ad65-1ef8e6af78e0.png)
   
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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