I have complied OpenLDAP and it is working fine. I can compile PHP (tried 4.0.6 and 4.1.1) with LDAP using:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=/usr/share/man --with-apxs --with-zlib --with-ldap=/Users/quinn/Desktop/Services/ldap/ldap --disable-pear
It compiles without problem. After installing the libphp4.so file, modifying the httpd.conf file...
I start Apache and get:
dyld: /usr/sbin/httpd Undefined symbols:
ldap_add_s
ldap_bind_s
ldap_compare_s
ldap_count_entries
ldap_count_values
ldap_count_values_len
ldap_delete_s
ldap_dn2ufn
ldap_err2string
ldap_explode_dn
ldap_first_attribute
ldap_first_entry
ldap_first_reference
ldap_get_dn
ldap_get_option
ldap_get_values
ldap_get_values_len
ldap_initialize
ldap_memfree
ldap_modify_s
ldap_msgfree
ldap_next_attribute
ldap_next_entry
ldap_next_reference
ldap_open
ldap_parse_reference
ldap_parse_result
ldap_perror
ldap_rename_s
ldap_result
ldap_search
ldap_search_s
ldap_set_option
ldap_unbind_s
ldap_value_free
ldap_value_free_len
Although I get no errors compiling the PHP module, Apache won't start with it installed. Any suggestions?
Quinn