Opened 6 years ago

Closed 5 years ago

#58464 closed defect (fixed)

php5{2,3,4,5,6}-openssl: use openssl10 or make them compatible with openssl11

Reported by: yan12125 (Chih-Hsuan Yen) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: php52-openssl, php53-openssl, php54-openssl, php55-openssl, php56-openssl

Description

Currently php56-openssl does not build with port:openssl11

/opt/local/var/macports/build/_Users_yen_var_syncthing_Projects_macports-ports_lang_php/php56-openssl/work/php-5.6.40/ext/openssl/openssl.c:1904:15: error: incomplete definition of type 'struct X509_extension_st'
            p = extension->value->data;
                ~~~~~~~~~^

I believe older php*-openssl ports are also incompatible with openssl11. Please make them use openssl10 or patch them to be compatible with openssl11.

This issue blocks migration to OpenSSL 1.1 (1)(2)

(1) https://github.com/macports/macports-ports/pull/3822

(2) ticket:52101

Change History (1)

comment:1 Changed 5 years ago by yan12125 (Chih-Hsuan Yen)

Resolution: fixed
Status: assignedclosed

In a240ef818d25a4ecb22f689a2e5a3f1e338bfaa6/macports-ports (master):

php5{2,3,4,5,6}-openssl: use openssl 1.0 via the old_openssl port group

They are not compatible with OpenSSL 1.1. For example, php56-openssl
fails with:

/opt/local/var/macports/build/_Users_yen_var_syncthing_Projects_macports-ports_lang_php/php56-openssl/work/php-5.6.40/ext/openssl.c:1904:15: error: incomplete definition of type 'struct X509_extension_st'

p = extension->value->data;

~

All ports tested with the following PHP script:

<?php
echo file_get_contents('https://httpbin.org/ip');
?>

Closes: #58464

Note: See TracTickets for help on using tickets.