Bug #81327 [Asn->Csd]: Error build openssl extension on php 7.4.22

From: Date: Wed, 04 Aug 2021 16:48:23 +0000
Subject: Bug #81327 [Asn->Csd]: Error build openssl extension on php 7.4.22
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235601@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81327&edit=1 ID: 81327 Updated by: git@php.net Reported by: izorkin at elven dot pw Summary: Error build openssl extension on php 7.4.22 -Status: Assigned +Status: Closed Type: Bug Package: Compile Failure Operating System: NixOS PHP Version: 7.4.22 Assigned To: cmb Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmb69 Revision: https://github.com/php/php-src/commit/6724d5d4c2c502b098e708bd85b43f2a52848093 Log: Fix #81327: Error build openssl extension on php 7.4.22 Previous Comments: ------------------------------------------------------------------------ [2021-08-03 20:10:56] cmb@php.net > But with libressl 3.2.5 it is not possible to build. Ah, yes, of course. ------------------------------------------------------------------------ [2021-08-03 18:18:14] izorkin at elven dot pw Sorry. I wrong checking. At first I tried to build with libressl 3.2.5. Replaced libressl with openssl in the build configuration - error build. I had to replace libressl with openssl in dependent packages. After that, it got building normally. But with libressl 3.2.5 it is not possible to build. ------------------------------------------------------------------------ [2021-08-03 17:09:08] cmb@php.net From what I can tell, ASN1_INTEGER_set_int64() should be available unconditionally as of OpenSSL 1.1.0. > Use Openssl version 1.1.1k. Are you sure? Does config.log provide further info? ------------------------------------------------------------------------ [2021-08-03 16:12:07] izorkin at elven dot pw Description: ------------ After this fix https://bugs.php.net/bug.php?id=52093 occurs error build php 7.4 and php 8.0: ``` /build/php-src-7.4.22/ext/openssl/openssl.c: In function 'zif_openssl_csr_sign': /build/php-src-7.4.22/ext/openssl/openssl.c:3528:2: warning: implicit declaration of function 'ASN1_INTEGER_set_int64'; did you mean 'ASN1_INTEGER_set'? [^[]8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-function-declaration^G-Wimplicit-function-declaration^[]8;;^G] 3528 | ASN1_INTEGER_set_int64(X509_get_serialNumber(new_cert), serial); | ^~~~~~~~~~~~~~~~~~~~~~ | ASN1_INTEGER_set ``` Use Openssl version 1.1.1k. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81327&edit=1

« previous php.bugs (#235601) next »