[PHP-INSTALL] Re: How to resolve inconsistent linking of path-specified openssl libs into php bin and extenstions ?
PGNet Dev <[email protected]> Mon, 6 Mar 2017 13:47:24 -0800
| Newsgroups | gmane.comp.php.install |
|---|---|
| Message-ID | <[email protected]> |
> What combination of setting/flags are required to
>
> (1) correctly link/rpath SPECIFIED openssl libs
> (2) ensure matched headers & libs are detected & reported
> (3) link ssl/crypto libs ONLY to bins/libs that *require* them
>
for anyone interested, although there's no documented mention of it in
INSTALL
README*
or
./configure --help
, after digging around in ./configure & Makefile*, setting
export PHP_RPATHS="/usr/local/openssl10/lib64"
appears to do the trick,
ldd `which php` | egrep "ssl|crypto"
libssl.so.1.0.0 => /usr/local/openssl10/lib64/libssl.so.1.0.0 (0x00007f0692862000)
libcrypto.so.1.0.0 => /usr/local/openssl10/lib64/libcrypto.so.1.0.0 (0x00007f06923d3000)
php -i
...
openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.2k 26 Jan 2017
OpenSSL Header Version => OpenSSL 1.0.2k 26 Jan 2017
Openssl default config => /usr/local/openssl10/openssl.cnf
Directive => Local Value => Master Value
openssl.cafile => no value => no value
openssl.capath => /etc/ssl/certs => /etc/ssl/certs
...
and only relevant ext.so have lssl/lcrypto libs linked