php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65086 libssl not found while configuring php-5.5.0
Submitted: 2013-06-21 13:15 UTC Modified: 2013-07-09 09:43 UTC
From: mark at kreine dot ru Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.5.0 OS: Ubuntu 12.04
Private report: No CVE-ID: None
 [2013-06-21 13:15 UTC] mark at kreine dot ru
Description:
------------
I'm trying to compile php-5.5.0 on my server using the following configure script: 

./configure --prefix=/soft/php --with-apxs2=/soft/httpd/bin/apxs --with-mysql=shared,/soft/mysql --with-mysqli=shared,/soft/mysql/bin/mysql_config --with-pdo-mysql=shared,/soft/mysql/bin/mysql --with-zlib-dir=/soft/zlib --with-zlib=shared,/soft/zlib --with-libxml-dir=/soft/libxml --with-jpeg-dir=/soft/libjpeg --with-png-dir=/soft/libpng --with-pcre-dir=/soft/pcre --enable-exif --enable-bcmath --enable-ftp --enable-calendar --enable-mbstring --with-bz2=shared,/soft/bzip --with-openssl-dir=/soft/openssl --with-openssl=shared,/soft/openssl LDFLAGS="-L/soft/openssl/lib" CPPFLAGS="-I/soft/openssl/include/openssl"

The configure script complains me on lack of the libssl library.

Test script:
---------------
./configure --prefix=/soft/php --with-apxs2=/soft/httpd/bin/apxs --with-mysql=shared,/soft/mysql --with-mysqli=shared,/soft/mysql/bin/mysql_config --with-pdo-mysql=shared,/soft/mysql/bin/mysql --with-zlib-dir=/soft/zlib --with-zlib=shared,/soft/zlib --with-libxml-dir=/soft/libxml --with-jpeg-dir=/soft/libjpeg --with-png-dir=/soft/libpng --with-pcre-dir=/soft/pcre --enable-exif --enable-bcmath --enable-ftp --enable-calendar --enable-mbstring --with-bz2=shared,/soft/bzip --with-openssl-dir=/soft/openssl --with-openssl=shared,/soft/openssl LDFLAGS="-L/soft/openssl/lib" CPPFLAGS="-I/soft/openssl/include/openssl"

Expected result:
----------------
Successful configuration

Actual result:
--------------
checking for OpenSSL support... yes, shared
checking for Kerberos support... no
checking for DSA_get_default_method in -lssl... no
checking for X509_free in -lcrypto... yes
checking for pkg-config... no
checking for OpenSSL version... >= 0.9.6
checking for CRYPTO_free in -lcrypto... yes
checking for SSL_CTX_set_ssl_version in -lssl... no
configure: error: libssl not found!


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-24 00:30 UTC] felipe@php.net
-Status: Open +Status: Feedback -Package: Safe Mode/open_basedir +Package: Compile Failure
 [2013-06-24 00:30 UTC] felipe@php.net
Have you found any libssl*.so on your system?
 [2013-07-04 16:00 UTC] ashleigh dot vincent at gmail dot com
I had an identical error compiling php 5.3.26 on RHEL3. I managed to fix it by 
running the configure script as root.
 [2013-07-04 16:06 UTC] mark at kreine dot ru
-Status: Feedback +Status: Open
 [2013-07-04 16:06 UTC] mark at kreine dot ru
Well, I've already run this script as root, I have root access to the system.
 [2013-07-05 09:57 UTC] ab@php.net
-Status: Open +Status: Feedback
 [2013-07-05 09:57 UTC] ab@php.net
That usually has nothing to do with root. Please check openssl is built with 
shared enabled. The configure line looks fine even without LDFLAGS.
 [2013-07-09 09:43 UTC] ab@php.net
-Status: Feedback +Status: No Feedback
 [2013-07-09 09:43 UTC] ab@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC