From: Jaguar at digitalmarble dot com
Operating system: Debian Linux 3.1 Sarge r0a i386
PHP version: 4.4.0
PHP Bug Type: *Configuration Issues
Bug description: Undefined reference; Cannot find libssl.
Description:
------------
libssl not found! Or so it says.
Upon configuring extensions configure dies "checking for
SSL_CTX_set_ssl_version in -lss...". I know it has something to do with
zlib 1.2.3 as I had the same problem when I configured apache 2.0.54. I
resolved it with the configure flag --enable-deflate in apache but php
(unless I missed it) doesn't seem to have such an option. I configured
zlib in with openssl 0.9.8 and the configured openssl into apache (which
required a patch due to some problems between apache 2.0.54, openssl 0.9.8
and zlib 1.2.2+). I suspect the problem is with zlib but that's all I can
decipher. I have libssl.so.0.9.7 every possible place I could think
configure would look. I scoured google and tried countless forum
suggestions. I'm working off php 4.4.0 cvs snapshot august 1st 2005.
Perhaps someone can help?
Reproduce code:
---------------
./configure --with-openssl=/usr/local/ssl
--with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql
--with-bz2 --with-zlib=/usr/local --with-mcrypt=/usr --enable-ftp
--with-regex=apache --with-swf
Actual result:
--------------
./configure output
-- SNIPPET --
checking for SSL_CTX_set_ssl_version in -lssl... no
configure: error: libssl not found!
-- END SNIPPET --
config.log
-- SNIPPET --
configure:18083: checking for SSL_CTX_set_ssl_version in -lssl
configure:18102: gcc -o conftest -g -O2 -Wl,-rpath,/usr/local/ssl/lib
-L/usr/local/ssl/lib conftest.c -lssl -lcrypto -lresolv -lm -ldl -lnsl
-lcrypto 1>&5
/usr/local/ssl/lib/libcrypto.a(c_zlib.o)(.text+0x78): In function
`zlib_stateful_init':
: undefined reference to `inflateInit_'
/usr/local/ssl/lib/libcrypto.a(c_zlib.o)(.text+0xd7): In function
`zlib_stateful_init':
: undefined reference to `deflateInit_'
/usr/local/ssl/lib/libcrypto.a(c_zlib.o)(.text+0x290): In function
`zlib_stateful_compress_block':
: undefined reference to `deflate'
/usr/local/ssl/lib/libcrypto.a(c_zlib.o)(.text+0x315): In function
`zlib_stateful_expand_block':
: undefined reference to `inflate'
/usr/local/ssl/lib/libcrypto.a(c_zlib.o)(.text+0x33f): In function
`zlib_stateful_free_ex_data':
: undefined reference to `inflateEnd'
/usr/local/ssl/lib/libcrypto.a(c_zlib.o)(.text+0x34a): In function
`zlib_stateful_free_ex_data':
: undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
configure: failed program was:
#line 18091 "configure"
#include "confdefs.h"
-- END SNIPPET --
--
Edit bug report at http://bugs.php.net/?id=33956&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33956&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33956&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33956&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=33956&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=33956&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=33956&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=33956&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=33956&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=33956&r=support
Expected behavior: http://bugs.php.net/fix.php?id=33956&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=33956&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=33956&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=33956&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33956&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=33956&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=33956&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=33956&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=33956&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=33956&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=33956&r=mysqlcfg