openssl library location problem
| From: | Robert Trebula | Date: | Mon, 11 Nov 2002 15:03:43 +0000 |
| Subject: | openssl library location problem | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-9101@lists.php.net to get a copy of this message | ||
Hi,
I'm trying to compile php as an apache 1.3 module and I need that libphp4.so
does *not* link against /usr/lib/libssl.so and /usr/lib/libcrypto.so.
First I tried to compile without mentioning openssl in configure parameters:
/configure --with-apxs=/usr/local/apache27/bin/apxs --enable-versioning \
--with-mysql=/usr/ --enable-track-vars --with-gd=/usr/local/ --enable-ftp \
--with-interbase --with-ldap --with-mcrypt --with-mhash --with-zlib \
--with-png-dir=/usr/lib --with-pgsql --with-ttf --with-t1lib=/usr \
--with-freetype-dir=/usr/local --with-mm
and
ldd libphp4.so showed that it links against libssl.so and libcrypto.so
from /usr/lib.
Then I tried to persuade it to link against libssl.a and libcrypto.a from
/usr/local/lib (I don't really need any ssl support in php, just want to avoid
linking it against /usr/lib versions of openssl libraries. The /usr/local/lib
static ones are OK):
./configure --blah-blah-as-above --with-openssl=/usr/local
and, what-a-surprise, ldd libphp4.so = /usr/lib/lib(ssl|crypto).so again!
The apache is 1.3.27 with mod_ssl statically linked against
/usr/local/lib/lib(ssl|crypto).a
Is it a bug in PHP that it uses libs from /usr/lib even if told to use ones
from /usr/local/lib ? Or am I just doing something wrong? Why does php link to
openssl libs anyway? Is it somehow related to the fact that I'm using mod_ssl?
Thanks for any hints,
Robert
PS: please Cc: my address when replying. Thanks.
--
Robo Trebula
robo@ynet.sk