kostya / benchmarks

Some benchmarks of different languages
MIT License
2.81k stars 254 forks source link

Dockerfile fails to install Ruby with Graal VM and Java 17 #418

Closed hungrybluedev closed 2 years ago

hungrybluedev commented 2 years ago

After runing the update_apt script, I was able to make progress on the docker build command: #417

However, the build fails at the following step:

The command '/bin/bash -o pipefail -c gu install ruby     && /home/dev/bin/graalvm-ce-java17-$GRAALVM/languages/ruby/lib/truffle/post_install_hook.sh     && ln -s /home/dev/bin/graalvm-ce-java17-$GRAALVM/bin/truffleruby /home/dev/bin/truffleruby' returned a non-zero code: 2

With the (trancated) error output:

...
/usr/include/openssl/rsa.h:217:1: note: 'RSA_get0_key' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:470:25: warning: 'RSA_size' is deprecated [-Wdeprecated-declarations]
    str = rb_str_new(0, RSA_size(rsa));
                        ^
/usr/include/openssl/rsa.h:204:1: note: 'RSA_size' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:471:15: warning: 'RSA_public_decrypt' is deprecated [-Wdeprecated-declarations]
    buf_len = RSA_public_decrypt(RSTRING_LENINT(buffer), (unsigned char *)RSTRING_PTR(buffer),
              ^
/usr/include/openssl/rsa.h:287:1: note: 'RSA_public_decrypt' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:495:5: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
    GetRSA(self, rsa);
    ^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:496:5: warning: 'RSA_get0_key' is deprecated [-Wdeprecated-declarations]
    RSA_get0_key(rsa, &rsa_n, NULL, NULL);
    ^
/usr/include/openssl/rsa.h:217:1: note: 'RSA_get0_key' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:504:25: warning: 'RSA_size' is deprecated [-Wdeprecated-declarations]
    str = rb_str_new(0, RSA_size(rsa));
                        ^
/usr/include/openssl/rsa.h:204:1: note: 'RSA_size' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:505:15: warning: 'RSA_private_encrypt' is deprecated [-Wdeprecated-declarations]
    buf_len = RSA_private_encrypt(RSTRING_LENINT(buffer), (unsigned char *)RSTRING_PTR(buffer),
              ^
/usr/include/openssl/rsa.h:284:1: note: 'RSA_private_encrypt' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:529:5: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
    GetRSA(self, rsa);
    ^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:530:5: warning: 'RSA_get0_key' is deprecated [-Wdeprecated-declarations]
    RSA_get0_key(rsa, &rsa_n, NULL, NULL);
    ^
/usr/include/openssl/rsa.h:217:1: note: 'RSA_get0_key' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:538:25: warning: 'RSA_size' is deprecated [-Wdeprecated-declarations]
    str = rb_str_new(0, RSA_size(rsa));
                        ^
/usr/include/openssl/rsa.h:204:1: note: 'RSA_size' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int RSA_size(const RSA *rsa);
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:539:15: warning: 'RSA_private_decrypt' is deprecated [-Wdeprecated-declarations]
    buf_len = RSA_private_decrypt(RSTRING_LENINT(buffer), (unsigned char *)RSTRING_PTR(buffer),
              ^
/usr/include/openssl/rsa.h:290:1: note: 'RSA_private_decrypt' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:755:5: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
    GetRSA(self, rsa);
    ^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:756:5: warning: 'RSA_get0_key' is deprecated [-Wdeprecated-declarations]
    RSA_get0_key(rsa, &n, &e, &d);
    ^
/usr/include/openssl/rsa.h:217:1: note: 'RSA_get0_key' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:757:5: warning: 'RSA_get0_factors' is deprecated [-Wdeprecated-declarations]
    RSA_get0_factors(rsa, &p, &q);
    ^
/usr/include/openssl/rsa.h:220:1: note: 'RSA_get0_factors' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_get0_factors(const RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:758:5: warning: 'RSA_get0_crt_params' is deprecated [-Wdeprecated-declarations]
    RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp);
    ^
/usr/include/openssl/rsa.h:225:1: note: 'RSA_get0_crt_params' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_get0_crt_params(const RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:790:5: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
    GetRSA(self, rsa);
    ^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:794:10: warning: 'RSA_print' is deprecated [-Wdeprecated-declarations]
    if (!RSA_print(out, rsa, 0)) { /* offset = 0 */
         ^
/usr/include/openssl/rsa.h:342:1: note: 'RSA_print' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int RSA_print(BIO *bp, const RSA *r, int offset);
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:818:11: warning: 'RSAPublicKey_dup' is deprecated [-Wdeprecated-declarations]
    rsa = RSAPublicKey_dup(EVP_PKEY_get0_RSA(pkey));
          ^
/usr/include/openssl/rsa.h:448:37: note: 'RSAPublicKey_dup' has been explicitly marked deprecated here
DECLARE_ASN1_DUP_FUNCTION_name_attr(OSSL_DEPRECATEDIN_3_0, RSA, RSAPublicKey)
                                    ^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:818:28: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
    rsa = RSAPublicKey_dup(EVP_PKEY_get0_RSA(pkey));
                           ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:821:2: warning: 'RSA_free' is deprecated [-Wdeprecated-declarations]
        RSA_free(rsa);
        ^
/usr/include/openssl/rsa.h:293:1: note: 'RSA_free' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:862:1: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, key, n, e, d)
^
./ossl_pkey.h:211:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \
        ^
./ossl_pkey.h:110:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER3'
        OSSL_PKEY_BN_DEF_GETTER0(_keytype, _type, a1,                   \
        ^
./ossl_pkey.h:102:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER0'
        Get##_type(self, obj);                                          \
        ^
<scratch space>:111:1: note: expanded from here
GetRSA
^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:862:1: warning: 'RSA_get0_key' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, key, n, e, d)
^
./ossl_pkey.h:211:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \
        ^
./ossl_pkey.h:111:3: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER3'
                _type##_get0_##_group(obj, &bn, NULL, NULL))            \
                ^
<scratch space>:107:1: note: expanded from here
RSA_get0_key
^
/usr/include/openssl/rsa.h:217:1: note: 'RSA_get0_key' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:862:1: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, key, n, e, d)
^
./ossl_pkey.h:211:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \
        ^
./ossl_pkey.h:112:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER3'
        OSSL_PKEY_BN_DEF_GETTER0(_keytype, _type, a2,                   \
        ^
./ossl_pkey.h:102:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER0'
        Get##_type(self, obj);                                          \
        ^
<scratch space>:117:1: note: expanded from here
GetRSA
^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:862:1: warning: 'RSA_get0_key' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, key, n, e, d)
^
./ossl_pkey.h:211:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \
        ^
./ossl_pkey.h:113:3: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER3'
                _type##_get0_##_group(obj, NULL, &bn, NULL))            \
                ^
<scratch space>:113:1: note: expanded from here
RSA_get0_key
^
/usr/include/openssl/rsa.h:217:1: note: 'RSA_get0_key' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:862:1: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, key, n, e, d)
^
./ossl_pkey.h:211:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \
        ^
./ossl_pkey.h:114:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER3'
        OSSL_PKEY_BN_DEF_GETTER0(_keytype, _type, a3,                   \
        ^
./ossl_pkey.h:102:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER0'
        Get##_type(self, obj);                                          \
        ^
<scratch space>:123:1: note: expanded from here
GetRSA
^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:862:1: warning: 'RSA_get0_key' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, key, n, e, d)
^
./ossl_pkey.h:211:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \
        ^
./ossl_pkey.h:115:3: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER3'
                _type##_get0_##_group(obj, NULL, NULL, &bn))
                ^
<scratch space>:119:1: note: expanded from here
RSA_get0_key
^
/usr/include/openssl/rsa.h:217:1: note: 'RSA_get0_key' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_get0_key(const RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:862:1: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, key, n, e, d)
^
./ossl_pkey.h:212:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_SETTER3(_keytype, _type, _group, a1, a2, a3)
        ^
./ossl_pkey.h:135:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_SETTER3'
        Get##_type(self, obj);                                          \
        ^
<scratch space>:129:1: note: expanded from here
GetRSA
^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:862:1: warning: 'RSA_set0_key' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, key, n, e, d)
^
./ossl_pkey.h:212:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_SETTER3(_keytype, _type, _group, a1, a2, a3)
        ^
./ossl_pkey.h:145:7: note: expanded from macro 'OSSL_PKEY_BN_DEF_SETTER3'
        if (!_type##_set0_##_group(obj, bn1, bn2, bn3)) {               \
             ^
<scratch space>:131:1: note: expanded from here
RSA_set0_key
^
/usr/include/openssl/rsa.h:207:1: note: 'RSA_set0_key' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:870:1: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF2(rsa, RSA, factors, p, q)
^
./ossl_pkey.h:215:2: note: expanded from macro 'OSSL_PKEY_BN_DEF2'
        OSSL_PKEY_BN_DEF_GETTER2(_keytype, _type, _group, a1, a2)       \
        ^
./ossl_pkey.h:118:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER2'
        OSSL_PKEY_BN_DEF_GETTER0(_keytype, _type, a1,                   \
        ^
./ossl_pkey.h:102:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER0'
        Get##_type(self, obj);                                          \
        ^
<scratch space>:137:1: note: expanded from here
GetRSA
^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:870:1: warning: 'RSA_get0_factors' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF2(rsa, RSA, factors, p, q)
^
./ossl_pkey.h:215:2: note: expanded from macro 'OSSL_PKEY_BN_DEF2'
        OSSL_PKEY_BN_DEF_GETTER2(_keytype, _type, _group, a1, a2)       \
        ^
./ossl_pkey.h:119:3: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER2'
                _type##_get0_##_group(obj, &bn, NULL))                  \
                ^
<scratch space>:133:1: note: expanded from here
RSA_get0_factors
^
/usr/include/openssl/rsa.h:220:1: note: 'RSA_get0_factors' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_get0_factors(const RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:870:1: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF2(rsa, RSA, factors, p, q)
^
./ossl_pkey.h:215:2: note: expanded from macro 'OSSL_PKEY_BN_DEF2'
        OSSL_PKEY_BN_DEF_GETTER2(_keytype, _type, _group, a1, a2)       \
        ^
./ossl_pkey.h:120:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER2'
        OSSL_PKEY_BN_DEF_GETTER0(_keytype, _type, a2,                   \
        ^
./ossl_pkey.h:102:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER0'
        Get##_type(self, obj);                                          \
        ^
<scratch space>:143:1: note: expanded from here
GetRSA
^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:870:1: warning: 'RSA_get0_factors' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF2(rsa, RSA, factors, p, q)
^
./ossl_pkey.h:215:2: note: expanded from macro 'OSSL_PKEY_BN_DEF2'
        OSSL_PKEY_BN_DEF_GETTER2(_keytype, _type, _group, a1, a2)       \
        ^
./ossl_pkey.h:121:3: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER2'
                _type##_get0_##_group(obj, NULL, &bn))
                ^
<scratch space>:139:1: note: expanded from here
RSA_get0_factors
^
/usr/include/openssl/rsa.h:220:1: note: 'RSA_get0_factors' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_get0_factors(const RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:870:1: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF2(rsa, RSA, factors, p, q)
^
./ossl_pkey.h:216:2: note: expanded from macro 'OSSL_PKEY_BN_DEF2'
        OSSL_PKEY_BN_DEF_SETTER2(_keytype, _type, _group, a1, a2)
        ^
./ossl_pkey.h:165:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_SETTER2'
        Get##_type(self, obj);                                          \
        ^
<scratch space>:149:1: note: expanded from here
GetRSA
^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:870:1: warning: 'RSA_set0_factors' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF2(rsa, RSA, factors, p, q)
^
./ossl_pkey.h:216:2: note: expanded from macro 'OSSL_PKEY_BN_DEF2'
        OSSL_PKEY_BN_DEF_SETTER2(_keytype, _type, _group, a1, a2)
        ^
./ossl_pkey.h:173:7: note: expanded from macro 'OSSL_PKEY_BN_DEF_SETTER2'
        if (!_type##_set0_##_group(obj, bn1, bn2)) {                    \
             ^
<scratch space>:151:1: note: expanded from here
RSA_set0_factors
^
/usr/include/openssl/rsa.h:208:1: note: 'RSA_set0_factors' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:880:1: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)
^
./ossl_pkey.h:211:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \
        ^
./ossl_pkey.h:110:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER3'
        OSSL_PKEY_BN_DEF_GETTER0(_keytype, _type, a1,                   \
        ^
./ossl_pkey.h:102:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER0'
        Get##_type(self, obj);                                          \
        ^
<scratch space>:157:1: note: expanded from here
GetRSA
^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:880:1: warning: 'RSA_get0_crt_params' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)
^
./ossl_pkey.h:211:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \
        ^
./ossl_pkey.h:111:3: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER3'
                _type##_get0_##_group(obj, &bn, NULL, NULL))            \
                ^
<scratch space>:153:1: note: expanded from here
RSA_get0_crt_params
^
/usr/include/openssl/rsa.h:225:1: note: 'RSA_get0_crt_params' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_get0_crt_params(const RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:880:1: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)
^
./ossl_pkey.h:211:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \
        ^
./ossl_pkey.h:112:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER3'
        OSSL_PKEY_BN_DEF_GETTER0(_keytype, _type, a2,                   \
        ^
./ossl_pkey.h:102:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER0'
        Get##_type(self, obj);                                          \
        ^
<scratch space>:163:1: note: expanded from here
GetRSA
^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:880:1: warning: 'RSA_get0_crt_params' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)
^
./ossl_pkey.h:211:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \
        ^
./ossl_pkey.h:113:3: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER3'
                _type##_get0_##_group(obj, NULL, &bn, NULL))            \
                ^
<scratch space>:159:1: note: expanded from here
RSA_get0_crt_params
^
/usr/include/openssl/rsa.h:225:1: note: 'RSA_get0_crt_params' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_get0_crt_params(const RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:880:1: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)
^
./ossl_pkey.h:211:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \
        ^
./ossl_pkey.h:114:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER3'
        OSSL_PKEY_BN_DEF_GETTER0(_keytype, _type, a3,                   \
        ^
./ossl_pkey.h:102:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER0'
        Get##_type(self, obj);                                          \
        ^
<scratch space>:169:1: note: expanded from here
GetRSA
^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:880:1: warning: 'RSA_get0_crt_params' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)
^
./ossl_pkey.h:211:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \
        ^
./ossl_pkey.h:115:3: note: expanded from macro 'OSSL_PKEY_BN_DEF_GETTER3'
                _type##_get0_##_group(obj, NULL, NULL, &bn))
                ^
<scratch space>:165:1: note: expanded from here
RSA_get0_crt_params
^
/usr/include/openssl/rsa.h:225:1: note: 'RSA_get0_crt_params' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 void RSA_get0_crt_params(const RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:880:1: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)
^
./ossl_pkey.h:212:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_SETTER3(_keytype, _type, _group, a1, a2, a3)
        ^
./ossl_pkey.h:135:2: note: expanded from macro 'OSSL_PKEY_BN_DEF_SETTER3'
        Get##_type(self, obj);                                          \
        ^
<scratch space>:175:1: note: expanded from here
GetRSA
^
ossl_pkey_rsa.c:23:13: note: expanded from macro 'GetRSA'
    (rsa) = EVP_PKEY_get0_RSA(_pkey); \
            ^
/usr/include/openssl/evp.h:1345:1: note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_pkey_rsa.c:880:1: warning: 'RSA_set0_crt_params' is deprecated [-Wdeprecated-declarations]
OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)
^
./ossl_pkey.h:212:2: note: expanded from macro 'OSSL_PKEY_BN_DEF3'
        OSSL_PKEY_BN_DEF_SETTER3(_keytype, _type, _group, a1, a2, a3)
        ^
./ossl_pkey.h:145:7: note: expanded from macro 'OSSL_PKEY_BN_DEF_SETTER3'
        if (!_type##_set0_##_group(obj, bn1, bn2, bn3)) {               \
             ^
<scratch space>:177:1: note: expanded from here
RSA_set0_crt_params
^
/usr/include/openssl/rsa.h:209:1: note: 'RSA_set0_crt_params' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int RSA_set0_crt_params(RSA *r,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
In file included from ossl_rand.c:10:
In file included from ./ossl.h:156:
./openssl_missing.h:239:11: warning: 'TS_VERIFY_CTS_set_certs' macro redefined [-Wmacro-redefined]
#  define TS_VERIFY_CTS_set_certs(ctx, crts) ((ctx)->certs=(crts))
          ^
/usr/include/openssl/ts.h:424:11: note: previous definition is here
#  define TS_VERIFY_CTS_set_certs(ctx, cert) TS_VERIFY_CTX_set_certs(ctx,cert)
          ^
ossl_pkey_rsa.c:950:5: error: use of undeclared identifier 'RSA_SSLV23_PADDING'
    DefRSAConst(SSLV23_PADDING);
    ^
ossl_pkey_rsa.c:885:58: note: expanded from macro 'DefRSAConst'
#define DefRSAConst(x) rb_define_const(cRSA, #x, INT2NUM(RSA_##x))
                                                         ^
<scratch space>:213:1: note: expanded from here
RSA_SSLV23_PADDING
^
84 warnings and 1 error generated.
make: *** [Makefile:515: ossl_pkey_rsa.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ossl_ts.c:10:
In file included from ./ossl.h:156:
./openssl_missing.h:239:11: warning: 'TS_VERIFY_CTS_set_certs' macro redefined [-Wmacro-redefined]
#  define TS_VERIFY_CTS_set_certs(ctx, crts) ((ctx)->certs=(crts))
          ^
/usr/include/openssl/ts.h:424:11: note: previous definition is here
#  define TS_VERIFY_CTS_set_certs(ctx, cert) TS_VERIFY_CTX_set_certs(ctx,cert)
          ^
1 warning generated.
75 warnings generated.
In file included from ossl_ssl.c:12:
In file included from ./ossl.h:156:
./openssl_missing.h:239:11: warning: 'TS_VERIFY_CTS_set_certs' macro redefined [-Wmacro-redefined]
#  define TS_VERIFY_CTS_set_certs(ctx, crts) ((ctx)->certs=(crts))
          ^
/usr/include/openssl/ts.h:424:11: note: previous definition is here
#  define TS_VERIFY_CTS_set_certs(ctx, cert) TS_VERIFY_CTX_set_certs(ctx,cert)
          ^
ossl_ts.c:819:5: error: incomplete definition of type 'struct TS_verify_ctx'
    TS_VERIFY_CTS_set_certs(ctx, x509inter);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./openssl_missing.h:239:52: note: expanded from macro 'TS_VERIFY_CTS_set_certs'
#  define TS_VERIFY_CTS_set_certs(ctx, crts) ((ctx)->certs=(crts))
                                              ~~~~~^
/usr/include/openssl/ts.h:405:16: note: forward declaration of 'struct TS_verify_ctx'
typedef struct TS_verify_ctx TS_VERIFY_CTX;
               ^
ossl_ssl.c:288:12: warning: 'EVP_PKEY_get0_DH' is deprecated [-Wdeprecated-declarations]
    return EVP_PKEY_get0_DH(pkey);
           ^
/usr/include/openssl/evp.h:1363:1: note: 'EVP_PKEY_get0_DH' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 const struct dh_st *EVP_PKEY_get0_DH(const EVP_PKEY *pkey);
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_ssl.c:797:5: warning: 'SSL_CTX_set_tmp_dh_callback' is deprecated [-Wdeprecated-declarations]
    SSL_CTX_set_tmp_dh_callback(ctx, ossl_tmp_dh_callback);
    ^
/usr/include/openssl/ssl.h:2226:1: note: 'SSL_CTX_set_tmp_dh_callback' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
ossl_ssl.c:1286:9: warning: 'EVP_PKEY_cmp' is deprecated [-Wdeprecated-declarations]
    if (EVP_PKEY_cmp(pub_pkey, pkey) != 1)
        ^
/usr/include/openssl/evp.h:1417:1: note: 'EVP_PKEY_cmp' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
1 warning and 1 error generated.
make: *** [Makefile:514: ossl_ts.o] Error 1
In file included from ossl_ssl_session.c:5:
In file included from ./ossl.h:156:
./openssl_missing.h:239:11: warning: 'TS_VERIFY_CTS_set_certs' macro redefined [-Wmacro-redefined]
#  define TS_VERIFY_CTS_set_certs(ctx, crts) ((ctx)->certs=(crts))
          ^
/usr/include/openssl/ts.h:424:11: note: previous definition is here
#  define TS_VERIFY_CTS_set_certs(ctx, cert) TS_VERIFY_CTX_set_certs(ctx,cert)
          ^
1 warning generated.
4 warnings generated.
nuald commented 2 years ago

That's a fairly new change - apparently, few days ago Debian testing repo changed libssl-dev to use libssl3 instead of libssl1.1. Looks like truffleruby has issues with using it, therefore I've commented out the running of post-installation script in #419 . It's not a breaking change (as OpenSSL is not used by Ruby tests), and I've run all the tests, they still work.