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

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0beta1, 4.0 (plan)
    • Component/s: Packages (C)
    • Labels:
      None
    • Environment:
      RHEL 5, RHEL 6
    • Team:
      Team C
    • Sprint:
      Sprint 41
    • Story Points:
      0.3

      Description

      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 .

        Attachments

          Activity

            People

            Assignee:
            dimir dimir
            Reporter:
            dimir dimir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: