[PHP-DEV] Bug #3033: Fatal compile error on functions/ldap.c From: john_k <email protected>
Date: 12/23/99

From: john_k <email protected>
Operating system: Solaris 2.7
PHP version: 3.0.12
PHP Bug Type: Compile Failure
Bug description: Fatal compile error on functions/ldap.c

The exact error is (using gcc 2.8.1):

functions/ldap.c: In function `php3_ldap_error':
functions/ldap.c:610: dereferencing pointer to incomplete type

The offending line reads as:

ld_error = ldap_err2string(ldap->ld_errno);

but should be:

ld_error = ldap_err2string(ld_errno);

This will properly utilize the #if LDAP_API_VERSION section immediately above.

I am using the Netscape Directory SDK 3.0 and I have --with-ldap pointing to the correct dir.

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>