php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25703 openssl Library not found
Submitted: 2003-09-30 10:57 UTC Modified: 2003-09-30 14:06 UTC
From: phpnet at wspse dot de Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 4.3.4RC1 OS: Redhat Linux 7.3
Private report: No CVE-ID: None
 [2003-09-30 10:57 UTC] phpnet at wspse dot de
Description:
------------
./configure will not succeed on Redhat 7.3 if openssl is enabled (the shipped openssl-rpm [0.9.6b] does not include a pkgconfig-file).

This became broken in 4.3.4RC1 (4.3.3 worked fine). I quick checked that the config-script was changed to use pkg-config for detecting the library. I could fix it by copying the openssl.pc-file from redhat 9.0 and editing the version information in it.

However, since that file is not there in RH7.3 you should either use the old behavior or document it and saying how to fix it.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-30 14:06 UTC] sniper@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


 [2003-11-20 16:39 UTC] Greg dot Kresko at nrc-cnrc dot gc dot ca
(My apologies if this should be posted to a discussion list.)

This is still broken in the source code (4.3.4 downloaded
on 07 Nov 2003).
On IRIX 6.5.21f, using gcc 3.3.2, using openssl-0.9.7c:
-----
./configure --prefix=/usr/local/apache --with-mysql --with-apxs=/usr/local/apache/bin/apxs --with-openssl=../openssl-0.9.7c --with-mm=../mm-1.3.0
-----
ends with
-----
Configuring extensions
checking for OpenSSL support... yes
checking for pkg-config... no
configure: error: Cannot find OpenSSL's libraries
-----
I have "setenv LDFLAGS -L/usr/local/ssl/lib".

(The openssl installation completes with
-----
cp openssl.pc /usr/local/ssl/lib/pkgconfig
chmod 644 /usr/local/ssl/lib/pkgconfig
-----
Why "644"?  This makes it hard for non-roots to access.
Configuring as root or changing to "755" doesn't help.)
 [2003-12-10 08:58 UTC] x-itec at freenet dot de
./configure will not succeed on SuSe 8.1 ifopenssl is enabled (I have installed the latest available version)


Configuring extensions
checking for OpenSSL support... yes
checking for pkg-config... no
configure: error: Cannot find OpenSSL's libraries
make: *** No targets specified and no makefile found.  Stop.
 [2003-12-10 09:09 UTC] x-itec at freenet dot de
I copied /usr/lib/libopenssl* /usr/local/lib/

that works for me. Maybe u should add /usr/lib for search-path in configure script?
 [2003-12-16 10:07 UTC] spam at doofer dot org
For anyone else arriving at this page in the hope of information, simply leaving the config directive at '--with-openssl' instead of '--with-openssl=<path to my dir>' works great on the same system that I was experiencing this problem on. So, just one other thing to try in case you have this error.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 17:01:29 2024 UTC