Article:
  PHP 4.3 and Mac OS X
Subject:   Having problems with LDAP
Date:   2003-02-04 08:22:35
From:   qperkins
Since 10.2 was released, I have been able to use the built-in OpenLDAP libraries when I have built PHP 4.2x with just a --with-ldap flag.


I am trying to build 4.3 for the first time with the following config line:
./configure --with-apxs --with-ldap --with-zlib --with-gd --enable-ftp --with-jpeg-dir=/sw --with-tiff-dir=/sw --with-pdflib=/sw --with-png-dir=/sw --with-mysql --with-freetype-dir=/sw --enable-sockets --with-xml --enable-ftp


As you can see from my /sw directory, I am using Fink's libraries for the graphic pieces,but the problem is with LDAP. I am getting the following error:
checking for LDAP support... yes
configure: error: Cannot find ldap libraries in /usr/lib.


I am using a 4.2.3 build of PHP on the same server with LDAP with no problem. Anyone have any ideas?


Quinn Perkins


Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • Having problems with LDAP
    2003-02-24 14:58:35  qperkins [View]

    In case someone else has this problem, this solution is to replace all references to libldap.so.3 with libldap.dylib in the config script.

    And I thought 4.3 was supposed to be ready for OS X...
    • Having problems with LDAP
      2003-02-28 20:37:42  tychay [View]

      Nice catch!

      The problem is not with the main of php but with ext/ldap/config.m4. The line should be changed from
      "libldap.so.3" to "libldap.$SHLIB_SUFFIX_NAME.3"

      Also, I'll do you one better. ;-) You probably want to change
      liblber.so to liblber.$SHLIB_SUFFIX_NAME since the test you pointed to occurs if it can't find the former.

      I posted the patch at
      http://bugs.php.net/bug.php?id=22485
      Please vote for it :-)

      BTW, Mac OS X Jaguar has a version of LDAP (used to replace the old NetInfo manager). So you don't really need fink for this...
      if you apply the patch above, you can then do
      ./buildconf
      ./configure --with-ldap=/usr

      :-)

      Take care,

      terry chay
      tychay at php dot net