php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15931 openssl linking error:undefined reference to `OPENSSL_add_all_algorithms_noconf
Submitted: 2002-03-07 07:49 UTC Modified: 2002-04-22 23:25 UTC
From: corporal_pisang at counter-strike dot com dot my Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0CVS-2002-03-0 OS: Linux 2.4.18-ac1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: corporal_pisang at counter-strike dot com dot my
New email:
PHP Version: OS:

 

 [2002-03-07 07:49 UTC] corporal_pisang at counter-strike dot com dot my
# openssl version
OpenSSL 0.9.8-dev 24 Sep 2000

# gcc --version
2.96

/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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-08 06:18 UTC] sander@php.net
What's your configure line?
 [2002-03-08 07:02 UTC] corporal_pisang at counter-strike dot com dot my
sent to sander@php.net
 [2002-03-08 08:50 UTC] sander@php.net
User input: 
-----
CFLAGS="-fPIC -O3 -m486" ./configure --with-apache=/usr/src/apache_1.3.23/ \
--with-x --with-dbase --enable-track-vars --with-imap=/usr --with-gd \
--with-gnu-ld --enable-memory-limit --enable-xml --with-ftp --with-gdbm \
--enable-sigchild --enable-ctype --enable-dbase --enable-url-include \
--enable-ucd-snmp-hack --with-tsrm-pth --enable-discard-path \
--enable-gd-native-ttf --with-pgsql=/usr --enable-bcmath \
--enable-freetype-4bit-antialias-hack --with-mcrypt --enable-versioning \
--with-readline --disable-debug --with-gettext --with-ttf --with-jpeg \
--with-mhash --enable-inline-optimization --with-mysql=/usr \
--disable-posix-threads --enable-ftp --with-vpopmail=/data/virtual \
--with-mm=/usr/src/mm-1.1.3 --enable-shmop --enable-sysvshm \
--with-openssl=/usr/src/openssl --enable-sysvsem \
--with-ming --with-xpm-dir=/usr/X11R6/lib \
--with-jpeg-dir=/usr/lib --with-t1lib=/usr --enable-discard-path \
--enable-calendar --with-dom --enable-dom --with-magic-quotes \
--with-zlib-dir=/usr --enable-sockets --with-zlib=/usr --with-bz2 \
--enable-calendar --with-mcal=/usr/local/mcal --with-zziplib=/usr 
--with-pdflib=/usr \
--with-ncurses --enable-xslt --with-xslt-sablot --enable-wddx \
--with-db3=/usr/local/BerkeleyDB.3.3/include/ --with-sablot 
-----

Please do not mail ppl directly but use the bugsystem.
 [2002-03-08 09:10 UTC] sniper@php.net
Is the path supplied to --with-openssl really the path
where the openssl libraries and header files are installed?

If not, use the install path instead of source path.

(Note to fix this: Need to check in the openssl checks that 
the libraries are also found in correct place and thus avoid
possibility of using wrong libraries with wrong header files)



--Jani

 [2002-03-09 03:50 UTC] corporal_pisang at counter-strike dot com dot my
ive changed the openssl path from /usr/src/openssl to /usr/local/ssl where libraries and headers of openssl 0.9.8-dev were installed ...

result: compilation went smoothly.

thanks..

consider the matter settled then ... ;p
 [2002-03-09 08:51 UTC] sniper@php.net
Okay, but I'll leave this open still. I'm going to add
some test to check for this.

 [2002-04-22 23:25 UTC] sniper@php.net
This is fixed now in CVS HEAD.

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 27 07:00:02 2025 UTC