Edit report at https://bugs.php.net/bug.php?id=81540&edit=1
ID: 81540
Updated by: [email protected]
Reported by: fred5 at originsystems dot co dot za
Summary: PHP build fails with openssl 3.0.0
Status: Open
-Type: Bug
+Type: Documentation Problem
Package: Compile Failure
Operating System: CentOS 7.9
PHP Version: 8.0.11
Block user comment: N
Private report: N
New Comment:
To my knowlege, OpenSSL 3 is only supported as of PHP 8.1.0;
sticking with OpenSSL 1.1.1 for older PHP branches should be fine.
Previous Comments:
------------------------------------------------------------------------
[2021-10-19 05:19:34] fred5 at originsystems dot co dot za
Description:
------------
Many errors related to openssl 3.0.0 begin appearing midway through the PHP build. The build failed.
A build with openssl 1.1.1l completes successfully.
Below, I have listed the first errors / warnings that appeared below.
Generally, php.net recommends we upgrade to the latest openssl and I would thus like to know whether openssl 3.0.0 (the latest version) is currently supported by PHP or whether we should stick with 1.1.1l
thanks
----------------------------------------------------------------------------
In file included from /SystemsDevelopment/temp/osWEB/source/php-8.0.11/main/php.h:439:0,
from /SystemsDevelopment/temp/osWEB/source/php-8.0.11/ext/openssl/openssl.c:27:
/SystemsDevelopment/temp/osWEB/source/php-8.0.11/ext/openssl/openssl.c: In function \u2018zm_startup_openssl\u2019:
/SystemsDevelopment/temp/osWEB/source/php-8.0.11/ext/openssl/openssl.c:1224:51: error: \u2018RSA_SSLV23_PADDING\u2019 undeclared (first use in this function)
REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT);
^
/SystemsDevelopment/temp/osWEB/source/php-8.0.11/Zend/zend_constants.h:50:105: note: in definition of macro \u2018REGISTER_LONG_CONSTANT\u2019
#define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)
^
/SystemsDevelopment/temp/osWEB/source/php-8.0.11/ext/openssl/openssl.c:1224:51: note: each undeclared identifier is reported only once for each function it appears in
REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT);
^
/SystemsDevelopment/temp/osWEB/source/php-8.0.11/Zend/zend_constants.h:50:105: note: in definition of macro \u2018REGISTER_LONG_CONSTANT\u2019
#define REGISTER_LONG_CONSTANT(name, lval, flags) zend_register_long_constant((name), sizeof(name)-1, (lval), (flags), module_number)
^
/SystemsDevelopment/temp/osWEB/source/php-8.0.11/ext/openssl/openssl.c: In function \u2018php_openssl_generate_private_key\u2019:
/SystemsDevelopment/temp/osWEB/source/php-8.0.11/ext/openssl/openssl.c:3690:7: warning: \u2018RSA_new\u2019 is deprecated (declared at /SystemsDevelopment/temp/osWEB/build/openssl-3.0.0/include/openssl/rsa.h:201): Since OpenSSL 3.0 [-Wdeprecated-declarations]
rsaparam = RSA_new();
^
/SystemsDevelopment/temp/osWEB/source/php-8.0.11/ext/openssl/openssl.c:3692:7: warning: \u2018RSA_generate_key_ex\u2019 is deprecated (declared at /SystemsDevelopment/temp/osWEB/build/openssl-3.0.0/include/openssl/rsa.h:260): Since OpenSSL 3.0 [-Wdeprecated-declarations]
if (rsaparam == NULL || !RSA_generate_key_ex(rsaparam, req->priv_key_bits, bne, NULL)) {
^
/SystemsDevelopment/temp/osWEB/source/php-8.0.11/ext/openssl/openssl.c:3694:8: warning: \u2018RSA_free\u2019 is deprecated (declared at /SystemsDevelopment/temp/osWEB/build/openssl-3.0.0/include/openssl/rsa.h:293): Since OpenSSL 3.0 [-Wdeprecated-declarations]
----------------------------------------------------------------------------
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81540&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.