-
Problem report
-
Resolution: Fixed
-
Minor
-
4.4.0
-
Sprint 57 (Oct 2019), Sprint 58 (Nov 2019)
-
1
When compiling the Zabbix agent on x86, ppc64le and s390x, I get build failures on Alpine Linux.
On x86:
# zabbix/pkg/std ../../pkg/std/os.go:137:19: cannot use o.ftimes[name].acTime (type int64) as type int32 in assignment ../../pkg/std/os.go:138:19: cannot use o.ftimes[name].chTime (type int64) as type int32 in assignment # zabbix/pkg/zbxlib ../../pkg/zbxlib/logfile.go:241:50: cannot use _Ctype_ulong(lastLogsize) (type _Ctype_ulong) as type _Ctype_ulonglong in argument to _Cfunc_new_metric ../../pkg/zbxlib/logfile.go:253:59: cannot use &clastLogsizeSent (type *_Ctype_ulong) as type *_Ctype_ulonglong in assignment ../../pkg/zbxlib/logfile.go:260:184: cannot use &clastLogsizeSent (type *_Ctype_ulong) as type *_Ctype_ulonglong in assignment ../../pkg/zbxlib/logfile.go:268:70: cannot use &clastlogsize (type *_Ctype_ulong) as type *_Ctype_ulonglong in assignment ../../pkg/zbxlib/logfile.go:304:77: cannot use clastLogsizeSent (type _Ctype_ulong) as type _Ctype_ulonglong in assignment ../../pkg/zbxlib/logfile.go:308:61: cannot use &clastLogsizeLast (type *_Ctype_ulong) as type *_Ctype_ulonglong in assignment ../../pkg/zbxlib/logfile.go:304:97: cannot use clastLogsizeLast (type _Ctype_ulong) as type _Ctype_ulonglong in assignment ../../pkg/zbxlib/nextcheck.go:50:32: cannot use _Ctype_ulong(itemid) (type _Ctype_ulong) as type _Ctype_ulonglong in assignment
On ppc64le and s390x:
# zabbix/plugins/system/uname ../../plugins/system/uname/uname_linux.go:45:54: cannot use &utsname.Sysname (type *[65]uint8) as type *[65]int8 in argument to arrayToString ../../plugins/system/uname/uname_linux.go:45:87: cannot use &utsname.Nodename (type *[65]uint8) as type *[65]int8 in argument to arrayToString ../../plugins/system/uname/uname_linux.go:46:17: cannot use &utsname.Release (type *[65]uint8) as type *[65]int8 in argument to arrayToString ../../plugins/system/uname/uname_linux.go:46:50: cannot use &utsname.Version (type *[65]uint8) as type *[65]int8 in argument to arrayToString ../../plugins/system/uname/uname_linux.go:46:83: cannot use &utsname.Machine (type *[65]uint8) as type *[65]int8 in argument to arrayToString ../../plugins/system/uname/uname_linux.go:58:23: cannot use &utsname.Nodename (type *[65]uint8) as type *[65]int8 in argument to arrayToString ../../plugins/system/uname/uname_linux.go:68:23: cannot use &utsname.Machine (type *[65]uint8) as type *[65]int8 in argument to arrayToString