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
*** Bug 109000 has been marked as a duplicate of this bug. ***
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.
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.
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
(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).
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.
2.3.12 builds and works fine on amd64 too
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.
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.
Two lber.h files in the filesystem.
(In reply to comment #10) > Two lber.h files in the filesystem. Heh... Thanks for reporting back anyway. :)