php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63935 Build fails when enabling openssl
Submitted: 2013-01-07 23:32 UTC Modified: 2021-03-07 04:22 UTC
Votes:10
Avg. Score:4.2 ± 1.0
Reproduced:8 of 8 (100.0%)
Same Version:3 (37.5%)
Same OS:4 (50.0%)
From: brandono at gmail dot com Assigned: cmb (profile)
Status: No Feedback Package: stomp (PECL)
PHP Version: 5.4.10 OS: CentOS 6.3
Private report: No CVE-ID: None
 [2013-01-07 23:32 UTC] brandono at gmail dot com
Description:
------------
When building the Stomp extension, I get the error 

pecl install stomp
OpenSSL install prefix (no to disable SSL support) [/usr] : /usr

configure: error: Cannot find OpenSSL's libraries
ERROR: `/var/tmp/stomp/configure --with-openssl-dir=/usr' failed


Even when openssl-devel is installed on the machine. This is because it is looking 
for library files in /usr/lib instead of /usr/lib64. The following command works. 


pecl install stomp
OpenSSL install prefix (no to disable SSL support) [/usr] : yes

This forces the system to search for libssl which it successfully and rightfully 
finds in /usr/lib64.


Test script:
---------------
pecl install stomp



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-05 13:09 UTC] vytautas at gimbutas dot net
Same issue happened to me.
CentOS 6.3 with openssl-devel installed.
 [2014-07-23 17:12 UTC] d dot reade at reades dot co dot uk
I have used a workaround for this issue which has been tested on CentOS 6.5 x64:

ln -s /usr/lib64/libssl.so /usr/lib/libssl.so
ln -s /usr/lib64/libcrypto.so /usr/lib/libcrypto.so

When you run "pecl install stomp" and press enter when prompted for the OpenSSL path, the build completes.
 [2015-04-23 09:23 UTC] mail at cebe dot cc
As far as I see, you should be able to compile it by adding  --with-libdir=lib64
 [2015-09-04 11:11 UTC] carlos dot nieto at seap dot minhap dot es
I have a similar problem compiling wiht phpize in a Red Hat distro and php version 5.6.8. Packages openssl and openssl-devel are installed, but the compilation of Stomp extension does not found openssl as installed and compiles it without ssl support, reporting the error.

Connection failed: SSL DISABLED

The following work-around can make the compilation activating ssl support

CFLAGS="-DHAVE_STOMP_SSL" ./configure
 [2015-09-29 16:45 UTC] markus at freistil dot it
Can reproduce the same behaviour on Ubuntu 12.04 with PHP 5.5.29.

Package libssl-dev is installed and in /usr/include/openssl
I'm doing the installation using `pecl install stomp`

When using --with-openssl-dir=/usr it fails with 

configure: error: Cannot find OpenSSL's libraries

When using --with-openssl-dir=/usr/include/openssl it fails with

configure: error: Cannot find OpenSSL's <evp.h>

evp.h exists at /usr/include/openssl/evp.h

Using --with-openssl-dir=yes works.
 [2021-02-26 18:11 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 [2021-02-26 18:11 UTC] cmb@php.net
Is this still an issue with latest stomp 2.0.2 and any of the
actively supported PHP versions[1]?

[1] <https://www.php.net/supported-versions.php>
 [2021-03-07 04:22 UTC] pecl-dev at lists dot php dot 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: Fri Dec 13 04:01:27 2024 UTC