Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1839125

Summary: qt3-3.3.8b-81.fc33 FTBFS: src/sql/drivers/psql/qsql_psql.cpp:150:10: error: 'ABSTIMEOID' was not declared in this scope
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: qt3Assignee: Than Ngo <than>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: kevin, rdieter, than
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-16 08:51:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1803234    

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