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

agent2 build failures on certain arches

    XMLWordPrintable

    Details

    • Team:
      Team A
    • Sprint:
      Sprint 57 (Oct 2019), Sprint 58 (Nov 2019)
    • Story Points:
      1

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            viktors.tjarve Viktors Tjarve
            Reporter:
            kdaudt Kevin Daudt
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: