Ошибка: объявление 'freefunc' скрывает глобальное объявление - PullRequest
0 голосов
/ 14 апреля 2020

При создании приложения с использованием openssl 1.1.1d я получаю ошибку ниже,

Я знаю C ++, но не эксперт. Потратил много времени, но до сих пор не получил никакой подсказки. Может кто-нибудь, пожалуйста, помогите мне определить причину root.

In file included from /usr/local/ssl/include/openssl/crypto.h:23:0,
                 from /usr/local/ssl/include/openssl/bio.h:20,
                 from /usr/local/ssl/include/openssl/err.h:21,
                 from main.cpp:41:
/usr/local/ssl/include/openssl/safestack.h: In function ‘void sk_OPENSSL_STRING_pop_free(stack_st_OPENSSL_STRING*, sk_OPENSSL_STRING_freefunc)’:
/usr/local/ssl/include/openssl/safestack.h:84:105: error: declaration of ‘freefunc’ shadows a global declaration [-Werror=shadow]
     static ossl_unused ossl_inline void sk_##t1##_pop_free(STACK_OF(t1) *sk, sk_##t1##_freefunc freefunc) \
                                                                                                         ^
/usr/local/ssl/include/openssl/safestack.h:129:42: note: in expansion of macro ‘SKM_DEFINE_STACK_OF’
 # define DEFINE_SPECIAL_STACK_OF(t1, t2) SKM_DEFINE_STACK_OF(t1, t2, t2)
                                          ^
/usr/local/ssl/include/openssl/safestack.h:159:1: note: in expansion of macro ‘DEFINE_SPECIAL_STACK_OF’
 DEFINE_SPECIAL_STACK_OF(OPENSSL_STRING, char)
 ^
In file included from /builddir/.iwmake/repository/expanded/com/tripwire/ip360/dp/stackless/python/dp-stackless-python/2.7.16.tw1.bfeature-centos7_support_OpenSSL_1.1.1d_for_profiler_scanning.r20200413140649-ef994e5.b22//include/python2.7/Python.h:91:0,
                 from main.cpp:19:
/builddir/.iwmake/repository/expanded/com/tripwire/ip360/dp/stackless/python/dp-stackless-python/2.7.16.tw1.bfeature-centos7_support_OpenSSL_1.1.1d_for_profiler_scanning.r20200413140649-ef994e5.b22//include/python2.7/object.h:324:16: error: shadowed declaration is here [-Werror=shadow]
 typedef void (*freefunc)(void *);

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...