Compiling php-3.0.18 with Openldap-2.0.7 support!
| From: | ndemeno at sdfparty dot org | Date: | Wed, 10 Jan 2001 09:45:15 +0000 |
| Subject: | Compiling php-3.0.18 with Openldap-2.0.7 support! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-33638@lists.php.net to get a copy of this message | ||
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