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/07/04 09:40:37 UTC

[GitHub] [incubator-brpc] wangguibao opened a new issue #833: Duplicate function definition EVP_PKEY_base_id

wangguibao opened a new issue #833: Duplicate function definition EVP_PKEY_base_id
URL: https://github.com/apache/incubator-brpc/issues/833
 
 
   I'm having trouble building brpc with GCC 5.2.0
   
   The error compiler reported is:
   ```
   In file included from /home/wangguibao/code/git/Serving/build/third_party/brpc/src/extern_brpc/src/brpc/policy/dh.cpp:20:0:
   ./butil/ssl_compat.h: In function ‘int EVP_PKEY_base_id(const EVP_PKEY*)’:
   ./butil/ssl_compat.h:520:17: error: redefinition of ‘int EVP_PKEY_base_id(const EVP_PKEY*)’
    BRPC_INLINE int EVP_PKEY_base_id(const EVP_PKEY *pkey) {
                    ^
   ./butil/ssl_compat.h:516:17: note: ‘int EVP_PKEY_base_id(const EVP_PKEY*)’ previously defined here
    BRPC_INLINE int EVP_PKEY_base_id(const EVP_PKEY *pkey) {
   ```
   
   Looking into src/butil/ssl_compat.h, there's definitely duplicate function definition of `EVP_PKEY_base_id`:
   
   https://github.com/apache/incubator-brpc/blob/master/src/butil/ssl_compat.h#L515
   
   Not sure why building brpc with other toolchain not complain about this.

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