Skip to content

Error OpenSSL 3.0 ubuntu 22.04 #127

@juizmill

Description

@juizmill

When trying to install on Ubuntu 22.04 LTS is giving OpenSSL 3.0 error

 lsb_release -a

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04 LTS
Release:	22.04
Codename:	jammy

uname -a                                                                                       

Linux Ubuntu-Juizmill 5.18.2-051802-generic #202206061451-Ubuntu SMP PREEMPT_DYNAMIC Mon Jun 6 14:57:58 UTC  x86_64 x86_64 x86_64 GNU/Linux

ext/openssl/ -I/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/include -I/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/main -I/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0 -I/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/date/lib -I/usr/include/libxml2 -I/usr/include/x86_64-linux-gnu -I/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/mbstring/libmbfl -I/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/mbstring/libmbfl/mbfl -I/usr/include/postgresql -I/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/TSRM -I/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/Zend    -Wno-clobbered -Wall -Wextra -Wno-strict-aliasing -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-sign-compare -g -O2 -fvisibility=hidden -DZEND_SIGNALS    -c /tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/xp_ssl.c -o ext/openssl/xp_ssl.lo 
In file included from /tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/main/php.h:438,
                 from /tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c:27:
/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c: In function ‘zm_startup_openssl’:
/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c:1219:58: error: ‘RSA_SSLV23_PADDING’ undeclared (first use in this function); did you mean ‘RSA_PKCS1_PADDING’?
 1219 |         REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT);
      |                                                          ^~~~~~~~~~~~~~~~~~
/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/Zend/zend_constants.h:50:105: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
   50 | #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)
      |                                                                                                         ^~~~
/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c:1219:58: note: each undeclared identifier is reported only once for each function it appears in
 1219 |         REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT);
      |                                                          ^~~~~~~~~~~~~~~~~~
/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/Zend/zend_constants.h:50:105: note: in definition of macro ‘REGISTER_LONG_CONSTANT’
   50 | #define REGISTER_LONG_CONSTANT(name, lval, flags)  zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)
      |                                                                                                         ^~~~
/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c: In function ‘php_openssl_generate_private_key’:
/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c:3686:49: warning: ‘RSA_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 3686 |                                                 rsaparam = RSA_new();
      |                                                 ^~~~~~~~
In file included from /tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c:46:
/usr/include/openssl/rsa.h:201:28: note: declared here
  201 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
      |                            ^~~~~~~
/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c:3688:49: warning: ‘RSA_generate_key_ex’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 3688 |                                                 if (rsaparam == NULL || !RSA_generate_key_ex(rsaparam, req->priv_key_bits, bne, NULL)) {
      |                                                 ^~
In file included from /tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c:46:
/usr/include/openssl/rsa.h:260:27: note: declared here
  260 | OSSL_DEPRECATEDIN_3_0 int RSA_generate_key_ex(RSA *rsa, int bits, BIGNUM *e,
      |                           ^~~~~~~~~~~~~~~~~~~
/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c:3694:41: warning: ‘EVP_PKEY_assign’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 3694 |                                         if (rsaparam && EVP_PKEY_assign_RSA(req->priv_key, rsaparam)) {
      |                                         ^~
In file included from /tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c:44:
/usr/include/openssl/evp.h:1328:5: note: declared here
 1328 | int EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key);
      |     ^~~~~~~~~~~~~~~
/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c:3705:41: warning: ‘DSA_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 3705 |                                         DSA *dsaparam = DSA_new();
      |                                         ^~~
In file included from /tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c:47:
/usr/include/openssl/dsa.h:125:28: note: declared here
  125 | OSSL_DEPRECATEDIN_3_0 DSA *DSA_new(void);
      |                            ^~~~~~~
/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c:3706:41: warning: ‘DSA_generate_parameters_ex’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 3706 |                                         if (dsaparam && DSA_generate_parameters_ex(dsaparam, req->priv_key_bits, NULL, 0, NULL, NULL, NULL)) {
      |                                         ^~
In file included from /tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c:47:
/usr/include/openssl/dsa.h:167:27: note: declared here
  167 | OSSL_DEPRECATEDIN_3_0 int DSA_generate_parameters_ex(DSA *dsa, int bits,
      |                           ^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/tmp.44LJrPqYZj/php-src-php-8.0.0/ext/openssl/openssl.c:3707:49: warning: ‘DSA_set_method’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 3707 |                                                 DSA_set_method(dsaparam, DSA_get_default_method());


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions