Building PHP 7.4 with OpenSSL

Hi,

I'm looking to build PHP 7.4 including the OpenSSL module. (on FreeBSD 14.1) I downloaded a ports tree from 12.4 and was able to build PHP as well as most extensions, according to this post. When including the OpenSSL module however, the build fails.

Code:
/usr/ports/security/php74-openssl/work/php-7.4.32/ext/openssl/openssl.c:1520:51: error: use of undeclared identifier 'RSA_SSLV23_PADDING'

I tried installing openssl111, and adding it to /etc/make.conf, but that gives me the following and the previous error, respectively.

Code:
make[1]: "/usr/ports/Mk/Uses/ssl.mk" line 95: You are using an unsupported SSL provider openssl111 (/usr/ports/security/openssl111/version.mk) ()

I've found different instructions (such as this) on how to do this in general, though I am unsure whether they apply to the ports tree. Is there a correct or simple way to do this using the ports tree?
 
PHP 7.4 is end-of-life, stop using it.

 
Hi,

I'm looking to build PHP 7.4 including the OpenSSL module. (on FreeBSD 14.1) I downloaded a ports tree from 12.4 and was able to build PHP as well as most extensions, according to this post. When including the OpenSSL module however, the build fails.

Code:
/usr/ports/security/php74-openssl/work/php-7.4.32/ext/openssl/openssl.c:1520:51: error: use of undeclared identifier 'RSA_SSLV23_PADDING'

I tried installing openssl111, and adding it to /etc/make.conf, but that gives me the following and the previous error, respectively.

Code:
make[1]: "/usr/ports/Mk/Uses/ssl.mk" line 95: You are using an unsupported SSL provider openssl111 (/usr/ports/security/openssl111/version.mk) ()

I've found different instructions (such as this) on how to do this in general, though I am unsure whether they apply to the ports tree. Is there a correct or simple way to do this using the ports tree?
Just disable the obsolete padding registration on the line 1520 in the mentioned /usr/ports/security/php74-openssl/work/php-7.4.32/ext/openssl/openssl.c, by diirect editing it and commenting it out, and it will be buyilt just fine, and work as well. SSLv23 is removed from code in Openssl 3.x, thus producing the error.
 
Back
Top