-
Incident report
-
Resolution: Fixed
-
Trivial
-
None
-
None
-
RHEL 5, RHEL 6
-
Sprint 41
-
0.3
Steps to reproduce:
- Checkout trunk r84191
- Try to compile zabbix on RHEL 5 or 6 with any configure options
Result:
[...] Making all in zbxdbcache In file included from dbconfig_maintenance.c:28: dbsync.h:113: error: redefinition of typedef 'zbx_dbsync_t' dbconfig.h:813: error: previous declaration of 'zbx_dbsync_t' was here In file included from dbsync.c:28: dbsync.h:113: error: redefinition of typedef 'zbx_dbsync_t' dbconfig.h:813: error: previous declaration of 'zbx_dbsync_t' was here In file included from dbconfig.c:38: dbsync.h:113: error: redefinition of typedef 'zbx_dbsync_t' dbconfig.h:813: error: previous declaration of 'zbx_dbsync_t' was here make[3]: *** [libzbxdbcache_a-dbconfig_maintenance.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: *** [libzbxdbcache_a-dbsync.o] Error 1 make[3]: *** [libzbxdbcache_a-dbconfig.o] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all-recursive] Error 1
Expected:
No compilation error
Reproducible on:
RHEL 5: $ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-55)
RHEL 6: $ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)
Not reproducible on:
RHEL 7: $ gcc --version
gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-16)
Debian 7: $ gcc --version
gcc (Debian 4.7.2-5) 4.7.2
Looks like the issue happens on older GCC versions. At least up to 4.4.7 .