php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81327 Error build openssl extension on php 7.4.22
Submitted: 2021-08-03 16:12 UTC Modified: 2021-08-03 20:10 UTC
From: izorkin at elven dot pw Assigned: cmb (profile)
Status: Closed Package: Compile Failure
PHP Version: 7.4.22 OS: NixOS
Private report: No CVE-ID: None
 [2021-08-03 16:12 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-08-03 17:09 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-08-03 17:09 UTC] 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 18:18 UTC] 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 20:10 UTC] cmb@php.net
-Status: Feedback +Status: Open
 [2021-08-03 20:10 UTC] cmb@php.net
> But with libressl 3.2.5 it is not possible to build.

Ah, yes, of course.
 [2021-08-04 16:48 UTC] git@php.net
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
 [2021-08-04 16:48 UTC] git@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 15:01:29 2024 UTC