[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: OpenLDAP, PHP and OS X



with php3 I have to declared in /etc/httpd/conf/php3.ini the following lines:
extension_dir=/usr/lib/apache
extension=ldap.so

best regards,
Lise Didillon

At 15:21 15/01/02 -0700, Quinn Perkins wrote:
The frustrating part is, I had this working on OS X 10.0.4. I am now running 10.1.2 Server.

I successfully built OpenLDAP and it is working fine.

I successfully built a version of PHP 4.0.6 for OS 10.1 with the instructions found at http://developer.apple.com/internet/macosx/php.html. It compiled without error 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 --enable-trans-sid

After moving the libphp4.so and editing the httpd.conf file, I started the web server, but got the following error:

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
/usr/sbin/apachectl start: httpd could not be started

Now...my OpenLDAP works fine. My PHP with LDAP compiled without error. Anyone have any ideas as to what might be wrong?

- Quinn

</blockquote></x-html>