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

"_GNU_SOURCE redefined" warning messaged

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.4.3
    • 1.4.3
    • Installation (I)
    • None

      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

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

              Created:
              Updated:
              Resolved: