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

pre-4.0.0beta1 (r84191) not compiling on RHEL 5 and 6

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Trivial Trivial
    • 4.0.0beta1, 4.0 (plan)
    • None
    • Packages (C)
    • None
    • RHEL 5, RHEL 6
    • Sprint 41
    • 0.3

      Steps to reproduce:

      1. Checkout trunk r84191
      2. 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 .

            dimir dimir
            dimir dimir
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: