-
Problem report
-
Resolution: Unresolved
-
Trivial
-
6.0.27rc1, 6.4.12rc1, 7.0.0beta1
-
None
-
None
-
Prev.Sprint, S24-W34/35, S24-W38/39
-
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.