Re: How to resolve inconsistent linking of path-specified openssl libs into php bin and extenstions ?

From: Date: Mon, 06 Mar 2017 21:47:24 +0000
Subject: Re: How to resolve inconsistent linking of path-specified openssl libs into php bin and extenstions ?
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-20495@lists.php.net to get a copy of this message
> 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

« previous php.install (#20495) next »