After updating PHP tot 5.3.4, installing extensions, like xcache or pecl-imagick fail. Apparently the path to "php-config" is not correctly set for the build to complete succesfully. It is a general bug, the same as bug: 349233, but that resolution is not correct. Emerge error: !!! Please attach the following file when seeking support: !!! /var/tmp/portage/dev-php5/pecl-imagick-3.0.0/work/imagick-3.0.0/config.log * ERROR: dev-php5/pecl-imagick-3.0.0 failed: * econf failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 3941: Called php-ext-pecl-r1_src_compile * environment, line 3162: Called php-ext-source-r1_src_compile * environment, line 3198: Called econf '--prefix=/usr/lib/php5' '--with-php-config=/usr/lib/php5/bin/php-config' '--with-imagick=/usr' * ebuild.sh, line 552: Called die * The specific snippet of code: * die "econf failed" * * If you need support, post the output of 'emerge --info =dev-php5/pecl-imagick-3.0.0', * the complete build log and the output of 'emerge -pqv =dev-php5/pecl-imagick-3.0.0'. * The complete build log is located at '/var/log/portage/dev-php5:pecl-imagick-3.0.0:20101221-130800.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-php5/pecl-imagick-3.0.0/temp/environment'. * S: '/var/tmp/portage/dev-php5/pecl-imagick-3.0.0/work/imagick-3.0.0' emerge --info =dev-php5/pecl-imagick output: Portage 2.1.9.25 (hardened/linux/x86, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5-Apollo.fritz.box.dev i686) ================================================================= System Settings ================================================================= System uname: Linux-2.6.36-gentoo-r5-Apollo.fritz.box.dev-i686-AMD_Sempron-tm-_2500+-with-gentoo-1.12.14 Timestamp of tree: Tue, 21 Dec 2010 01:45:01 +0000 app-shells/bash: 4.1_p7 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 sys-apps/baselayout: 1.12.14-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.65-r1 sys-devel/automake: 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.4-r2 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.81-r2 virtual/os-headers: 2.6.30-r1 (sys-kernel/linux-headers) ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.muntinternet.net/pub/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/ " LANG="nl_NL@euro" LC_ALL="nl_NL@euro" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="nl" 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="/var/lib/layman/sunrise" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="acl berkdb bzip2 cli cracklib crypt cups cxx doc dri gdbm gpm hardened iconv idn ipv6 modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pic pppd python readline session ssl sysfs tcpd urandom 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="dav dav_fs dav_lock actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta charset_lite dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling status substitute unique_id userdir usertrack version vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nl" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" 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_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= dev-php5/pecl-imagick-3.0.0 was built with the following: USE="-examples" emerge -pqv =dev-php5/pecl-imagick-3.0.0 output: [ebuild R ] dev-php5/pecl-imagick-3.0.0 USE="-examples" /var/log/portage/dev-php5:pecl-imagick-3.0.0:20101221-130800.log: * Package: dev-php5/pecl-imagick-3.0.0 * Repository: gentoo * Maintainer: php-bugs@gentoo.org * USE: elibc_glibc kernel_linux userland_GNU x86 >>> Unpacking source... >>> Unpacking imagick-3.0.0.tgz to /var/tmp/portage/dev-php5/pecl-imagick-3.0.0/work * * Using dev-lang/php-5.3.4 * * Running phpize ... [ ok ] * Running eautoreconf in '/var/tmp/portage/dev-php5/pecl-imagick-3.0.0/work/imagick-3.0.0' ... * Running aclocal ... [ ok ] * Running libtoolize --copy --force --install ... [ ok ] * Running aclocal ... [ ok ] * Running autoconf ... [ ok ] * Running autoheader ... [ ok ] * Running elibtoolize in: imagick-3.0.0/ * Applying portage-2.2.patch ... * Applying sed-1.5.6.patch ... * Applying as-needed-2.2.6.patch ... >>> Source unpacked in /var/tmp/portage/dev-php5/pecl-imagick-3.0.0/work >>> Compiling source in /var/tmp/portage/dev-php5/pecl-imagick-3.0.0/work/imagick-3.0.0 ... * * Using dev-lang/php-5.3.4 * * * Using dev-lang/php-5.3.4 * * * Using dev-lang/php-5.3.4 * * econf: updating imagick-3.0.0/config.guess with /usr/share/gnuconfig/config.guess * econf: updating imagick-3.0.0/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --prefix=/usr/lib/php5 --with-php-config=/usr/lib/php5/bin/php-config --with-imagick=/usr checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for i686-pc-linux-gnu-cc... no checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for icc... no checking for suncc... no checking whether i686-pc-linux-gnu-gcc and cc understand -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... i686-pc-linux-gnu configure: error: Cannot find php-config. Please use --with-php-config=PATH !!! Please attach the following file when seeking support: !!! /var/tmp/portage/dev-php5/pecl-imagick-3.0.0/work/imagick-3.0.0/config.log * ERROR: dev-php5/pecl-imagick-3.0.0 failed: * econf failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 3941: Called php-ext-pecl-r1_src_compile * environment, line 3162: Called php-ext-source-r1_src_compile * environment, line 3198: Called econf '--prefix=/usr/lib/php5' '--with-php-config=/usr/lib/php5/bin/php-config' '--with-imagick=/usr' * ebuild.sh, line 552: Called die * The specific snippet of code: * die "econf failed" * * If you need support, post the output of 'emerge --info =dev-php5/pecl-imagick-3.0.0', * the complete build log and the output of 'emerge -pqv =dev-php5/pecl-imagick-3.0.0'. * The complete build log is located at '/var/log/portage/dev-php5:pecl-imagick-3.0.0:20101221-130800.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-php5/pecl-imagick-3.0.0/temp/environment'. * S: '/var/tmp/portage/dev-php5/pecl-imagick-3.0.0/work/imagick-3.0.0' The value for php-config is invalid; is should either be : /usr/bin/php-config, or /usr/lib/php5.3/bin/php-config
Created attachment 257679 [details] environment file Hereby the environment file
Seems it needs to be fixed in the eclass file depend.php.eclass See this for details: https://forums.gentoo.org/viewtopic-p-6522102.html#6522102
*** This bug has been marked as a duplicate of bug 349353 ***