qt-3.2.3-r1 fails with the following error: g++ -I. -I/usr/include/freetype2 -I../../../../include -I/usr/X11R6/include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/qsql_psql.o ../../../../src/sql/drivers/psql/qsql_psql.cpp ../../../../src/sql/drivers/psql/qsql_psql.cpp:50:22: postgres.h: No such file or directory ../../../../src/sql/drivers/psql/qsql_psql.cpp:57:29: catalog/pg_type.h: No such file or directory ../../../../src/sql/drivers/psql/qsql_psql.cpp: In function `QVariant::Type qDecodePSQLType(int)': ../../../../src/sql/drivers/psql/qsql_psql.cpp:125: error: `BOOLOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:125: error: (Each undeclared identifier is reported only once for each function it appears in.) ../../../../src/sql/drivers/psql/qsql_psql.cpp:128: error: `INT8OID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:131: error: `INT2OID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:133: error: `INT4OID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:136: error: `NUMERICOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:137: error: `FLOAT4OID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:138: error: `FLOAT8OID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:141: error: `ABSTIMEOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:142: error: `RELTIMEOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:143: error: `DATEOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:146: error: `TIMEOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:152: error: `TIMESTAMPOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:167: error: `OIDOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:168: error: `BYTEAOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:171: error: `REGPROCOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:172: error: `TIDOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:173: error: `XIDOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:174: error: `CIDOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:176: error: `UNKNOWNOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:181: error: `CHAROID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:182: error: `BPCHAROID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:184: error: `VARCHAROID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:185: error: `TEXTOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:186: error: `NAMEOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:187: error: `CASHOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:188: error: `INETOID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:189: error: `CIDROID' undeclared (first use this function) ../../../../src/sql/drivers/psql/qsql_psql.cpp:190: error: `CIRCLEOID' undeclared (first use this function) make[3]: *** [.obj/qsql_psql.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/qt-3.2.3-r1/work/qt-x11-free-3.2.3/plugins/src/sqldrivers/psql' make[2]: *** [sub-psql] Error 2 make[2]: Leaving directory `/var/tmp/portage/qt-3.2.3-r1/work/qt-x11-free-3.2.3/plugins/src/sqldrivers' make[1]: *** [sub-sqldrivers] Error 2 make[1]: Leaving directory `/var/tmp/portage/qt-3.2.3-r1/work/qt-x11-free-3.2.3/plugins/src' make: *** [sub-plugins] Error 2 !!! ERROR: x11-libs/qt-3.2.3-r1 failed. !!! Function src_compile, Line 109, Exitcode 2 !!! (no error message) It seems to be related to postgresql (postgres.h could not be found) I have postgresql installed (dev-db/postgresql-7.4.1-r1) Reproducible: Always Steps to Reproduce: Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.0) ================================================================= System uname: 2.6.0 i686 AMD Athlon(TM) XP1900+ Gentoo Base System version 1.4.3.12 ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache notitles sandbox" GENTOO_MIRRORS="http://gentoo.linux.no/ " MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X alsa amd apache2 apm avi berkdb cdr crypt cups curl doc emacs emacs-w3 encode faad fam fbcon flac foomaticdb freetype fs gdbm gif gtk gtk2 guile imagemagick imap imlib imlib2 ipv6 jabber java javascript jpeg libg++ libwww mad maildir mbox mikmod mmx motif mozilla mpeg mpeg4 ncurses nls nptl oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline samba scanner sdl slang spell ssl svga tcltk tcpd tetex tiff truetype type1 unicode usb x86 xml xml2 xmms xv xvid zlib"
Looks like there's an error in the ebuild, line 93. Changing /usr/include/postgresql/pgsql" to /usr/include/postgresql/server" should fix it - running a test build now.
Yep, that did it.
Exact same problem here...trying the above mentioned fix...
I had to change the line to: use postgres && myconf="${myconf} -plugin-sql-psql -I/usr/include/postgresql/pgsql/server -I/usr/include/postgresql/pgsql" to get it working. Having just one of the -I's didn't work for me.
Yep, above "fix" worked for me.
The line mentioned in comment 4 works for me.
*** Bug 37500 has been marked as a duplicate of this bug. ***
The cause of this is the fact that postgresql have changed it's include file locations from the latest stable ebuild of 7.3.5 to the testing ebuild of 7.4.1. So this needs some modifications to the qt. It could use pg_config to get the correct locations. `pg_config --includedir` `pg_config --includedir-server` So something like this is needed. if [ x`pg_config --includedir` = x ] then myconf="$myconf -I`pg_config --includedir`" fi
Should always test before posting... :) the if should be something like this instead: if [ -n "`pg_config --includedir`" ] But you got the idea. ;)
I got the same problem here with the 7.4.1-r1 version of postgres. On another other box, it works fine but it have the current stable version of postgres.
Related to comment 10. After an emerge sync, with new ebuild for qt-3.2.3 (without unload of any new package) ebuild of qt was ended successfully.
With postgresql-7.4.1-r1 and USE="postgres", I had to add this includedir to have it working : -I/usr/include/postgresql/pgsql/server . Please fix this asap because I'd like to unmask postgres 7.4.1-r1 on hppa to fix some problems.
fixed Now we have: -I/usr/include/postgresql/server -I/usr/include/postgresql/pgsql -I/usr/include/postgresql/pgsql/server
*** Bug 37813 has been marked as a duplicate of this bug. ***