Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 797676 - <dev-lang/php-8.1.0 fails to build against dev-libs/openssl-3: ext/openssl/openssl.c:1224:51: error: ‘RSA_SSLV23_PADDING’ undeclared (first use in this function)
Summary: <dev-lang/php-8.1.0 fails to build against dev-libs/openssl-3: ext/openssl/op...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords: PATCH
: 805167 (view as bug list)
Depends on:
Blocks: openssl-3.0
  Show dependency tree
 
Reported: 2021-06-23 00:49 UTC by Thomas Deutschmann
Modified: 2022-05-17 20:36 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,157.01 KB, text/plain)
2021-06-23 00:49 UTC, Thomas Deutschmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann gentoo-dev 2021-06-23 00:49:06 UTC
Created attachment 717759 [details]
build.log

> In file included from /var/tmp/portage/dev-lang/php-8.0.7/work/sapis-build/cli/main/php.h:439,
>                  from /var/tmp/portage/dev-lang/php-8.0.7/work/sapis-build/cli/ext/openssl/openssl.c:27:
> /var/tmp/portage/dev-lang/php-8.0.7/work/sapis-build/cli/ext/openssl/openssl.c: In function ‘zm_startup_openssl’:
> /var/tmp/portage/dev-lang/php-8.0.7/work/sapis-build/cli/ext/openssl/openssl.c:1224:51: error: ‘RSA_SSLV23_PADDING’ undeclared (first use in this function); did you mean ‘RSA_NO_PADDING’?
>  1224 |  REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT);
>       |                                                   ^~~~~~~~~~~~~~~~~~
> /var/tmp/portage/dev-lang/php-8.0.7/work/sapis-build/cli/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)
>       |                                                                                                         ^~~~
> /var/tmp/portage/dev-lang/php-8.0.7/work/sapis-build/cli/ext/openssl/openssl.c:1224:51: note: each undeclared identifier is reported only once for each function it appears in
>  1224 |  REGISTER_LONG_CONSTANT("OPENSSL_SSLV23_PADDING", RSA_SSLV23_PADDING, CONST_CS|CONST_PERSISTENT);
>       |                                                   ^~~~~~~~~~~~~~~~~~
> /var/tmp/portage/dev-lang/php-8.0.7/work/sapis-build/cli/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)
>       |                                                                                                         ^~~~
> /var/tmp/portage/dev-lang/php-8.0.7/work/sapis-build/cli/ext/openssl/openssl.c: In function ‘php_openssl_generate_private_key’:
> /var/tmp/portage/dev-lang/php-8.0.7/work/sapis-build/cli/ext/openssl/openssl.c:3687:7: warning: ‘RSA_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
>  3687 |       rsaparam = RSA_new();
>       |       ^~~~~~~~

PHP 7.x has same failure.
Comment 1 Vladimir B. Vinogradov 2021-07-21 17:08:45 UTC
Hi.
See also https://bugs.php.net/bug.php?id=81278
Comment 2 Thomas Deutschmann gentoo-dev 2021-07-30 08:38:34 UTC
*** Bug 805167 has been marked as a duplicate of this bug. ***
Comment 3 Mike Gilbert gentoo-dev 2022-05-17 20:36:02 UTC
A fix landed upstream, and is included in dev-lang/php:8.1.

Older versions are still broken.