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

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

« previous php.bugs (#48403) next »