"Helmut K. C. Tessarek" in php.internals (Mon, 21 Oct 2019 23:34:58 -0400):
>On 2019-10-14 05:46, Nikita Popov wrote:
>> This should be fixed with
>> https://github.com/php/php-src/commit/c518932c0326a938f0fd0254f2adb03b1cddfbca.
>> Now using just
>>
>> ./configure --disable-all --with-openssl OPENSSL_LIBS="-l:libssl.a
>> -l:libcrypto.a -ldl -pthread"
>>
>> works for me.
>
>Hmm, I can't get it to work. My ssl is in: /usr/local/ssl-1.1.1
With at least bison 3.0 and re2c 3.14.1 installed this seens to
work with PHP 7.4.0RC4:
#!/bin/sh
./configure \
--with-config-file-scan-dir=/usr/local/lib/php.conf.d \
--disable-all \
--with-openssl-dir=/usr/local/ssl-1.1.1 \
--with-openssl=/usr/local/ssl-1.1.1 \
CFLAGS=" -I/usr/local/ssl-1.1.1/include " \
OPENSSL_LIBS="-ldl -pthread -L/usr/local/ssl-1.1.1/lib -l:libssl.a
-l:libcrypto.a"
Tested on Centos 6:
# sapi/cli/php -i | grep OpenSSL
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.1.1d 10 Sep 2019
OpenSSL Header Version => OpenSSL 1.1.1d 10 Sep 2019
# ldd sapi/cli/php
linux-vdso.so.1 => (0x00007ffee71a5000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f1341764000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f134154a000)
librt.so.1 => /lib64/librt.so.1 (0x00007f1341342000)
libm.so.6 => /lib64/libm.so.6 (0x00007f13410be000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f1340eba000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f1340c9d000)
libz.so.1 => /usr/local/lib/libz.so.1 (0x00007f1340a81000)
libc.so.6 => /lib64/libc.so.6 (0x00007f13406ed000)
/lib64/ld-linux-x86-64.so.2 (0x00007f134199b000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007f13404ea000)
--
Jan
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php