ID: 33338
Updated by: sniper@php.net
Reported By: wim at godden dot net
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: Redhat Linux
PHP Version: 5.0.4
New Comment:
Are you sure you really removed ALL existing old Openssl headers??
Please try this:
# find / -name 'evp.h'
Previous Comments:
------------------------------------------------------------------------
[2005-06-14 17:23:40] wim at godden dot net
CVS snapshot results in same error :
ext/openssl/.libs/openssl.o(.text+0xd83): In function
`zm_startup_openssl':
/root/php5-200506141430/ext/openssl/openssl.c:589: undefined reference
to `OPENSSL_add_all_algorithms_noconf'
/usr/local/ssl/lib/libssl.a(s2_srvr.o)(.text+0x1644): In function
`request_certificate':
: undefined reference to `EVP_MD_CTX_init'
/usr/local/ssl/lib/libssl.a(s2_srvr.o)(.text+0x165c): In function
`request_certificate':
: undefined reference to `EVP_DigestInit_ex'
/usr/local/ssl/lib/libssl.a(s2_srvr.o)(.text+0x174c): In function
`request_certificate':
: undefined reference to `EVP_MD_CTX_cleanup'
/usr/local/ssl/lib/libssl.a(s2_clnt.o)(.text+0x1228): In function
`client_certificate':
: undefined reference to `EVP_MD_CTX_init'
....
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
------------------------------------------------------------------------
[2005-06-14 15:30:43] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5-win32-latest.zip
------------------------------------------------------------------------
[2005-06-14 15:17:59] wim at godden dot net
Description:
------------
This may look like a duplicate for bug #22305, but in fact, all
solutions posted there have not produced any results.
Configuration :
PHP 5.0.4
OpenSSL 0.9.7g
Apache 1.3.31
Installed latest OpenSSL, removed all previous versions (libraries and
headers and even the whole /usr/local/ssl), installed 0.9.7g, added it
to /etc/ld.so.conf
OpenSSL is detected correctly, but make results in :
ext/openssl/openssl.lo(.text+0xd83): In function `zm_startup_openssl':
/root/install/php-5.0.4/ext/openssl/openssl.c:589: undefined reference
to `OPENSSL_add_all_algorithms_noconf'
/usr/local/ssl/lib/libssl.a(s2_srvr.o)(.text+0x1644): In function
`request_certificate':
: undefined reference to `EVP_MD_CTX_init'
/usr/local/ssl/lib/libssl.a(s2_srvr.o)(.text+0x165c): In function
`request_certificate':
: undefined reference to `EVP_DigestInit_ex'
/usr/local/ssl/lib/libssl.a(s2_srvr.o)(.text+0x174c): In function
`request_certificate':
: undefined reference to `EVP_MD_CTX_cleanup'
/usr/local/ssl/lib/libssl.a(s2_clnt.o)(.text+0x1228): In function
`client_certificate':
: undefined reference to `EVP_MD_CTX_init'
/usr/local/ssl/lib/libssl.a(s2_clnt.o)(.text+0x1240): In function
`client_certificate':
: undefined reference to `EVP_DigestInit_ex'
/usr/local/ssl/lib/libssl.a(s2_clnt.o)(.text+0x1312): In function
`client_certificate':
: undefined reference to `EVP_MD_CTX_cleanup'
/usr/local/ssl/lib/libssl.a(s2_lib.o)(.text+0x232): In function
`ssl2_generate_key_material':
: undefined reference to `EVP_MD_CTX_init'
/usr/local/ssl/lib/libssl.a(s2_lib.o)(.text+0x2ce): In function
`ssl2_generate_key_material':
: undefined reference to `EVP_DigestInit_ex'
and numerous more of these.
Any ideas ?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33338&edit=1