Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 109000 - mod_php + openldap : `ber_pvt_opt_on' undeclared during compilation
Summary: mod_php + openldap : `ber_pvt_opt_on' undeclared during compilation
Status: VERIFIED DUPLICATE of bug 108995
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-12 06:32 UTC by Frédéric COIFFIER
Modified: 2005-10-12 06:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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  
`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
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-8.7.6.3)  
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
CLOSED