Ad Widget

Collapse

Unable to compile agent 2 zabbix 5.0.5 on Ubuntu 14.04 ARMHF

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ulinx
    Junior Member
    • Feb 2020
    • 9

    #1

    Unable to compile agent 2 zabbix 5.0.5 on Ubuntu 14.04 ARMHF

    ./configure --enable-agent2 --prefix=`pwd`/debian/zabbix-agent2 --exec-prefix=`pwd`/debian/zabbix-agent2 --bindir=`pwd`/debian/zabbix-agent2/usr/bin --sbindir=`pwd`/debian/zabbix-agent2/usr/sbin --sysconfdir=/etc/zabbix --libdir=/usr/lib/zabbix --datarootdir=`pwd`/debian/zabbix-agent2/usr/share --with-openssl --with-libpcre --enable-ipv6 --with-ssh2 --with-libcurl --with-unixodbc --with-libxml2 --with-libevent


    Configure runs fine, no errors, but make fails with this error

    # zabbix.com/pkg/zbxlib
    /usr/bin/ld: /srv/zabbix5arm/zabbix5-14-attemp1/zabbix-5.0.5/src/zabbix_agent/logfiles/libzbxlogfiles.a(logfiles.o): relocation R_ARM_THM_MOVW_ABS_NC against `zbx_log_level' can not be used when making a shared object; recompile with -fPIC
    /srv/zabbix5arm/zabbix5-14-attemp1/zabbix-5.0.5/src/zabbix_agent/logfiles/libzbxlogfiles.a: error adding symbols: Bad value
    collect2: error: ld returned 1 exit status
    # zabbix.com/plugins/system/swap
    plugins/system/swap/swap_nix.go:32:13: cannot use info.Totalswap (type uint32) as type uint64 in return argument
    plugins/system/swap/swap_nix.go:32:29: cannot use info.Freeswap (type uint32) as type uint64 in return argument
    make[2]: *** [build] Error 2
    make[2]: Leaving directory `/srv/zabbix5arm/zabbix5-14-attemp1/zabbix-5.0.5/src/go'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/srv/zabbix5arm/zabbix5-14-attemp1/zabbix-5.0.5/src'
    make: *** [all-recursive] Error 1


    I am using go language version 1.13.8 which I got from https://golang.org/dl/ https://golang.org/dl/go1.13.8.linux-armv6l.tar.gz this GO version compiles and runs fine but it is 32bits, I also tried using the arm64 version but this one does not runs on my system. Sorry I am not totally familiar with ARM arch versions.


    According to my "ignorance" (knowledge) I am having a 32 - 64 bits issue, Is there any way to overcome this error ?

    Thank you
Working...