Bug 1839125 - qt3-3.3.8b-81.fc33 FTBFS: src/sql/drivers/psql/qsql_psql.cpp:150:10: error: 'ABSTIMEOID' was not declared in this scope
Summary: qt3-3.3.8b-81.fc33 FTBFS: src/sql/drivers/psql/qsql_psql.cpp:150:10: error: '...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: qt3
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Than Ngo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F33FTBFS
TreeView+ depends on / blocked
 
Reported: 2020-05-22 14:24 UTC by Petr Pisar
Modified: 2020-07-16 08:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-16 08:51:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2020-05-22 14:24:18 UTC
qt3-3.3.8b-81.fc33 fails to build in Fedora 33:

../../../../src/sql/drivers/psql/qsql_psql.cpp: In function 'QVariant::Type qDecodePSQLType(int)':
../../../../src/sql/drivers/psql/qsql_psql.cpp:150:10: error: 'ABSTIMEOID' was not declared in this scope; did you mean 'TIMEOID'?
  150 |     case ABSTIMEOID     :
      |          ^~~~~~~~~~
      |          TIMEOID
../../../../src/sql/drivers/psql/qsql_psql.cpp:151:10: error: 'RELTIMEOID' was not declared in this scope; did you mean 'TIMEOID'?
  151 |     case RELTIMEOID     :
      |          ^~~~~~~~~~
      |          TIMEOID
../../../../src/sql/drivers/psql/qsql_psql.cpp: In member function 'virtual QString QPSQLDriver::formatValue(const QSqlField*, bool) const':
../../../../src/sql/drivers/psql/qsql_psql.cpp:1046:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1046 |      if ( field->value().toTime().isValid() ) {
      |      ^~
../../../../src/sql/drivers/psql/qsql_psql.cpp:1051:2: note: here
 1051 |  case QVariant::String:
      |  ^~~~
make[3]: *** [Makefile:135: .obj/qsql_psql.o] Error 1
make[3]: Leaving directory '/home/test/fedora/qt3/qt-x11-free-3.3.8b/plugins/src/sqldrivers/psql'
make[2]: *** [Makefile:29: sub-psql] Error 2
make[2]: Leaving directory '/home/test/fedora/qt3/qt-x11-free-3.3.8b/plugins/src/sqldrivers'
make[1]: *** [Makefile:56: sub-sqldrivers] Error 2
make[1]: Leaving directory '/home/test/fedora/qt3/qt-x11-free-3.3.8b/plugins/src'
make: *** [Makefile:64: sub-plugins] Error 2


This could be triggered by some of the recent updates of postgresql-server and libpq.

Comment 1 Petr Pisar 2020-05-22 14:41:22 UTC
The enum value was removed from postgresql-server-devel header files between 11.8 and 12.2 versions.

Comment 2 Petr Pisar 2020-05-22 14:45:24 UTC
I similar issue and a fix in Gambas <https://gitlab.com/gambas/gambas/-/commit/b9603c32523217d4549ed494fee5e84e84b2f5ae>.

Comment 3 Kevin Kofler 2020-05-22 21:11:04 UTC
If that was really an enum entry and not a #define, then it does not make sense to use #ifdef on it, it will always be false.

Comment 4 Petr Pisar 2020-05-25 10:48:04 UTC
It was a define:

usr/include/pgsql/server/catalog/pg_type_d.h:126:#define ABSTIMEOID 702

Comment 5 Than Ngo 2020-07-16 08:51:19 UTC
it's fixed in qt3-3.3.8b-82.fc33


Note You need to log in before you can comment on or make changes to this bug.