Bug #80368 [Csd]: OpenSSL extension fails to build against LibreSSL due to lack of OCB support

From: Date: Mon, 30 Nov 2020 14:18:26 +0000
Subject: Bug #80368 [Csd]: OpenSSL extension fails to build against LibreSSL due to lack of OCB support
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-230734@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80368&edit=1 ID: 80368 Updated by: nikic@php.net Reported by: izorkin at elven dot pw Summary: OpenSSL extension fails to build against LibreSSL due to lack of OCB support Status: Closed Type: Bug Package: OpenSSL related Operating System: NixOS 20.09 PHP Version: 8.0.0RC4 -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: New fix applied in https://github.com/php/php-src/commit/ecee3f1209a7c0ac9f99c7f640b2f5df56656e58, hopefully this one works. Previous Comments: ------------------------------------------------------------------------ [2020-11-30 14:17:46] nikic@php.net Automatic comment on behalf of nikita.ppv@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=ecee3f1209a7c0ac9f99c7f640b2f5df56656e58 Log: Next attempt to fix bug #80368 ------------------------------------------------------------------------ [2020-11-28 13:51:55] izorkin at elven dot pw Patch not working: /build/php-src-8.0.0/ext/openssl/openssl.c: In function 'php_openssl_load_cipher_mode': /build/php-src-8.0.0/ext/openssl/openssl.c:6892:8: error: 'EVP_CIPH_OCB_MODE' undeclared (first use in this function); did you mean 'EVP_CIPH_OFB_MODE'? 6892 | case EVP_CIPH_OCB_MODE: | ^~~~~~~~~~~~~~~~~ | EVP_CIPH_OFB_MODE /build/php-src-8.0.0/ext/openssl/openssl.c:6892:8: note: each undeclared identifier is reported only once for each function it appears in /build/php-src-8.0.0/ext/openssl/openssl.c:6900:30: error: 'EVP_CTRL_AEAD_GET_TAG' undeclared (first use in this function); did you mean 'EVP_CTRL_CCM_GET_TAG'? 6900 | mode->aead_get_tag_flag = EVP_CTRL_AEAD_GET_TAG; | ^~~~~~~~~~~~~~~~~~~~~ | EVP_CTRL_CCM_GET_TAG /build/php-src-8.0.0/ext/openssl/openssl.c:6901:30: error: 'EVP_CTRL_AEAD_SET_TAG' undeclared (first use in this function); did you mean 'EVP_CTRL_GCM_SET_TAG'? 6901 | mode->aead_set_tag_flag = EVP_CTRL_AEAD_SET_TAG; | ^~~~~~~~~~~~~~~~~~~~~ | EVP_CTRL_GCM_SET_TAG /build/php-src-8.0.0/ext/openssl/openssl.c:6902:28: error: 'EVP_CTRL_AEAD_SET_IVLEN' undeclared (first use in this function); did you mean 'EVP_CTRL_GCM_SET_IVLEN'? 6902 | mode->aead_ivlen_flag = EVP_CTRL_AEAD_SET_IVLEN; | ^~~~~~~~~~~~~~~~~~~~~~~ | EVP_CTRL_GCM_SET_IVLEN make: *** [Makefile:799: ext/openssl/openssl.lo] Error 1 make: *** Waiting for unfinished jobs.... ------------------------------------------------------------------------ [2020-11-27 09:58:57] nikic@php.net Automatic comment on behalf of nikita.ppv@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=0f579fd7c8171cb0f7ecc8db912933df450f3861 Log: Fixed bug #80368 ------------------------------------------------------------------------ [2020-11-27 09:45:50] alex at ozo dot com I filed an libressl-portable upstream bug report about this issue here: https://github.com/libressl-portable/portable/issues/642 ------------------------------------------------------------------------ [2020-11-27 09:19:11] alex at ozo dot com Greetings, I am on a 32bit gentoo rolling release system with libressl-3.3.0 & gnutls-3.6.15 I got this exact error when emerging/compiling php-7.4.13 it would be cool to have a workaround solution until libressl addresses this issue ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=80368 -- Edit this bug report at https://bugs.php.net/bug.php?id=80368&edit=1

« previous php.bugs (#230734) next »