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

"_GNU_SOURCE redefined" warning messaged

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.3
    • Fix Version/s: 1.4.3
    • Component/s: Installation (I)
    • Labels:
      None

      Description

      Here is a fix for a warning during compile on Fedora/RHEL - "... _GNU_SOURCE redefined ..."

      — zabbix-1.4.2.orig/include/sysinc.h 2007-08-20 21:22:22.000000000 +0200
      +++ zabbix-1.4.2/include/sysinc.h 2007-09-19 11:44:08.000000000 +0200
      @@ -288,7 +288,9 @@

      #ifdef HAVE_GETOPT_H

      1. ifdef HAVE_GETOPT_LONG
        1. define _GNU_SOURCE
      2. include <getopt.h>+# if !defined(_GNU_SOURCE)
        +# define _GNU_SOURCE
        +# endif
      1. endif
        #endif

      http://www.zabbix.com/forum/showthread.php?t=7816

        Attachments

          Activity

            People

            Assignee:
            alexei Alexei Vladishev
            Reporter:
            alexei Alexei Vladishev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: