From: fred5 at originsystems dot co dot za
Operating system: CentOS 7.9
PHP version: 8.0.11
Package: Compile Failure
Bug Type: Bug
Bug description:PHP build fails with openssl 3.0.0
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 bug report at https://bugs.php.net/bug.php?id=81540&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81540&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81540&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81540&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81540&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81540&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81540&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81540&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81540&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81540&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81540&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81540&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81540&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81540&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81540&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81540&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81540&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81540&r=mysqlcfg