-
Problem report
-
Resolution: Unresolved
-
Minor
-
7.0.4, 7.2.0alpha1
-
None
-
NetBSD 10.0, gcc 10.5 (with NetBSD patches)
-
Sprint candidates
-
1
As part of ZBX-23888, changes were made to NetBSD specific code (PR#7012 (7.0)) that don't compile!
Specifically, the proc_get function doesn't declare the rxp_error variable that it later uses.
The same change was initially committed to 6.4 (PR#7222) but was fixed in the same pull request (b68c348ff8).
6.0 was unaffected, as it didn't have a proc_get item to begin with.
I've attached a build log of 7.2.0alpha1: ftbfs-netbsd.txt. It also contains errors from another, even older, issue that prevents building, and has been resolved via a patch in pkgsrc[1][2] over 2 years ago. I'll file a separate issue for that.
–
[1]: pkgsrc zabbix 5.0 patch for src/libs/zbxsysinfo/netbsd/net.c
[2]: pkgsrc zabbix 6.0 patch for src/libs/zbxsysinfo/netbsd/net.c