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.
The enum value was removed from postgresql-server-devel header files between 11.8 and 12.2 versions.
I similar issue and a fix in Gambas <https://gitlab.com/gambas/gambas/-/commit/b9603c32523217d4549ed494fee5e84e84b2f5ae>.
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.
It was a define: usr/include/pgsql/server/catalog/pg_type_d.h:126:#define ABSTIMEOID 702
it's fixed in qt3-3.3.8b-82.fc33