php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15780 openssl: undefined reference to `OPENSSL_add_all_algorithms_noconf'
Submitted: 2002-02-28 08:20 UTC Modified: 2002-04-06 08:09 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: corporal_pisang at counter-strike dot com dot my Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.0CVS-2002-02-28 OS: Linux
Private report: No CVE-ID: None
 [2002-02-28 08:20 UTC] corporal_pisang at counter-strike dot com dot my
A compile error.
OpenSSL version : OpenSSL 0.9.7-dev 24 Sep 2000

make[2]: Nothing to be done for `all-p'.
make[2]: Leaving directory `/usr/src/php4/regex'
make[1]: Leaving directory `/usr/src/php4/regex'
Making all in sapi/cli
make[1]: Entering directory `/usr/src/php4/sapi/cli'
make[2]: Entering directory `/usr/src/php4/sapi/cli'
/bin/sh /usr/src/php4/libtool --silent --mode=link gcc -I. -I/usr/src/php4/sapi/cli -I/usr/src/php4/main -I/usr/src/php4 -I/usr/src/apache_1.3.23//src/include -I/usr/src/apache_1.3.23//src/os/unix -I/usr/src/php4/Zend -I/usr/src/openssl/include -I/usr/include/libxml2 -I/usr/include/freetype -I/usr/include/mysql -I/data/virtual/include -I/usr/src/php4/ext/xml/expat  -I/usr/src/php4/TSRM -fPIC -O3 -m486   -o php -export-dynamic  libphp4cli.la 
./.libs/libphp4cli.a(openssl.o): In function `zm_startup_openssl':
openssl.o(.text+0xa16): undefined reference to `OPENSSL_add_all_algorithms_noconf'
collect2: ld returned 1 exit status
make[2]: *** [php] Error 1
make[2]: Leaving directory `/usr/src/php4/sapi/cli'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php4/sapi/cli'
make: *** [all-recursive] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-05 09:06 UTC] wez@php.net
Sounds like your header files redefining OPENSSL_add_all_algorithms to OPENSSL_add_all_algorithms_noconf.

Are you sure that the header files installed match your development version of openssl??
 [2002-03-05 09:39 UTC] corporal_pisang at counter-strike dot com dot my
yeap ... my last 4.2.0-dev compile was on february with 
the same ssl headers.
 [2002-04-06 08:09 UTC] sniper@php.net
You're using development version of openssl. Nothing we can
do about that now.

 [2003-05-29 22:17 UTC] kelv at kelv dot net
The error is not because of PHP. It happens if the old /usr/local/ssl (assuming default location) was not cleaned out before a newer version of OpenSSL was installed. I had this exact error compiling PHP --with-openssl 0.9.7b, previously 0.9.6g. 

Solution - delete the old /usr/local/ssl, go back to your OpenSSL source and make install again. PHP will then build without a problem.

WARNING - Make sure you telnet in before you delete your old /usr/local/ssl dir or you will loose connection and have no way in. You will also need to rebuild OpenSSH afterwards or it will complain about incorrect .so versions.

Kelv
 [2004-02-24 08:32 UTC] ady_speed at yahoo dot co dot uk
Or...you just need to add the path where you installed openssl (default /usr/local/openssl). Do a search for evp.h if you are in doubt ;)
Must sound like this:

./configure... --with-openssl-prefix=/usr/local/ssl...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 05:01:27 2024 UTC