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: -
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:
Status: Open Package: stomp (PECL)
PHP Version: 5.4.10 OS: CentOS 6.3
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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

Add a Patch

Pull Requests

Add a Pull Request

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.
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Mar 26 17:01:26 2019 UTC