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

'remote_port' is deprecated

    XMLWordPrintable

    Details

    • Team:
      Team A
    • Sprint:
      Sprint 46, Nov 2018, Sprint 47, Dec 2018
    • Story Points:
      0.25

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            MVekslers Michael Veksler
            Reporter:
            richlv richlv
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: