When I compile mod_php-4.4.0-r3, I have the following error : /var/tmp/portage/mod_php-4.4.0-r3/work/php-4.4.0/ext/ldap/ldap.c: In function `zif_ldap_set_option': /var/tmp/portage/mod_php-4.4.0-r3/work/php-4.4.0/ext/ldap/ldap.c:1686: error: `ber_pvt_opt_on' undeclared (first use in this function) /var/tmp/portage/mod_php-4.4.0-r3/work/php-4.4.0/ext/ldap/ldap.c:1686: error: (Each undeclared identifier is reported only once /var/tmp/portage/mod_php-4.4.0-r3/work/php-4.4.0/ext/ldap/ldap.c:1686: error: for each function it appears in.) I have previously emerged net-nds/openldap-2.2.28. In the ldap.c file, the line 1686 is : ? LDAP_OPT_ON : LDAP_OPT_OFF; In fact, LDAP_OPT_ON symbol is defined in ldap.h : ldap.h:#define LDAP_OPT_ON ((void *) &ber_pvt_opt_on) but the symbol 'ber_pvt_opt_on' is only defined in lber.h : lber.h:LBER_V( char ) ber_pvt_opt_on; But in my case, mod_php doesn't include lber.h, because in php_ldap.h, I have : #ifndef HAVE_ORALDAP #include <lber.h> #endif and in my case, it seems HAVE_ORALDAP isn't defined. Reproducible: Always Steps to Reproduce: 1. emerge openldap 2. emerge =dev-php/mod_php-4.4.0-r3 Actual Results: Emerge operation failed
I wrote an error : lber.h is included by ldap.h !! So, it should work ! I'm using gcc (GCC) 3.4.1 (Gentoo Linux 3.4.1, ssp-3.4-2, pie-8.7.6.3)
*** This bug has been marked as a duplicate of 108995 ***
CLOSED