I'm trying to build php-3.0.18 as a shared module of Apache
with support for openldap-2.0.7. It compiles, makes and
installs without problems, but once I try to start apache
it gives the following error:
Cannot load /usr/local/apache/libexec/libphp3.so into server:
/usr/local/apache/libexec/libphp3.so: undefined symbol:
ldap_get_lderrno
if I recompile php without ldap support, Apache starts just fine.
Taking a look at the ldap.c that comes with php-3.0.18, I notice
the following section:
# if LDAP_API_VERSION > 2000
/* New versions of OpenLDAP do it this way */
php3_error(E_WARNING,"LDAP: Unable to bind to server: %
s",ldap_err2string(ldap_get_lderrno(ldap,NULL,NULL)));
# else
php3_error(E_WARNING,"LDAP: Unable to bind to server: %
s",ldap_err2string(ldap->ld_errno));
# endif
#else
php3_error(E_WARNING,"LDAP: Unable to bind to server: %
s",ldap_err2string(ldap_get_lderrno(ldap,NULL,NULL)));
#endif
which I presume is causing libphp3.so to build with ldap_get_lderrno
which isn't defined in openldap-2.0.7.
Short of recompiling php3 with support for an older version of openldap
are there other workarounds? I can't upgrade to php4 just yet.
Marius
-------------------------------------------------
This mail sent through IMP: webmail.sdfparty.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]