Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344115 - dev-lang/php-5.3.3-r3 failed to compile with postgres flag (postgresql-server-9.0.1)
Summary: dev-lang/php-5.3.3-r3 failed to compile with postgres flag (postgresql-server...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-04 14:12 UTC by Roby
Modified: 2010-12-27 22:27 UTC (History)
2 users (show)

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


Attachments
config.log (config.log,394.03 KB, text/plain)
2010-11-04 14:12 UTC, Roby
Details
emerge --info (emerge_info.log,5.05 KB, text/plain)
2010-11-04 14:12 UTC, Roby
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roby 2010-11-04 14:12:12 UTC
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
Comment 1 Roby 2010-11-04 14:12:29 UTC
Created attachment 253187 [details]
config.log
Comment 2 Roby 2010-11-04 14:12:43 UTC
Created attachment 253189 [details]
emerge --info
Comment 3 Aaron W. Swenson gentoo-dev 2010-11-09 00:50:22 UTC
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.
Comment 4 Roby 2010-11-10 20:33:19 UTC
The following command fixes this error:
sudo eselect postgresql set 9.0
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-12-27 22:27:37 UTC
(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.