Menu

#11 PostgreSQL compile fails w/o Interbase

7.2
open
nobody
8.0 (4)
2025-10-08
2025-10-08
dwb
No

Given:
* Delphi 12.3 32-bit
* github.com/marsupilami79/zeoslib branch 8.0-patches as of 2025-10-06 21:09:24
* github.com/marsupilami79/zeoslib/pull/131
* PostgreSQL-only configuration, i.e. Zeos.inc defines all ZEOS_DISABLE_* conditionals except ZEOS_DISABLE_POSTGRESQL (and ZEOS_DISABLE_MYSQL due to tickets/640)

packages/Delphi12/ZeosDboDev.groupproj build all fails to compile test/component/ZTestEvents.pas:
[dcc32 Error] ZTestEvents.pas(214): E2003 Undeclared identifier: 'TZTestInterbaseEventAlert'
[dcc32 Error] ZTestEvents.pas(214): E2250 There is no overloaded version of 'RegisterTest' that can be called with these arguments
[dcc32 Error] ZTestEvents.pas(214): E2029 'END' expected but ')' found
[dcc32 Fatal Error] ZTestAll.dpr(101): F2063 Could not compile used unit 'ZTestEvents.pas'

The error is due to:
{$IF defined(DISABLE_INTERBASE_AND_FIREBIRD) and defined(ZEOS_DISABLE_POSTGRESQL)}
{$DEFINE ZEOS_DISABLE_TEST_ALERTER}

Which leaves just this code in the unit:
initialization
RegisterTest('component',TZTestInterbaseEventAlert.Suite);

Commenting out ZEOS_DISABLE_INTERBASE (and ZEOS_DISABLE_SQLITE due to testsuite/10) succeeds.

ZTestAll should be able to validate a lean build for a specific driver.

Discussion


Log in to post a comment.