|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2004-01-29 13:59 UTC] apalma at custodium dot com
Description: ------------ I'm trying to install PHP 4.3.4 in a RedHat Linux 7.2 box, adding support for Oracle8i (that's the reason why I don't use the rpm PHP distribuited by RedHat). But every time I run the configure with support for openssl (--with-openssl), I get an error: checking for CRYPTO_free in -lcrypto... no configure: error: libcrypto not found! I got all the dependences installed in the machine (openssl, openssl095a, openssl096 and openssl-devel are installed), with the following shared object created in the system: libcrypto.a libcrypto.so -> ../../lib/libcrypto.so.0.9.6b libcrypto.so.0 -> libcrypto.so.0.9.5a libcrypto.so.0.9.5a libcrypto.so.0.9.6 libcrypto.so.1 -> libcrypto.so.0.9.6 libssl.a libssl.so -> ../../lib/libssl.so.0.9.6b libssl.so.0 -> libssl.so.0.9.5a libssl.so.0.9.5a libssl.so.0.9.6 libssl.so.1 -> libssl.so.0.9.6 In fact, if I compile the source rpm provided by RedHat, I get the same error: rpmbuild --rebuild --target=i386 php-4.1.2-7.2.6.src.rpm checking for CRYPTO_free in -lcrypto... no configure: error: libcrypto not found! but I guess this is not your business :-D Reproduce code: --------------- ./configure --with-openssl Expected result: ---------------- I'd like to see a successful Makefile created after the configure script is run. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 09:00:01 2025 UTC |
The log says: configure:16122: checking for OpenSSL version configure:16262: checking for CRYPTO_free in -lcrypto configure:16281: gcc -o conftest -g -O2 conftest.c -lcrypto -lresolv -lm -ldl -lnsl -lpthread 1>&5 /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libcrypto.so: undefined reference to `__sysconf@GLIBC_2.2' collect2: ld returned 1 exit status configure: failed program was: #line 16270 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char CRYPTO_free(); int main() { CRYPTO_free() ; return 0; } ******************************************************** I only keep openssl and openssl-devel packages in this machine, and removed openssl095a and openssl096