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

'remote_port' is deprecated

XMLWordPrintable

    • Sprint 46, Nov 2018, Sprint 47, Dec 2018
    • 0.25

      Steps to reproduce:
      gcc 8.2.1
      net-snmp 5.8

      Compile Zabbix.

      Result:

      checks_snmp.c: In function 'zbx_snmp_open_session':
      checks_snmp.c:483:2: warning: 'remote_port' is deprecated [-Wdeprecated-declarations]
        session.remote_port = item->interface.port;
        ^~~~~~~
      In file included from /usr/include/net-snmp/definitions.h:22,
                       from /usr/include/net-snmp/net-snmp-includes.h:67,
                       from checks_snmp.c:26:
      /usr/include/net-snmp/types.h:345:21: note: declared here
           u_short         remote_port NETSNMP_ATTRIBUTE_DEPRECATED;
                           ^~~~~~~~~~~
      

      Expected:
      No deprecation messages.

            MVekslers Michael Veksler
            richlv richlv
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: