Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322671 - dev-lang/php-5.3.2 doesn't work with cli cgi apache2 use flags
Summary: dev-lang/php-5.3.2 doesn't work with cli cgi apache2 use flags
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal with 1 vote (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 322769 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-03 19:48 UTC by Christian Kaps
Modified: 2010-06-12 04:43 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,1.15 MB, text/plain)
2010-06-07 19:18 UTC, Christian Kaps
Details
Patch to fix undefined symbol: zend_ini_boolean_displayer_cb (php-5.3.2.diff,5.77 KB, patch)
2010-06-08 18:08 UTC, Marc Tousignant
Details | Diff
Build log using: FEATURES="keeptemp" USE="-* cli apache2" emerge php (build.log,224.48 KB, text/plain)
2010-06-09 01:24 UTC, Marc Tousignant
Details
build log after new sync. (build.log,923.52 KB, text/plain)
2010-06-09 13:21 UTC, Marc Tousignant
Details
Build log: FEATURES="keeptemp" USE="-* cli apache2" emerge php (build.log,361.18 KB, text/plain)
2010-06-09 16:14 UTC, Toby Walsh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Kaps 2010-06-03 19:48:58 UTC
When compiling php with the cli cgi apache2 use flags the apache server doesn't start. 

Reproducible: Always

Steps to Reproduce:
1. Add use flags cli cgi apache2 to dev-lang/php-5.3.2
2. emerge php
3. /etc/init.d/apache2 restart

Actual Results:  
apache2: Syntax error on line 175 of /etc/apache2/httpd.conf: Syntax error on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load /usr/lib64/apache2/modules/libphp5.so into server: /usr/lib64/apache2/modules/libphp5.so: undefined symbol: zend_ini_boolean_displayer_cb

Expected Results:  
Apache server should start.
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-06-07 08:30:00 UTC
*** Bug 322769 has been marked as a duplicate of this bug. ***
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-06-07 08:33:29 UTC
Hello,

can you please provide the `emerge --info` as a comment and the /var/tmp/portage/dev-lang/php-5.3.2/temp/build.log and envionment of a failing installation (`FEATURES="keeptemp" USE="cli" emerge -av1 "=dev-lang/php-5.3.2"`)?

This would help the maintainer to trace this problem down.

Thanks, Michael
Comment 3 Adam Piper 2010-06-07 11:53:30 UTC
My emerge --info:

Portage 2.1.8.3 (default/linux/x86/10.0/server, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r10 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r10-i686-AMD_Athlon-tm-_XP-with-gentoo-1.12.13
Timestamp of tree: Fri, 04 Jun 2010 13:45:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.4
dev-python/pycrypto: 2.1.0_beta1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.2, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext aac acl alsa apache2 berkdb bzip2 cli cracklib crypt cxx dri faac flac fortran gdbm gpm iconv ipv6 jack lame ldap mmx mmxext modules mp3 mudflap mysql ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session snmp spl sqlite sqlite3 sse ssl sysfs tcpd truetype unicode vorbis win32codecs x264 x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Christian Kaps 2010-06-07 19:18:16 UTC
Created attachment 234463 [details]
build.log
Comment 5 Christian Kaps 2010-06-07 19:20:59 UTC
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r7 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Sat, 05 Jun 2010 18:15:02 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch usersandbox"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/sunrise /usr/local/portage/layman/desktop-effects /usr/local/portage/akkie"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 avi bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr cleartype cli consolekit cracklib crypt cups cxx dbus divx dri dts dv dvd dvdnav dvdr dvdread eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif gimp gkt glitz gnome gpm gstreamer gtk hal hvm iconv ipod ipv6 java jpeg lame lcms ldap libnotify live mad mikmod mjpeg mmx mmxext mng modules mono mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp pam pango pcre pdf perl png podcast ppds pppd python qt3support quicktime readline reflection samba sdl session smp spell spl sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora tiff truetype unicode usb vcd vorbis x264 xcb xcomposite xinerama xml xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon ptp2 ricoh ricoh_g3" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Raphael Dehousse 2010-06-07 21:32:21 UTC
I think it's the last update in portage that breaks this because just before that, I was using php cli and php in apache2 normally without any error

I hope it will help find what causes the problem...
Comment 7 Marc Tousignant 2010-06-08 18:08:16 UTC
Created attachment 234563 [details, diff]
Patch to fix undefined symbol: zend_ini_boolean_displayer_cb

This fixes the undefined symbol: zend_ini_boolean_displayer_cb message for me. It is the same patch that Vladimir Tsisaruk created for 5.3.1 that fixes the same issue which can be located at http://bugs.gentoo.org/show_bug.cgi?id=274512#c96
Comment 8 Toby Walsh 2010-06-08 18:51:49 UTC
Adding "make clean" before the "php_sapi_build apache2" line in src_compile-v1.eblit fixes the problem for me. Looks like the above patch effectively does the same thing.
Comment 9 Matti Bickel (RETIRED) gentoo-dev 2010-06-08 19:55:21 UTC
Well, we do an emake clean (which essentially IS a make clean) on every run but the first.

Plus I can't reproduce the problem here on my amd64 with the latest version of php-5.3.2 in portage.

@somebody where it fails: I understand this only happens when USE="cli apache2", not if USE="apache2"? Please do
FEATURES="keeptemp" USE="-* cli apache2" emerge php && /etc/init.d/apache2 restart
please and attach the output of the buildlog found in /var/tmp/portage/dev-lang/php-5.3.2/temp/build.log

@Toby: can you please specify what you did to src_compile-v1.eblit to make it work for you? Patch would be ideal. The currently attached patch doesn't install apache2 at all. A diff -u to current src_compile-v1.eblit would most helpful, as I can't reproduce the issue myself.
Comment 10 Travis Hansen 2010-06-09 00:29:52 UTC
The last I looked the emake clean was only happening in the overlay ebuild and not in the proper portage ebuild.  Once I switched over to the newer eblit that does emake clean all worked.
Comment 11 Marc Tousignant 2010-06-09 01:23:01 UTC
Matti:
I tried what Toby said which was to add a make clean above the apache2 line:
        if use apache2 ; then
+               make clean
                php_sapi_build apache2
However, I think this actually cleans the working folder of all the other settings like cli which are set before that are cleared.

Shortly, I will be attaching a build.log of the original unmodified php-5.3.2 build per your request using the options you requested.
Of note, using the options you requested also recompiled apache with the same use flags. Due to this the error reported is slightly different, line number changes, after updating the etc changes and adding -D PHP5 to the apache options.

 * apache2 has detected an error in your setup:
apache2: Syntax error on line 81 of /etc/apache2/httpd.conf: Syntax error on line 4 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load /usr/lib64/apache2/modules/libphp5.so into server: /usr/lib64/apache2/modules/libphp5.so: undefined symbol: zend_ini_boolean_displayer_cb
Comment 12 Marc Tousignant 2010-06-09 01:24:09 UTC
Created attachment 234613 [details]
Build log using: FEATURES="keeptemp" USE="-* cli apache2" emerge php
Comment 13 Matti Bickel (RETIRED) gentoo-dev 2010-06-09 08:25:25 UTC
Marc: I'm looking into this. On my machine make -j5 clean is called between ALL builds, but this is not what the eblit says. Strange.

And: there's no "use apache2" line in src_compile-v1.eblit, the SAPIs are built from the SAPI global variable inherited from ebuild scope. What file do you modify? Can you please sync again?
Comment 14 Matti Bickel (RETIRED) gentoo-dev 2010-06-09 08:52:59 UTC
Um.. actually, this is a screwup on my side. CVS was reporting the changes I made to src_compile-v1.eblit committed but I see from the rsync snapshot they didn't make it. I've now corrected this and sent the changes.

Please sync again and see if that fixes your problem.
Comment 15 Raphael Dehousse 2010-06-09 12:56:25 UTC
Hello

I tried and now, I have

Digest verification failed:
/usr/portage/dev-lang/php/files/eblits/src_install-v1.eblit
Reason: Filezie does not match recorded size
Got: 3646
Expected: 3584

Cheers,

Raph
Comment 16 Marc Tousignant 2010-06-09 13:19:35 UTC
(In reply to comment #14)
> Um.. actually, this is a screwup on my side. CVS was reporting the changes I
> made to src_compile-v1.eblit committed but I see from the rsync snapshot they
> didn't make it. I've now corrected this and sent the changes.
> Please sync again and see if that fixes your problem.

Well first, after a resync, the digest for src_install-v1.eblit is bad. After running an ebuild digest I started the build. I then got a failure on the install step. I'll be attaching a new build log shortly.

Since I haven't yet provided my emerge --info, here it is:
# emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/server, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r2-x86_64-AMD_Athlon-tm-_64_Processor_2800+-with-gentoo-1.12.13
Timestamp of tree: Wed, 09 Jun 2010 12:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.6.3, 1.9.6-r2, 1.10.3
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://mirror.datapipe.net/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 apache2 avi berkdb bzip2 cli cracklib crypt ctype cxx dri dvb dvd encode facc ffmpeg fortran gdbm gif git gpm gtk gtk2 httpd iconv ipv6 ivtv java jpeg ldap mjpeg mmx modules mp3 mpeg mudflap multilib mysql na_dd na_icons ncurses nls nowin nptl nptlonly ogg oggvorbis opengl openmp oss pam pcre perl png posix pppd python qt4 quicktime readline reflection server session snmp spl sse sse2 ssl stream svg sysfs tcpd theora threads tiff timidity transcode truetype truetype-fonts type1-fonts unicode usb v4l2 vorbis x264 xml xorg xv xvid xvidinfo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="*" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="sis vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 17 Marc Tousignant 2010-06-09 13:21:04 UTC
Created attachment 234707 [details]
build log after new sync.
Comment 18 Toby Walsh 2010-06-09 16:12:34 UTC
After syncing I also get "digest verfication failed" error on src_install-v1.eblit

I rebuilt the digest and ran

FEATURES="keeptemp" USE="-* cli apache2" emerge php

but it errors at the "Installing SAPI: cli" stage. I'll attach the build log

My emerge --info is;

Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r10 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r10-i686-Intel-R-_Core-TM-2_CPU_6600_@_2.40GHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 09 Jun 2010 15:15:03 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.6.4-r1, 3.1.2-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.65
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://mirror.bytemark.co.uk/gentoo/ http://gentoo.tiscali.nl/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cdr cli cracklib cxx dri dvd fortran gd gdbm gpm iconv jpeg logrotate lua modules mudflap ncurses nls nptl nptlonly openmp pam pcre png pppd python readline reflection samba session spl sse sse2 ssl sysfs syslog tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 19 Toby Walsh 2010-06-09 16:14:41 UTC
Created attachment 234735 [details]
Build log: FEATURES="keeptemp" USE="-* cli apache2" emerge php

Build log: FEATURES="keeptemp" USE="-* cli apache2" emerge php
Fails at 
Installing SAPI: cli
!!! dobin: cli cgi embed apache2/cli/php does not exist
Comment 20 Matti Bickel (RETIRED) gentoo-dev 2010-06-09 16:16:12 UTC
So sorry, another stale file. Seems they stemmed from me moving the -v2.eblit versions to their -v1.eblit counterpart w/o editing their headers, confusing portage.

I checked and no other file should block this now. Please try again after the mirrors have caught up.
Comment 21 Marc Tousignant 2010-06-09 17:47:21 UTC
(In reply to comment #20)
> So sorry, another stale file. Seems they stemmed from me moving the -v2.eblit
> versions to their -v1.eblit counterpart w/o editing their headers, confusing
> portage.
> I checked and no other file should block this now. Please try again after the
> mirrors have caught up.

Built fine this time, no errors. Restart of apache after the install also worked reporting no errors.
I'd say fixed at this point.
Comment 22 Toby Walsh 2010-06-09 17:52:07 UTC
Working fine here as well.

Many thanks
Comment 23 Paulo M 2010-06-09 21:17:54 UTC
I can confirm as well that it works fine after the changes.
Comment 24 Travis Hansen 2010-06-10 00:31:24 UTC
With embed enabled as well I am getting..


cp: cannot stat `libs/libphp5.so': No such file or directory
 * ERROR: dev-lang/php-5.3.2 failed:
 *   Unable to copy embed SAPI
 * 
 * Call stack:
 *              ebuild.sh, line   48:  Called src_compile
 *            environment, line 4905:  Called eblit-run 'src_compile' 'v1'
 *            environment, line 2022:  Called eblit-php-src_compile
 *   src_compile-v1.eblit, line   18:  Called php_sapi_copy 'embed'
 *   src_compile-v1.eblit, line   85:  Called die
 * The specific snippet of code:
 *   		cp "$source" "${SAPI_DIR}/$sapi" || die "Unable to copy ${sapi} SAPI"
 * 
 * If you need support, post the output of 'emerge --info =dev-lang/php-5.3.2',
 * the complete build log and the output of 'emerge -pqv =dev-lang/php-5.3.2'.
 * The complete build log is located at '/var/tmp/portage/dev-lang/php-5.3.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-5.3.2/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/php-5.3.2/work/php-5.3.2'


With only cgi, apache2, and cli everything works ok
Comment 25 Raphael Dehousse 2010-06-10 07:47:15 UTC
Working fine here as well (cli + apache2)

Thank you
Comment 26 Marc Tousignant 2010-06-10 13:52:03 UTC
(In reply to comment #24)
> With embed enabled as well I am getting..
> cp: cannot stat `libs/libphp5.so': No such file or directory
>  * ERROR: dev-lang/php-5.3.2 failed:
>  *   Unable to copy embed SAPI
>  * 
>  * Call stack:
>  *              ebuild.sh, line   48:  Called src_compile
>  *            environment, line 4905:  Called eblit-run 'src_compile' 'v1'
>  *            environment, line 2022:  Called eblit-php-src_compile
>  *   src_compile-v1.eblit, line   18:  Called php_sapi_copy 'embed'
>  *   src_compile-v1.eblit, line   85:  Called die
>  * The specific snippet of code:
>  *              cp "$source" "${SAPI_DIR}/$sapi" || die "Unable to copy ${sapi}
> SAPI"
>  * 
>  * If you need support, post the output of 'emerge --info =dev-lang/php-5.3.2',
>  * the complete build log and the output of 'emerge -pqv =dev-lang/php-5.3.2'.
>  * The complete build log is located at
> '/var/tmp/portage/dev-lang/php-5.3.2/temp/build.log'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/dev-lang/php-5.3.2/temp/environment'.
>  * S: '/var/tmp/portage/dev-lang/php-5.3.2/work/php-5.3.2'
> With only cgi, apache2, and cli everything works ok

Travis, your issue is unlrelated to the original bug, which was that after compiling with apache2 and cli you would get an undefined symbol: zend_ini_boolean_displayer_cb error trying to start apache. Please create a new bug and have it block 312775.
Comment 27 Matti Bickel (RETIRED) gentoo-dev 2010-06-11 17:34:58 UTC
Turns out the USE="embed" failure was due to a variable mixup in src_compile. It's fixed in CVS and should be on the mirrors shortly. Thanks for catching this.

As far as this bug is concerned, that's probably fixed.
Comment 28 Travis Hansen 2010-06-12 04:43:49 UTC
(In reply to comment #27)
> Turns out the USE="embed" failure was due to a variable mixup in src_compile.
> It's fixed in CVS and should be on the mirrors shortly. Thanks for catching
> this.
> 
> As far as this bug is concerned, that's probably fixed.
> 

Both problems seems to be squared away.  Thanks!