#25719 [Csd->Opn]: openssl library not found

From: Date: Thu, 02 Oct 2003 20:30:26 +0000
Subject: #25719 [Csd->Opn]: openssl library not found
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-48456@lists.php.net to get a copy of this message
 ID:               25719
 Updated by:       elmicha@php.net
 Reported By:      elmicha@php.net
-Status:           Closed
+Status:           Open
 Bug Type:         Compile Failure
 Operating System: Linux
-PHP Version:      4CVS-2003-10-01 (stable)
+PHP Version:      4CVS-2003-10-02 (stable)
 New Comment:

I still get the same error with php4-STABLE-200310021930 and with a
fresh CVS checkout (cvs -d :pserver:cvsread@cvs.php.net:/repository co
-r PHP_4_3 php-src).

config.log changed a bit:

configure:16236: gcc -o conftest -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE 
-Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -lintl -lssl
-lcrypto conftest.c -lssl  -lresolv -lm -ldl -lnsl  1>&5

The -lssl before the -lcrypto is new, but the second -lssl still has no
-lcrypto following.


Previous Comments:
------------------------------------------------------------------------

[2003-10-01 20:35:30] 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-10-01 13:53:49] elmicha@php.net

Description:
------------
Not sure if it's the same problem as reported in the closed #25703; but
with php4-STABLE-200310011530, I still get:

checking for OpenSSL support... yes
checking for pkg-config... /usr/local/bin/pkg-config
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!



Reproduce code:
---------------
./configure --with-openssl

Expected result:
----------------
configure should find the ssl lib. It works fine with PHP-4.3.3.

Actual result:
--------------
config.log says configure used this check:

configure:16233: gcc -o conftest -D_FILE_OFFSET_BITS=64 
-Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib -lintl -lcrypto
conftest.c -lssl  -lresolv -lm -ldl -lnsl  1>&5
/usr/local/ssl/lib/libssl.a(ssl_lib.o): In function `SSL_clear':
ssl_lib.o(.text+0x83): undefined reference to `ERR_put_error'
ssl_lib.o(.text+0xd2): undefined reference to `BUF_MEM_free'
[...]

When I try

gcc -o conftest -D_FILE_OFFSET_BITS=64  -Wl,-rpath,/usr/local/ssl/lib
-L/usr/local/ssl/lib -lintl  conftest.c -lssl -lcrypto -lresolv -lm
-ldl -lnsl

(i.e. -lcrypto after -lssl), the test compiles fine.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=25719&edit=1


Thread (6 messages)

« previous php.bugs (#48456) next »