Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108995 - mod_php + openldap : `ber_pvt_opt_on' undeclared during compilation
Summary: mod_php + openldap : `ber_pvt_opt_on' undeclared during compilation
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 109000 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-12 06:16 UTC by Frédéric COIFFIER
Modified: 2006-02-20 13:50 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:16:18 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 Jakub Moc (RETIRED) gentoo-dev 2005-10-12 06:34:51 UTC
*** Bug 109000 has been marked as a duplicate of this bug. ***
Comment 2 Luca Longinotti (RETIRED) gentoo-dev 2005-11-11 16:14:40 UTC
Please migrate to dev-lang/php-4* instead of using the old and deprecated
dev-php/{php,php-cgi,mod_php}, dev-lang/php provides all PHP SAPIs in one ebuild
and works much better, I've never had this error using openldap myself, so it
should fix this, please reopen if it still happens on dev-lang/php-4*, thanks.
For more informations on dev-lang/php and how to upgrade to it:
http://svn.gnqs.org/projects/gentoo-php-overlay/file/docs/php-upgrading.html?format=raw
TIA and best regards, CHTEKK.
Comment 3 Frédéric COIFFIER 2005-11-12 03:45:28 UTC
But, currently, =dev-lang/php-4* is masked : 
 
sh-3.00# USE="cli apache2" emerge '=dev-lang/php-4*' 
Calculating dependencies 
!!! All ebuilds that could satisfy "=dev-lang/php-4*" have been masked. 
!!! One of the following masked packages is required to complete your request: 
- dev-lang/php-4.3.11-r4 (masked by: ~x86 keyword) 
- dev-lang/php-4.4.0-r4 (masked by: ~x86 keyword) 
- dev-lang/php-4.4.1-r2 (masked by: ~x86 keyword) 
 
For more information, see MASKED PACKAGES section in the emerge man page or 
section 2.2 "Software Availability" in the Gentoo Handbook. 
 
 
In the php_upgrading document, it's not explained how to unmask this ebuild. 
Comment 4 Frédéric COIFFIER 2005-11-12 03:50:40 UTC
Even if I unmask some packages, I have the following conflict which is 
unacceptable : 
 
sh-3.00# USE="cli apache2" emerge -p '=dev-lang/php-4*' 
 
These are the packages that I would merge, in order: 
 
Calculating dependencies ...done! 
[blocks B     ] media-libs/libswf (is blocking dev-lang/php-4.4.1-r2) 
[ebuild  N    ] app-admin/eselect-1.0_rc1 
[ebuild  N    ] app-admin/eselect-php-0.96 
[ebuild  N    ] dev-lang/php-4.4.1-r2 
[ebuild  N    ] dev-php4/pecl-sqlite-1.0.3 
 
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-11-12 04:03:38 UTC
(In reply to comment #4)
> [blocks B     ] media-libs/libswf (is blocking dev-lang/php-4.4.1-r2) 

You need to unmerge libswf, it breaks php with USE=ming (see Bug 87285). 
Comment 6 Frédéric COIFFIER 2005-11-12 04:47:54 UTC
The problem is the same : 
 
/var/tmp/portage/php-4.4.1-r2/work/php-4.4.1/ext/ldap/ldap.c: In function 
`zif_ldap_set_option': 
/var/tmp/portage/php-4.4.1-r2/work/php-4.4.1/ext/ldap/ldap.c:1686: error: 
`ber_pvt_opt_on' undeclared (first use in this function) 
/var/tmp/portage/php-4.4.1-r2/work/php-4.4.1/ext/ldap/ldap.c:1686: error: 
(Each undeclared identifier is reported only once 
/var/tmp/portage/php-4.4.1-r2/work/php-4.4.1/ext/ldap/ldap.c:1686: error: for 
each function it appears in.) 
make: *** [ext/ldap/ldap.lo] Erreur 1 
 
!!! ERROR: dev-lang/php-4.4.1-r2 failed. 
!!! Function php4_4-sapi_src_compile, Line 520, Exitcode 2 
!!! make failed 
!!! If you need support, post the topmost build error, NOT this status 
message. 
 
Comment 7 Jan Boysen 2005-12-14 10:49:35 UTC
2.3.12 builds and works fine on amd64 too 
Comment 8 Sebastian Bergmann (RETIRED) gentoo-dev 2006-01-20 01:24:19 UTC
dev-php/php, dev-php/mod_php, and dev-php/php-cgi have been replaced by dev-lang/php.

Please upgrade (following the guide at http://svn.gnqs.org/projects/gentoo-php-overlay/file/docs/php-upgrading.html?format=raw) to the new-style PHP package and open a new bug if the problem persists.

Thank you.
Comment 9 Frédéric COIFFIER 2006-02-20 01:42:26 UTC
I have the same problem with dev-lang/php-4.4.1-r3

/bin/sh /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/libtool --silent --preserve-dup-deps --mode=compile gcc  -Iext/ldap/ -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/ldap/ -DPHP_ATOM_INC -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/include -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/main -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1 -I/usr/include/libxml2 -I/usr/include/freetype2 -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/mbregex -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/libmbfl -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/mbstring/libmbfl/mbfl -I/usr/include/pspell -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/xml/expat -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/TSRM -I/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/Zend    -march=athlon-xp -O2 -pipe -fomit-frame-pointer  -prefer-pic -c /var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/ldap/ldap.c -o ext/ldap/ldap.lo
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/ldap/ldap.c: In function `zif_ldap_set_option':
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/ldap/ldap.c:1686: error: `ber_pvt_opt_on' undeclared (first use in this function)
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/ldap/ldap.c:1686: error: (Each undeclared identifier is reported only once
/var/tmp/portage/php-4.4.1-r3/work/php-4.4.1/ext/ldap/ldap.c:1686: error: for each function it appears in.)
make: *** [ext/ldap/ldap.lo] Erreur 1

!!! ERROR: dev-lang/php-4.4.1-r3 failed.
!!! Function php4_4-sapi_src_compile, Line 517, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 10 Frédéric COIFFIER 2006-02-20 13:33:06 UTC
Two lber.h files in the filesystem.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-02-20 13:50:54 UTC
(In reply to comment #10)
> Two lber.h files in the filesystem.

Heh... Thanks for reporting back anyway. :)