Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41396 - qt-3.3.0 will not compile will postgres 7.4.1
Summary: qt-3.3.0 will not compile will postgres 7.4.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-12 10:24 UTC by Brent Kelly
Modified: 2004-02-12 12:20 UTC (History)
0 users

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 Brent Kelly 2004-02-12 10:24:57 UTC
I have the masked postgresql-7.4.1-r1 installed and if postgres is in your use flags, it will error during compilation.  I am unsure about other versions of postgres because I only have a machine with this one installed.

I did however take postgres out of my USE line and qt-3.3.0 compiled and installed just fine.

Here is the output from the ebuild when the error occurs:

make[3]: Entering directory `/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/plugins/src/sqldrivers/psql'
g++ -c -pipe -I/usr/include/postgresql/server -I/usr/include/postgresql/pgsql -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC  -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I../../../../include -I/usr/X11R6/include -I.moc/release-shared-mt/ -o .obj/main.o main.cpp
g++ -c -pipe -I/usr/include/postgresql/server -I/usr/include/postgresql/pgsql -fno-exceptions -Wall -W -O2 -D_REENTRANT -fPIC  -DQT_TABLET_SUPPORT -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -DQT_PLUGIN -DQT_SHARED -I/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/mkspecs/linux-g++ -I. -I/usr/include/freetype2 -I../../../../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:127: error: `BOOLOID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:127: error: (Each undeclared
   identifier is reported only once for each function it appears in.)
../../../../src/sql/drivers/psql/qsql_psql.cpp:130: error: `INT8OID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:133: error: `INT2OID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:135: error: `INT4OID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:138: error: `NUMERICOID'
   undeclared (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:139: error: `FLOAT4OID'
   undeclared (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:140: error: `FLOAT8OID'
   undeclared (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:143: error: `ABSTIMEOID'
   undeclared (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:144: error: `RELTIMEOID'
   undeclared (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:145: error: `DATEOID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:148: error: `TIMEOID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:154: error: `TIMESTAMPOID'
   undeclared (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:169: error: `OIDOID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:170: error: `BYTEAOID'
   undeclared (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:173: error: `REGPROCOID'
   undeclared (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:174: error: `TIDOID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:175: error: `XIDOID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:176: error: `CIDOID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:178: error: `UNKNOWNOID'
   undeclared (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:183: error: `CHAROID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:184: error: `BPCHAROID'
   undeclared (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:186: error: `VARCHAROID'
   undeclared (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:187: error: `TEXTOID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:188: error: `NAMEOID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:189: error: `CASHOID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:190: error: `INETOID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:191: error: `CIDROID' undeclared
   (first use this function)
../../../../src/sql/drivers/psql/qsql_psql.cpp:192: error: `CIRCLEOID'
   undeclared (first use this function)
make[3]: *** [.obj/qsql_psql.o] Error 1
make[3]: Leaving directory `/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/plugins/src/sqldrivers/psql'
make[2]: *** [sub-psql] Error 2
make[2]: Leaving directory `/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/plugins/src/sqldrivers'
make[1]: *** [sub-sqldrivers] Error 2
make[1]: Leaving directory `/var/tmp/portage/qt-3.3.0/work/qt-x11-free-3.3.0/plugins/src'
make: *** [sub-plugins] Error 2

!!! ERROR: x11-libs/qt-3.3.0 failed.
!!! Function src_compile, Line 89, Exitcode 2
!!! (no error message)



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Brent Kelly 2004-02-12 11:04:36 UTC
I'm guessing the error is coming from differences in placement of the postgres.h and pg_type.h headers between postgres versions.

I have a server with 7.3.3 and these files are in:
/usr/include/postgresql/server/postgres.h
/usr/include/postgresql/server/catalog/pg_type.h

And on the 7.4.1 machine, these files are in:
/usr/include/postgresql/pgsql/server/postgres.h
/usr/include/postgresql/pgsql/server/catalog/pg_type.h

hope that helps.
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2004-02-12 12:20:48 UTC
I fixed the ebuild - seems like this directory must be changing all of the time as I seem to be fixing this a lot.