Package php-5.3.3-r3 failed to compile with postgres flag when postgresql-server (and postgresql-client) 9.0.1 is installed. I have no other postgresql versions in the machine. Current workaround is one of these: 1. Compile php-5.3.3-r1 and postgres flag with postgresql 9.0.1, OR 2. Compile php-5.3.3-r3 and postgres flag off, OR 3. (untested) Downgrade postgresql and recompile php-5.3.3-r3 Error message: checking for PostgreSQL support for PDO... yes, shared checking for pg_config... /usr/bin/pg_config checking for openssl dependencies... grep: Use: No such file or directory grep: eselect: No such file or directory grep: to: No such file or directory grep: set: No such file or directory grep: postgresql: No such file or directory grep: version/libpq-fe.h: No such file or directory no checking for PQparameterStatus in -lpq... no Unable to build the PDO PostgreSQL driver: libpq 7.4+ is required!!! Please attach the following file when seeking support:!!! /var/tmp/portage/dev-lang/php-5.3.3-r3/work/sapis-build/cli/config.log * ERROR: dev-lang/php-5.3.3-r3 failed: * econf failed * * Call stack: * ebuild.sh, line 56: Called src_configure * environment, line 4604: Called eblit-run 'src_configure' 'v2' * environment, line 1721: Called eblit-php-src_configure * src_configure-v2.eblit, line 272: Called econf '--prefix=/usr/lib64/php5.3' '--mandir=/usr/lib64/php5.3/man' '--infodir=/usr/lib64/php5.3/info' '--libdir=/usr/lib64/php5.3/lib' '--with-libdir=lib64' '--without-pear' '--enable-maintainer-zts' '--enable-bcmath=shared' '--with-bz2=shared' '--enable-calendar=shared' '--with-curl=shared' '--with-curlwrappers' '--without-enchant' '--enable-exif=shared' '--enable-ftp=shared' '--with-gettext=shared' '--with-gmp=shared' '--disable-intl' '--with-kerberos=/usr' '--enable-mbstring=shared' '--with-mcrypt=shared' '--with-mssql=shared' '--with-onig=/usr' '--with-openssl' '--with-openssl-dir=/usr' '--enable-pcntl=shared' '--with-pgsql=shared' '--with-pspell=shared' '--without-recode' '--disable-shmop' '--without-snmp' '--enable-soap=shared' '--enable-sockets=shared' '--without-sqlite3' '--without-sybase-ct' '--enable-sysvmsg=shared' '--enable-sysvsem=shared' '--enable-sysvshm=shared' '--with-tidy=shared' '--disable-wddx' '--with-xmlrpc=shared' '--with-xsl=shared' '--enable-zip=shared' '--with-zlib=shared' '--disable-debug' '--enable-dba=shared' '--without-cdb' '--with-db4' '--enable-flatfile' '--with-gdbm' '--enable-inifile' '--without-qdbm' '--with-freetype-dir=/usr' '--with-t1lib=/usr' '--enable-gd-jis-conv' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--with-gd' '--with-imap=shared' '--with-imap-ssl' '--without-interbase' '--without-interbase' '--with-ldap=shared' '--without-ldap-sasl' '--with-mysqli=shared,/usr/bin/mysql_config' '--with-unixODBC=shared,/usr' '--without-adabas' '--without-birdstep' '--without-dbmaker' '--without-empress' '--without-esoob' '--without-ibm-db2' '--without-sapdb' '--without-solid' '--without-oci8' '--with-pdo-dblib=shared' '--without-pdo-mysql' '--with-pdo-pgsql=shared' '--without-pdo-sqlite' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-readline' '--without-libedit' '--without-mm' '--with-sqlite=/usr' '--enable-sqlite-utf8' '--with-pic' '--with-pcre-regex=/usr' '--with-pcre-dir=/usr' '--with-config-file-path=/etc/php/cli-php5.3' '--with-config-file-scan-dir=/etc/php/cli-php5.3/ext-active' '--enable-cli' '--disable-cgi' '--disable-fpm' '--disable-embed' '--without-apxs2' * 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-lang/php-5.3.3-r3', * the complete build log and the output of 'emerge -pqv =dev-lang/php-5.3.3-r3'. * The complete build log is located at '/var/tmp/portage/dev-lang/php-5.3.3-r3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-lang/php-5.3.3-r3/temp/environment'. * S: '/var/tmp/portage/dev-lang/php-5.3.3-r3/work/php-5.3.3' Reproducible: Always Steps to Reproduce: 1. emerge =postgresql-server-9.0.1 2. USE="postgres" emerge php-5.3.3-r3 3. compilation failure Expected Results: Successful compilation
Created attachment 253187 [details] config.log
Created attachment 253189 [details] emerge --info
This may be caused by a slot not being set. I think "Use eselect to set postgresql" is an error/warning message spouted out by binwrapper.
The following command fixes this error: sudo eselect postgresql set 9.0
(In reply to comment #4) > The following command fixes this error: > sudo eselect postgresql set 9.0 > yup, you need an active postgresql. I'll close this bug, sorry that we didn't get to it sooner. :/ Thanks for the report anyway.