php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17636 LDAP Undefined References
Submitted: 2002-06-07 02:31 UTC Modified: 2002-06-18 14:03 UTC
From: brian dot luke at schwab dot com Assigned:
Status: Closed Package: LDAP related
PHP Version: 4.2.1 OS: Solaris 2.6
Private report: No CVE-ID: None
 [2002-06-07 02:31 UTC] brian dot luke at schwab dot com
performed ./configure --with-apxs=/pathtoapxs --with-oci8 --with-mysql --with-ldap=/usr/local/ldap

make and make install worked fine.
Upon Starting Apache, various undefined references are returned, depending on which flavor of the LDAP libs I compile against.

I have OpenLdap 2.0x, Netscape 5.x, and UM LDAP all installed (In different directories) and they all had similar,(but not the same) results when compiled with PHP.

OpenLDAP was installed to /usr/local
UM LDAP was installed to /usr/local/umldap
Netscape 5 LDAP libs were installed to /usr/local/ldap

If I configure it without ldap of any sort, it works fine.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-07 03:26 UTC] mfischer@php.net
Please also post the undefined references you get.
 [2002-06-07 17:22 UTC] brian dot luke at schwab dot com
When Compiled against Open LDAP 2.0.23 and attempting to start apache:

Cannot load /opt/httpd/libexec/libphp4.so into server: ld.so.1: /opt/httpd/bin/httpsymbol __eprintf: referenced symbol not found
/etc/init.d/apache start: httpd could not be started
 [2002-06-15 23:13 UTC] sniper@php.net
Try adding --enable-libgcc to your configure line.

 [2002-06-18 14:03 UTC] brian dot luke at schwab dot com
By setting the CC environment variable to gcc and adding --enable-libgcc, I was able to compile php and start the apache server, complete with openldap extensions.

Thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 19:01:28 2024 UTC