orange-cloudfoundry / helm-kubectl-boshrelease

https://orange-cloudfoundry.github.io/helm-kubectl-boshrelease/
Apache License 2.0
6 stars 1 forks source link

compilation failure with jammy stemcell #35

Closed poblin-orange closed 1 year ago

poblin-orange commented 1 year ago

ko with jammy 1.95

make[2]: Leaving directory '/var/vcap/data/compile/ruby-2.6.5-r0.29.0/ruby-2.6.5/ext/openssl'

make[1]: Leaving directory '/var/vcap/data/compile/ruby-2.6.5-r0.29.0/ruby-2.6.5'

, Truncated stderr:                  from ossl.h:23,

                 from ossl_pkey_rsa.c:10:

/usr/include/openssl/rsa.h:208:27: note: declared here

  208 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_factors(RSA *r, BIGNUM *p, BIGNUM *q);

      |                           ^~~~~~~~~~~~~~~~

ossl_pkey_rsa.c: In function 'ossl_rsa_get_dmp1':

ossl_pkey_rsa.c:872:1: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

  872 | OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)

      | ^~~~~~~~~~~~~~~~~

In file included from /usr/include/openssl/x509.h:29,

                 from /usr/include/openssl/x509v3.h:25,

                 from ossl.h:23,

                 from ossl_pkey_rsa.c:10:

/usr/include/openssl/evp.h:1346:22: note: declared here

 1346 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey);

      |                      ^~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c:23:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

   23 |     (rsa) = EVP_PKEY_get0_RSA(_pkey); \

      |           ^

ossl_pkey.h:102:9: note: in expansion of macro 'GetRSA'

  102 |         Get##_type(self, obj);                                          \

      |         ^~~

ossl_pkey.h:110:9: note: in expansion of macro 'OSSL_PKEY_BN_DEF_GETTER0'

  110 |         OSSL_PKEY_BN_DEF_GETTER0(_keytype, _type, a1,                   \

      |         ^~~~~~~~~~~~~~~~~~~~~~~~

ossl_pkey.h:211:9: note: in expansion of macro 'OSSL_PKEY_BN_DEF_GETTER3'

  211 |         OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \

      |         ^~~~~~~~~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c:872:1: note: in expansion of macro 'OSSL_PKEY_BN_DEF3'

  872 | OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)

      | ^~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c:872:1: warning: 'RSA_get0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

In file included from /usr/include/openssl/x509.h:36,

                 from /usr/include/openssl/x509v3.h:25,

                 from ossl.h:23,

                 from ossl_pkey_rsa.c:10:

/usr/include/openssl/rsa.h:225:28: note: declared here

  225 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_crt_params(const RSA *r,

      |                            ^~~~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c: In function 'ossl_rsa_get_dmq1':

ossl_pkey_rsa.c:872:1: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

  872 | OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)

      | ^~~~~~~~~~~~~~~~~

In file included from /usr/include/openssl/x509.h:29,

                 from /usr/include/openssl/x509v3.h:25,

                 from ossl.h:23,

                 from ossl_pkey_rsa.c:10:

/usr/include/openssl/evp.h:1346:22: note: declared here

 1346 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey);

      |                      ^~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c:23:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

   23 |     (rsa) = EVP_PKEY_get0_RSA(_pkey); \

      |           ^

ossl_pkey.h:102:9: note: in expansion of macro 'GetRSA'

  102 |         Get##_type(self, obj);                                          \

      |         ^~~

ossl_pkey.h:112:9: note: in expansion of macro 'OSSL_PKEY_BN_DEF_GETTER0'

  112 |         OSSL_PKEY_BN_DEF_GETTER0(_keytype, _type, a2,                   \

      |         ^~~~~~~~~~~~~~~~~~~~~~~~

ossl_pkey.h:211:9: note: in expansion of macro 'OSSL_PKEY_BN_DEF_GETTER3'

  211 |         OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \

      |         ^~~~~~~~~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c:872:1: note: in expansion of macro 'OSSL_PKEY_BN_DEF3'

  872 | OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)

      | ^~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c:872:1: warning: 'RSA_get0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

In file included from /usr/include/openssl/x509.h:36,

                 from /usr/include/openssl/x509v3.h:25,

                 from ossl.h:23,

                 from ossl_pkey_rsa.c:10:

/usr/include/openssl/rsa.h:225:28: note: declared here

  225 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_crt_params(const RSA *r,

      |                            ^~~~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c: In function 'ossl_rsa_get_iqmp':

ossl_pkey_rsa.c:872:1: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

  872 | OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)

      | ^~~~~~~~~~~~~~~~~

In file included from /usr/include/openssl/x509.h:29,

                 from /usr/include/openssl/x509v3.h:25,

                 from ossl.h:23,

                 from ossl_pkey_rsa.c:10:

/usr/include/openssl/evp.h:1346:22: note: declared here

 1346 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey);

      |                      ^~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c:23:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

   23 |     (rsa) = EVP_PKEY_get0_RSA(_pkey); \

      |           ^

ossl_pkey.h:102:9: note: in expansion of macro 'GetRSA'

  102 |         Get##_type(self, obj);                                          \

      |         ^~~

ossl_pkey.h:114:9: note: in expansion of macro 'OSSL_PKEY_BN_DEF_GETTER0'

  114 |         OSSL_PKEY_BN_DEF_GETTER0(_keytype, _type, a3,                   \

      |         ^~~~~~~~~~~~~~~~~~~~~~~~

ossl_pkey.h:211:9: note: in expansion of macro 'OSSL_PKEY_BN_DEF_GETTER3'

  211 |         OSSL_PKEY_BN_DEF_GETTER3(_keytype, _type, _group, a1, a2, a3)   \

      |         ^~~~~~~~~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c:872:1: note: in expansion of macro 'OSSL_PKEY_BN_DEF3'

  872 | OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)

      | ^~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c:872:1: warning: 'RSA_get0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

In file included from /usr/include/openssl/x509.h:36,

                 from /usr/include/openssl/x509v3.h:25,

                 from ossl.h:23,

                 from ossl_pkey_rsa.c:10:

/usr/include/openssl/rsa.h:225:28: note: declared here

  225 | OSSL_DEPRECATEDIN_3_0 void RSA_get0_crt_params(const RSA *r,

      |                            ^~~~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c: In function 'ossl_rsa_set_crt_params':

ossl_pkey_rsa.c:872:1: warning: 'EVP_PKEY_get0_RSA' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

  872 | OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)

      | ^~~~~~~~~~~~~~~~~

In file included from /usr/include/openssl/x509.h:29,

                 from /usr/include/openssl/x509v3.h:25,

                 from ossl.h:23,

                 from ossl_pkey_rsa.c:10:

/usr/include/openssl/evp.h:1346:22: note: declared here

 1346 | const struct rsa_st *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey);

      |                      ^~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c:23:11: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]

   23 |     (rsa) = EVP_PKEY_get0_RSA(_pkey); \

      |           ^

ossl_pkey.h:135:9: note: in expansion of macro 'GetRSA'

  135 |         Get##_type(self, obj);                                          \

      |         ^~~

ossl_pkey.h:212:9: note: in expansion of macro 'OSSL_PKEY_BN_DEF_SETTER3'

  212 |         OSSL_PKEY_BN_DEF_SETTER3(_keytype, _type, _group, a1, a2, a3)

      |         ^~~~~~~~~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c:872:1: note: in expansion of macro 'OSSL_PKEY_BN_DEF3'

  872 | OSSL_PKEY_BN_DEF3(rsa, RSA, crt_params, dmp1, dmq1, iqmp)

      | ^~~~~~~~~~~~~~~~~

ossl_pkey_rsa.c:872:1: warning: 'RSA_set0_crt_params' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]

In file included from /usr/include/openssl/x509.h:36,

                 from /usr/include/openssl/x509v3.h:25,

                 from ossl.h:23,

                 from ossl_pkey_rsa.c:10:

/usr/include/openssl/rsa.h:209:27: note: declared here

  209 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_crt_params(RSA *r,

      |                           ^~~~~~~~~~~~~~~~~~~

In file included from ../.././include/ruby.h:33,

                 from ossl.h:16,

                 from ossl_pkey_rsa.c:10:

ossl_pkey_rsa.c: In function 'Init_ossl_rsa':

ossl_pkey_rsa.c:877:58: error: 'RSA_SSLV23_PADDING' undeclared (first use in this function); did you mean 'RSA_NO_PADDING'?

  877 | #define DefRSAConst(x) rb_define_const(cRSA, #x, INT2NUM(RSA_##x))

      |                                                          ^~~~

../.././include/ruby/ruby.h:261:33: note: in definition of macro 'RB_INT2FIX'

  261 | #define RB_INT2FIX(i) (((VALUE)(i))<<1 | RUBY_FIXNUM_FLAG)

      |                                 ^

../.././include/ruby/ruby.h:1594:20: note: in expansion of macro 'RB_INT2NUM'

 1594 | #define INT2NUM(x) RB_INT2NUM(x)

      |                    ^~~~~~~~~~

ossl_pkey_rsa.c:877:50: note: in expansion of macro 'INT2NUM'

  877 | #define DefRSAConst(x) rb_define_const(cRSA, #x, INT2NUM(RSA_##x))

      |                                                  ^~~~~~~

ossl_pkey_rsa.c:942:5: note: in expansion of macro 'DefRSAConst'

  942 |     DefRSAConst(SSLV23_PADDING);

      |     ^~~~~~~~~~~

ossl_pkey_rsa.c:877:58: note: each undeclared identifier is reported only once for each function it appears in

  877 | #define DefRSAConst(x) rb_define_const(cRSA, #x, INT2NUM(RSA_##x))

      |                                                          ^~~~

../.././include/ruby/ruby.h:261:33: note: in definition of macro 'RB_INT2FIX'

  261 | #define RB_INT2FIX(i) (((VALUE)(i))<<1 | RUBY_FIXNUM_FLAG)

      |                                 ^

../.././include/ruby/ruby.h:1594:20: note: in expansion of macro 'RB_INT2NUM'

 1594 | #define INT2NUM(x) RB_INT2NUM(x)

      |                    ^~~~~~~~~~

ossl_pkey_rsa.c:877:50: note: in expansion of macro 'INT2NUM'

  877 | #define DefRSAConst(x) rb_define_const(cRSA, #x, INT2NUM(RSA_##x))

      |                                                  ^~~~~~~

ossl_pkey_rsa.c:942:5: note: in expansion of macro 'DefRSAConst'

  942 |     DefRSAConst(SSLV23_PADDING);

      |     ^~~~~~~~~~~

make[2]: *** [Makefile:313: ossl_pkey_rsa.o] Error 1

make[1]: *** [exts.mk:242: ext/openssl/all] Error 2

make: *** [uncommon.mk:286: build-ext] Error 2
poblin-orange commented 1 year ago

bump ruby package