[ZBX-15206] 'remote_port' is deprecated Created: 2018 Nov 26 Updated: 2024 Apr 10 Resolved: 2018 Dec 11 |
|
| Status: | Closed |
| Project: | ZABBIX BUGS AND ISSUES |
| Component/s: | Proxy (P), Server (S) |
| Affects Version/s: | 3.0.24rc1, 4.0.2rc1, 4.2.0alpha1 |
| Fix Version/s: | 3.0.25rc1, 4.0.3rc1, 4.2.0alpha2, 4.2 (plan) |
| Type: | Problem report | Priority: | Minor |
| Reporter: | richlv | Assignee: | Michael Veksler |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Team: | |
| Sprint: | Sprint 46, Nov 2018, Sprint 47, Dec 2018 |
| Story Points: | 0.25 |
| Description |
|
Steps to reproduce: 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: |
| Comments |
| Comment by richlv [ 2018 Nov 26 ] |
|
Unable to edit the issue, but this is with trunk r87213. |
| Comment by richlv [ 2018 Nov 26 ] |
|
Warning seems to be added in 5.8, released in 2018-07-16. From https://fossies.org/linux/net-snmp/ChangeLog:
|
| Comment by Vladislavs Sokurenko [ 2018 Dec 05 ] |
|
(1) Minimal final version 4.2.7.1 2008-06-09 supports both peername and remote_port see http://www.net-snmp.org/dev/schedule.html and http://www.net-snmp.org/download.html So it is suggested to simply remove redundant deprecated parameter. zbx_snprintf(addr, sizeof(addr), "%s:%hu", item->interface.addr, item->interface.port); MVekslers I agree. Since even CentOS31 uses net-snmp-5.0.9 vso CLOSED |
| Comment by Michael Veksler [ 2018 Dec 11 ] |
|
Available in:
|