Ad Widget

Collapse

ARMv7 compile error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sgjava
    Junior Member
    • Feb 2021
    • 3

    #1

    ARMv7 compile error

    Using 5.0.8 source and compiling on Armbian I'm getting
    Code:
    plugins/proc/procfs_linux.go:248:6: constant 1099511627776 overflows int
    which is
    Code:
    v, err := strconv.Atoi(strings.TrimSpace(line[:len(line)-2]))
    To fix this to work on 32 bit platforms you can change this to
    Code:
    v, err := strconv.ParseInt(strings.TrimSpace(line[:len(line)-2]),10,64)
    This should not break 64 bit compiles.

    It's handy to have Zabbix Server and Zabbix agents running on 32 bit ARM. It works great.

    I patched this with my install script https://github.com/sgjava/install-za...nstall.sh#L184
    Last edited by sgjava; 14-02-2021, 17:49.
Working...