Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-24005

ant backend build configuration incorrectly sets compiler flags

XMLWordPrintable

    • S24-W18/19
    • 1

      Zabbix has two build systems in its main repository. One based on autotools, and one for ant, where the latter drives the first, and additionally sets up the environment for testing needs (instantiates databases, performs clean-up, generates test reports, etc.).

      The latter sets various configure-time options and flags configure the build system. Unfortunately, the build-backend.xml configuration sets and passes these for multiple targets, without specifying a compiler and assuming the options to be valid.

      This is not the case, as found during a build of a merged ZBX-23881.

      The flag setting should be updated, with generic flags being set for the whole configuration, and platform, compiler and target specific flags set in their dedicated scope, striving for compiler test parity in all targets, where feasible.

      Additionally, various incompatible flags are also being specified, such as passing -pedantic and an incompatible standard compliance mode -std=gnu99 , which should be resolved.

            jlambda Juris Lambda
            jlambda Juris Lambda
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: