Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 109000

Summary: mod_php + openldap : `ber_pvt_opt_on' undeclared during compilation
Product: Gentoo Linux Reporter: Frédéric COIFFIER <fcoiffie>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Package list:
Runtime testing required: ---

Description Frédéric COIFFIER 2005-10-12 06:32:32 UTC
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  
/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 :  
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>  
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
Comment 1 Frédéric COIFFIER 2005-10-12 06:33:03 UTC
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-  
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-10-12 06:34:51 UTC

*** This bug has been marked as a duplicate of 108995 ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-10-12 06:35:02 UTC