php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18181 Apache refuses to start while loading libphp4.so if compiled with ldap support
Submitted: 2002-07-05 08:25 UTC Modified: 2002-07-05 11:23 UTC
From: rajat dot bhatia at motorola dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.2.1 OS: Solaris 5.8
Private report: No CVE-ID: None
 [2002-07-05 08:25 UTC] rajat dot bhatia at motorola dot com
I compiled apache php module with mysql and ldap support.
The following combinations were tried:
Apache version 1.3.26 , 1.3.19
Mysql version 3.23.33
Netscape LDAP C SDK  version 4.1  (SunOS5.6), 5.0
The httpd deamon refused to start and gave the following error. If I compile PHP without LDAP it works perfectly.

Could you please correct this problem , or point me a workaround. I need ldap support in php for my work to go on.

-- Error message follows -------------------------------
dummyuser@dummy:/usr/local/test_ap> ./bin/apachectl start
Syntax error on line 241 of /usr/local/test_ap/conf/httpd.conf:
Cannot load /usr/local/test_ap/libexec/libphp4.so into server: ld.so.1: /usr/local/test_ap/bin/httpd: fatal: relocation error: file /usr/local/test_ap/libexec/libphp4.so: symbol ldap_start_tls_s: referenced symbol not found
./bin/apachectl start: httpd could not be started
dummyuser@dummy:/usr/local/test_ap> 

-- ldd report follows ---------------------
dummyuser@dummy:/usr/local/test_ap/libexec> ldd libphp4.so
	libdl.so.1 =>	 /usr/lib/libdl.so.1
	libpam.so.1 =>	 /usr/lib/libpam.so.1
	libmysqlclient.so.10 =>	 /usr/local/mysql/lib/mysql/libmysqlclient.so.10	libldapssl41.so =>	 /usr/local/ldapcsdk4.14-SunOS5.6/lib/libldapssl41.so
	libplds3.so =>	 /usr/local/ldapcsdk4.14-SunOS5.6/lib/libplds3.so
	libplc3.so =>	 /usr/local/ldapcsdk4.14-SunOS5.6/lib/libplc3.so
	libnspr3.so =>	 /usr/local/ldapcsdk4.14-SunOS5.6/lib/libnspr3.so
	libcrypt_i.so.1 =>	 /usr/lib/libcrypt_i.so.1
	libresolv.so.2 =>	 /usr/lib/libresolv.so.2
	libm.so.1 =>	 /usr/lib/libm.so.1
	libnsl.so.1 =>	 /usr/lib/libnsl.so.1
	libsocket.so.1 =>	 /usr/lib/libsocket.so.1
	libc.so.1 =>	 /usr/lib/libc.so.1
	libz.so.1 =>	 /usr/lib/libz.so.1
	libgen.so.1 =>	 /usr/lib/libgen.so.1
	libthread.so.1 =>	 /usr/lib/libthread.so.1
	libposix4.so.1 =>	 /usr/lib/libposix4.so.1
	libpthread.so.1 =>	 /usr/lib/libpthread.so.1
	libmp.so.2 =>	 /usr/lib/libmp.so.2
	libaio.so.1 =>	 /usr/lib/libaio.so.1
	/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-05 08:44 UTC] rajat dot bhatia at motorola dot com
I forgot to add the gcc version I am using...
gcc version 2.95.2 19991024 (release)
 [2002-07-05 11:21 UTC] sniper@php.net
This should be fixed in this snapshot:

http://snaps.php.net/php4-latest.tar.gz
 [2002-07-05 11:23 UTC] rajat dot bhatia at motorola dot com
Thanks, The new snapshot works.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Sep 28 07:05:52 2022 UTC