php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11012 httpd won't start when openssl and curl is enabled.
Submitted: 2001-05-22 05:30 UTC Modified: 2001-06-06 05:56 UTC
From: yohgaki at hotmail dot com Assigned:
Status: Closed Package: *Configuration Issues
PHP Version: 4.0 Latest CVS (2001-05-22) OS: RedHat 7.0.1
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: yohgaki at hotmail dot com
New email:
PHP Version: OS:

 

 [2001-05-22 05:30 UTC] yohgaki at hotmail dot com
Apache fails to load libphp4.so when openssl and cURL is
enabled. It
works, if one of them is disabled.

This report is probably a duplicate of 10990.

RedHat 7.0.1 (glibc 2.2)
Apache 1.3.20
Mod-SSL 2.8.4
OpenSSL 0.9.6
cURL 7.7.3 (ipv6 and openssl support enabled)

(my cURL lib includes openssl support. 10990 uses imap w/ ssl
support. It is the cause probably - Not verified.)


== When both openssl and curl is enabled ==

[root@dev addon]# apachectl startssl
Syntax error on line 239 of /etc/httpd/conf/httpd.conf:
Cannot load /usr/lib/apache/libphp4.so into server:
/usr/lib/apache/libphp4.so: undefined symbol: sk_X509_pop_free
/usr/sbin/apachectl startssl: httpd could not be started

Configure
./configure \
--with-apxs \
--disable-short-tags \
--disable-mysql \
--without-mysql \
--enable-bcmath  \
--enable-ftp \
--enable-inline-optimization \
--enable-shmop \
--enable-sysvsem \
--enable-sysvshm \
--enable-sockets \
--enable-mbstring \
--enable-mbstr-enc-trans \
--enable-memory-limit \
--enable-wddx \
--with-bz2 \
--with-curl \
--with-ftp \
--with-iconv \
--with-mhash \
--with-mcrypt \
--with-openssl \
--with-pgsql \
--with-regex=system \
--with-zlib \
--with-gd=/usr \
  --enable-gd-native-ttf \
  --with-freetype-dir=/usr/local \
  --with-jpeg-dir=/usr \
  --with-png-dir=/usr \
  --with-xpm-dir=/usr/X11R6 \

[root@dev addon]# ldd /usr/lib/apache/libphp4.so
	/lib/libsafe.so.1.3 => /lib/libsafe.so.1.3 (0x4018c000)
	libdl.so.2 => /lib/libdl.so.2 (0x4019a000)
	libz.so.1 => /usr/lib/libz.so.1 (0x4019d000)
	libresolv.so.2 => /lib/libresolv.so.2 (0x401ab000)
	libpam.so.0 => /lib/libpam.so.0 (0x401be000)
	libpq.so.2 => /usr/local/pgsql/lib/libpq.so.2 (0x401c6000)
	libmhash.so.2 => /usr/local/lib/libmhash.so.2 (0x40288000)
	libmcrypt.so.4 => /usr/local/lib/libmcrypt.so.4 (0x402ab000)
	libltdl.so.3 => /usr/local/lib/libltdl.so.3 (0x402b0000)
	libgd.so => /usr/lib/libgd.so (0x402b6000)
	libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x402ef000)
	libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40322000)
	libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x403f1000)
	libpng.so.2 => /usr/lib/libpng.so.2 (0x40400000)
	libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40421000)
	libcurl.so.2 => /usr/local/lib/libcurl.so.2 (0x40440000)
	libbz2.so.1 => /usr/lib/libbz2.so.1 (0x40503000)
	libcrypt.so.1 => /lib/libcrypt.so.1 (0x40513000)
	libm.so.6 => /lib/libm.so.6 (0x40541000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x40560000)
	libc.so.6 => /lib/libc.so.6 (0x40578000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
[root@dev addon]#

Note: No libssl.

== end ==

== Without cURL ==
[root@dev addon]# ldd /usr/lib/apache/libphp4.so
	/lib/libsafe.so.1.3 => /lib/libsafe.so.1.3 (0x40172000)
	libdl.so.2 => /lib/libdl.so.2 (0x40180000)
	libz.so.1 => /usr/lib/libz.so.1 (0x40183000)
	libresolv.so.2 => /lib/libresolv.so.2 (0x40191000)
	libpam.so.0 => /lib/libpam.so.0 (0x401a4000)
	libpq.so.2 => /usr/local/pgsql/lib/libpq.so.2 (0x401ac000)
	libmhash.so.2 => /usr/local/lib/libmhash.so.2 (0x4026e000)
	libmcrypt.so.4 => /usr/local/lib/libmcrypt.so.4 (0x40291000)
	libltdl.so.3 => /usr/local/lib/libltdl.so.3 (0x40296000)
	libgd.so => /usr/lib/libgd.so (0x4029c000)
	libfreetype.so.6 => /usr/local/lib/libfreetype.so.6 (0x402d5000)
	libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40308000)
	libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x403d7000)
	libpng.so.2 => /usr/lib/libpng.so.2 (0x403e6000)
	libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40407000)
	libbz2.so.1 => /usr/lib/libbz2.so.1 (0x40426000)
	libcrypt.so.1 => /lib/libcrypt.so.1 (0x40436000)
	libssl.so.0 => /usr/lib/libssl.so.0 (0x40464000)
	libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0x40492000)
	libm.so.6 => /lib/libm.so.6 (0x4054a000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x4056a000)
	libc.so.6 => /lib/libc.so.6 (0x40581000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
[root@dev addon]#

Note: There is libssl if cURL is disabled.
== end ==



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-02 20:44 UTC] sniper@php.net
Does this happen with latest release candidate:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

-Jani

 [2001-06-06 05:56 UTC] yohgaki at hotmail dot com
With 4.0.6RC2 and cURL7.8-pre4, 
it works fine now.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 23:01:36 2024 UTC