Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37482 - Qt-3.2.3-r1 fails building (possible because of postgresql)
Summary: Qt-3.2.3-r1 fails building (possible because of postgresql)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 37500 37813 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-07 07:43 UTC by Martin Ehmsen (RETIRED)
Modified: 2007-09-22 23:15 UTC (History)
5 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 Martin Ehmsen (RETIRED) gentoo-dev 2004-01-07 07:43:37 UTC
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"
Comment 1 Matt Williams 2004-01-07 08:40:14 UTC
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.
Comment 2 Matt Williams 2004-01-07 08:47:32 UTC
Yep, that did it.
Comment 3 Todd Geders 2004-01-07 10:14:31 UTC
Exact same problem here...trying the above mentioned fix...
Comment 4 Martin Ehmsen (RETIRED) gentoo-dev 2004-01-07 11:31:10 UTC
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.
Comment 5 Todd Geders 2004-01-07 11:35:58 UTC
Yep, above "fix" worked for me.
Comment 6 Tony Vroon (RETIRED) gentoo-dev 2004-01-07 11:42:49 UTC
The line mentioned in comment 4 works for me.
Comment 7 Caleb Tennis (RETIRED) gentoo-dev 2004-01-07 11:46:29 UTC
*** Bug 37500 has been marked as a duplicate of this bug. ***
Comment 8 Sami Näätänen 2004-01-07 13:37:03 UTC
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
Comment 9 Sami Näätänen 2004-01-07 13:43:03 UTC
Should always test before posting... :)

the if should be something like this instead:

if [ -n "`pg_config --includedir`" ]

But you got the idea. ;)
Comment 10 Guy Martin (RETIRED) gentoo-dev 2004-01-12 04:35:58 UTC
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.
Comment 11 Arso - Italy 2004-01-13 06:14:10 UTC
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.
Comment 12 Guy Martin (RETIRED) gentoo-dev 2004-01-15 08:17:30 UTC
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.
Comment 13 Caleb Tennis (RETIRED) gentoo-dev 2004-01-15 09:22:31 UTC
fixed

Now we have:

-I/usr/include/postgresql/server
-I/usr/include/postgresql/pgsql
-I/usr/include/postgresql/pgsql/server
Comment 14 Caleb Tennis (RETIRED) gentoo-dev 2004-01-18 08:17:09 UTC
*** Bug 37813 has been marked as a duplicate of this bug. ***