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

warning: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Wcpp]

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 4.4.6
    • Agent (G), Proxy (P), Server (S)
    • None
    • Linux, gcc 10, glibc 2.91
    • Team C
    • Sprint 62 (Mar 2020)
    • 0.125

      Every #include of the is causing now warning like below.

      make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/zabbix-4.4.6/x86_64-redhat-linux-gnu-mysql/src/libs/zbxcrypto'
      gcc -DHAVE_CONFIG_H -I. -I../../../../src/libs/zbxcrypto -I../../../include   -I../../../../include -I/usr/include -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto=auto -flto-partition=none  -c -o libzbxcrypto_a-md5.o `test -f 'md5.c' || echo '../../../../src/libs/zbxcrypto/'`md5.c
      In file included from ../../../../include/sysinc.h:268,
                       from ../../../../include/common.h:23,
                       from ../../../../src/libs/zbxcrypto/md5.c:54:
      /usr/include/sys/sysctl.h:21:2: warning: #warning "The <sys/sysctl.h> header is deprecated and will be removed." [-Wcpp]
         21 | #warning "The <sys/sysctl.h> header is deprecated and will be removed."
            |  ^~~~~~~
      
      

            zabbix.dev Zabbix Development Team
            kloczek Tomasz Kłoczko
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: