Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93103 - php-5.0.3-r1 build errors with libpq-8.0.3, postgresql-8.0.3
Summary: php-5.0.3-r1 build errors with libpq-8.0.3, postgresql-8.0.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
: 93127 95701 97820 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-18 14:00 UTC by Jeff Kowalczyk
Modified: 2007-09-22 23:29 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Kowalczyk 2005-05-18 14:00:42 UTC
I have installed:

[ebuild   R   ] dev-db/libpq-8.0.3  -debug -kerberos +nls +pam +readline +ssl
+zlib 0 kB
[ebuild   R   ] dev-db/postgresql-8.0.3  -debug -doc -kerberos +libg++ +nls +pam
+perl -pg-hier -pg-intdatetime +python +readline (-selinux) +ssl -tcltk +xml2
+zlib 0 kB

php needs to be rebuilt according to revdep-rebuild. The following build error
is reproducible. It goes away if you build php with '-postgresql':

/bin/sh /var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/libtool --silent
--preserve-dup-deps --mode=compile gcc  -Iext/pgsql/
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/pgsql/ -DPHP_ATOM_INC
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/include
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/main
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/Zend -I/usr/include/libxml2
-I/usr/include/freetype2 -I/usr/include/imap
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/mbstring/oniguruma
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/mbstring/libmbfl
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/mbstring/libmbfl/mbfl
-I/usr/include/mysql -I/usr/include/pspell 
-I/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/TSRM  -O2 -march=athlon-xp
-mtune=athlon-xp -pipe -fomit-frame-pointer  -prefer-pic -c
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/pgsql/pgsql.c -o ext/pgsql/pgsql.lo
In file included from
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/pgsql/pgsql.c:38:
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/pgsql/php_pgsql.h:44:28:
libpq/libpq-fs.h: No such file or directory
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/pgsql/pgsql.c: In function
`zif_pg_lo_create':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/pgsql/pgsql.c:1924: error:
`INV_READ' undeclared (first use in this function)
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/pgsql/pgsql.c:1924: error:
(Each undeclared identifier is reported only
once/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/pgsql/pgsql.c:1924: error:
for each function it appears in.)
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/pgsql/pgsql.c:1924: error:
`INV_WRITE' undeclared (first use in this function)
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/pgsql/pgsql.c: In function
`zif_pg_lo_open':
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/pgsql/pgsql.c:2072: error:
`INV_READ' undeclared (first use in this function)
/var/tmp/portage/php-5.0.3-r1/work/php-5.0.3/ext/pgsql/pgsql.c:2074: error:
`INV_WRITE' undeclared (first use in this function)
make: *** [ext/pgsql/pgsql.lo] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: dev-php/php-5.0.3-r1 failed.
!!! Function php5-sapi_src_compile, Line 437, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-05-18 16:56:09 UTC
pgsql folk: has something changed with pg?
Comment 2 Masatomo Nakano (RETIRED) gentoo-dev 2005-05-19 01:05:25 UTC
yes.
All dev-db/libpq and some of postgresql packages depending it are very
experimental and package.masked yet.

We are going to resolve some problems before unmasking.
Comment 3 MATSUU Takuto (RETIRED) gentoo-dev 2005-05-19 08:04:11 UTC
*** Bug 93127 has been marked as a duplicate of this bug. ***
Comment 4 MATSUU Takuto (RETIRED) gentoo-dev 2005-05-19 08:09:41 UTC
Fixed libpq. thanks.
Comment 5 Leonardo Boshell (RETIRED) gentoo-dev 2005-06-21 23:59:40 UTC
*** Bug 95701 has been marked as a duplicate of this bug. ***
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2005-07-03 07:52:37 UTC
*** Bug 97820 has been marked as a duplicate of this bug. ***
Comment 7 N Addy 2005-07-07 19:35:38 UTC
Uh... this is marked resolved since 05/19.  It's now 07/07 and I still get the
same error when emerging php-4.4.0_rc2.  I see a duplicate bug opened on 07/03.
 Why is it marked resolved?

Someone want to share the secret of the fix with us?
Comment 8 N Addy 2005-07-07 20:02:00 UTC
Never mind.  Must have had a brain cramp.  I thought I had already re-installed
libpq.