You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robbie Gemmell (Jira)" <ji...@apache.org> on 2022/11/01 15:51:00 UTC

[jira] [Commented] (PROTON-2473) Deprecation warnings when compiling Proton with OpenSSL 3

    [ https://issues.apache.org/jira/browse/PROTON-2473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17627222#comment-17627222 ] 

Robbie Gemmell commented on PROTON-2473:
----------------------------------------

PROTON-2544 changes things so the build could still succeed. Leaving this Jira open around future change to avoid the deprecations.

> Deprecation warnings when compiling Proton with OpenSSL 3
> ---------------------------------------------------------
>
>                 Key: PROTON-2473
>                 URL: https://issues.apache.org/jira/browse/PROTON-2473
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: build, proton-c
>    Affects Versions: proton-c-0.37.0
>            Reporter: Jiri Daněk
>            Priority: Major
>
> OpenSSL 3 has deprecated some parts of the API
> Workaround: {{-Wno-error=deprecated-declarations}} in CFLAGS, or {{-DENABLE_WARNING_ERROR=OFF}} for CMake
> https://app.travis-ci.com/github/apache/qpid-dispatch/jobs/550747365#L1052
> {noformat}
> [ 32%] Building C object c/CMakeFiles/qpid-proton-core-objects.dir/src/ssl/openssl.c.o
> /Users/travis/build/apache/qpid-dispatch/qpid-proton/c/src/ssl/openssl.c:398:12: warning: 
>       'DH_new' is deprecated [-Wdeprecated-declarations]
>   DH *dh = DH_new();
>            ^
> /opt/local/libexec/openssl3/include/openssl/dh.h:199:1: note: 'DH_new' has been
>       explicitly marked deprecated here
> OSSL_DEPRECATEDIN_3_0 DH *DH_new(void);
> ^
> /opt/local/libexec/openssl3/include/openssl/macros.h:182:49: note: expanded from
>       macro 'OSSL_DEPRECATEDIN_3_0'
> #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
>                                                 ^
> /opt/local/libexec/openssl3/include/openssl/macros.h:62:52: note: expanded from
>       macro 'OSSL_DEPRECATED'
> #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
>                                                    ^
> /Users/travis/build/apache/qpid-dispatch/qpid-proton/c/src/ssl/openssl.c:406:11: warning: 
>       'DH_set0_pqg' is deprecated [-Wdeprecated-declarations]
>       || !DH_set0_pqg(dh, dhp_bn, NULL, dhg_bn)) {
>           ^
> /opt/local/libexec/openssl3/include/openssl/dh.h:255:1: note: 'DH_set0_pqg' has
>       been explicitly marked deprecated here
> OSSL_DEPRECATEDIN_3_0 int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g);
> ^
> /opt/local/libexec/openssl3/include/openssl/macros.h:182:49: note: expanded from
>       macro 'OSSL_DEPRECATEDIN_3_0'
> #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
>                                                 ^
> /opt/local/libexec/openssl3/include/openssl/macros.h:62:52: note: expanded from
>       macro 'OSSL_DEPRECATED'
> #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
>                                                    ^
> /Users/travis/build/apache/qpid-dispatch/qpid-proton/c/src/ssl/openssl.c:407:5: warning: 
>       'DH_free' is deprecated [-Wdeprecated-declarations]
>     DH_free(dh);
>     ^
> /opt/local/libexec/openssl3/include/openssl/dh.h:200:1: note: 'DH_free' has been
>       explicitly marked deprecated here
> OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
> ^
> /opt/local/libexec/openssl3/include/openssl/macros.h:182:49: note: expanded from
>       macro 'OSSL_DEPRECATEDIN_3_0'
> #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
>                                                 ^
> /opt/local/libexec/openssl3/include/openssl/macros.h:62:52: note: expanded from
>       macro 'OSSL_DEPRECATED'
> #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
>                                                    ^
> /Users/travis/build/apache/qpid-dispatch/qpid-proton/c/src/ssl/openssl.c:548:5: warning: 
>       'DH_free' is deprecated [-Wdeprecated-declarations]
>     DH_free(dh);
>     ^
> /opt/local/libexec/openssl3/include/openssl/dh.h:200:1: note: 'DH_free' has been
>       explicitly marked deprecated here
> OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
> ^
> /opt/local/libexec/openssl3/include/openssl/macros.h:182:49: note: expanded from
>       macro 'OSSL_DEPRECATEDIN_3_0'
> #   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
>                                                 ^
> /opt/local/libexec/openssl3/include/openssl/macros.h:62:52: note: expanded from
>       macro 'OSSL_DEPRECATED'
> #     define OSSL_DEPRECATED(since) __attribute__((deprecated))
>                                                    ^
> 4 warnings generated.
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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