php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #76621 phar compilation failed
Submitted: 2018-07-14 05:50 UTC Modified: 2018-07-14 07:58 UTC
From: mail at surjitsidhu dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 5.6.36 OS: Ubuntu 18.04
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mail at surjitsidhu dot com
New email:
PHP Version: OS:

 

 [2018-07-14 05:50 UTC] mail at surjitsidhu dot com
Description:
------------
niguruma -I/home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/ext/mbstring/libmbfl -I/home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/ext/mbstring/libmbfl/mbfl -I/usr/include/postgresql -I/usr/include/pspell -I/usr/include/tidy -I/home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/ext/zip/lib -I/home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/TSRM -I/home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -prefer-pic -c /home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/ext/phar/util.c -o ext/phar/util.lo 
/home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/ext/phar/util.c: In function ‘phar_verify_signature’:
/home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/ext/phar/util.c:1534:15: error: storage size of ‘md_ctx’ isn’t known
    EVP_MD_CTX md_ctx;
               ^~~~~~
/home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/ext/phar/util.c:1633:5: warning: implicit declaration of function ‘EVP_MD_CTX_cleanup’; did you mean ‘EVP_MD_CTX_create’? [-Wimplicit-function-declaration]
     EVP_MD_CTX_cleanup(&md_ctx);
     ^~~~~~~~~~~~~~~~~~
     EVP_MD_CTX_create
root@ubuntu:/home/scripts# Makefile:1684: recipe for target 'ext/phar/util.lo' failed
make: *** [ext/phar/util.lo] Error 1



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-07-14 06:05 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2018-07-14 06:05 UTC] requinix@php.net
PHP 5.6 is no longer supported.

Are you compiling against OpenSSL >= 0.9.8 as mentioned in the documentation?
http://php.net/manual/en/openssl.requirements.php
 [2018-07-14 06:22 UTC] mail at surjitsidhu dot com
OpenSSL 1.1.0g  2 Nov 2017
is installed
 [2018-07-14 06:34 UTC] requinix@php.net
It seems OpenSSL 1.1.0 has source changes making it incompatible. Try 1.0.2 or 0.9.8.
https://www.openssl.org/source/
 [2018-07-14 06:39 UTC] mail at surjitsidhu dot com
what are the standard include and lib for openssl should i set

e.g did for BerkeleyDB.5.3 as below
export BDB_INCLUDE_PATH="/usr/local/BerkeleyDB.5.3/include"
export BDB_LIB_PATH="/usr/local/BerkeleyDB.5.3/lib"
 [2018-07-14 06:47 UTC] requinix@php.net
You cannot use Ubuntu 18.04's OpenSSL, so you will need to download an older compatible version and set paths accordingly.
 [2018-07-14 06:51 UTC] mail at surjitsidhu dot com
Yes, I will do older version, but How to set path so php can find newly complied openssl
 [2018-07-14 07:03 UTC] requinix@php.net
If you're running PHP's ./configure then use the --with-openssl option.
 [2018-07-14 07:52 UTC] mail at surjitsidhu dot com
OpenSSL 1.0.2o  27 Mar 2018

2-sources/scl-php56/SOURCES/php-5.6.36/ext/mbstring/oniguruma -I/home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/ext/mbstring/libmbfl -I/home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/ext/mbstring/libmbfl/mbfl -I/usr/include/postgresql -I/usr/include/pspell -I/usr/include/tidy -I/home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/ext/zip/lib -I/home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/TSRM -I/home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/Zend    -I/usr/include -g -O2 -fvisibility=hidden  -prefer-pic -c /home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/ext/ftp/php_ftp.c -o ext/ftp/php_ftp.lo 
In file included from /usr/include/openssl/evp.h:66:0,
                 from /usr/include/openssl/x509.h:73,
                 from /usr/include/openssl/ssl.h:156,
                 from /home/zeslev2-sources/scl-php56/SOURCES/php-5.6.36/ext/ftp/php_ftp.c:33:
/usr/include/x86_64-linux-gnu/openssl/opensslconf.h:18:3: error: #error OPENSSL_ALGORITHM_DEFINES no longer supported
 # error OPENSSL_ALGORITHM_DEFINES no longer supported
   ^~~~~
root@ubuntu:/home/scripts# Makefile:934: recipe for target 'ext/ftp/php_ftp.lo' failed
make: *** [ext/ftp/php_ftp.lo] Error 1
 [2018-07-14 07:58 UTC] requinix@php.net
Then 1.0.2 is not compatible either. Use 0.9.8.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 10:01:33 2025 UTC