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

illumOS / Joyent / SunOS / Solaris: unable to compile zabbix-agent2

XMLWordPrintable

      On illumos I try to compile zabbix-agent2 and I fall into this problem:

      ./configure --enable-agent2
      
      Making all in zabbix_agent2
      make[5]: Entering directory '/home/Circle/ZabbixUpgrade/zabbix-4.4.1/go/src/zabbix/cmd/zabbix_agent2'
      CGO_LDFLAGS="-Wl,--start-group  /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/zabbix_agent/logfiles/libzbxlogfiles.a         /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxcomms/libzbxcomms.a     /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxcommon/libzbxcommon.a  /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxcrypto/libzbxcrypto.a  /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxsys/libzbxsys.a         /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxnix/libzbxnix.a        /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxconf/libzbxconf.a       /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxhttp/libzbxhttp.a      /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxcompress/libzbxcompress.a       /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxregexp/libzbxregexp.a  /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxsysinfo/libzbxagentsysinfo.a    /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxsysinfo/common/libcommonsysinfo.a      /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxsysinfo/simple/libsimplesysinfo.a       /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxsysinfo/linux/libspechostnamesysinfo.a         /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxsysinfo/linux/libspecsysinfo.a  /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxexec/libzbxexec.a      /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxalgo/libzbxalgo.a       /home/Circle/ZabbixUpgrade/zabbix-4.4.1/src/libs/zbxjson/libzbxjson.a      -lkvm -lm -lnsl -lkstat -lsocket  -lresolv -lpcre -liconv               -Wl,--end-group" go build -ldflags="-X zabbix/pkg/version.titleMessage=zabbix_agentd -X 'zabbix/pkg/version.compileDate=`date +"%b %_d %Y"`' -X zabbix/pkg/version.compileTime=`date +%H:%M:%S` -X zabbix/pkg/version.compileOs=`go env GOOS` -X zabbix/pkg/version.compileArch=`go env GOARCH` -X zabbix/pkg/version.compileMode=daemon -X main.confDefault=/usr/local/etc/zabbix_agent2.conf"
      /bin/sh: line 1:  -X zabbix/pkg/version.compileTime=: not found
      /bin/sh: line 1: -X: not found
      /bin/sh: line 1: -X: not found
      /bin/sh: line 1: -X: not found
      /bin/sh: line 1: go: not found
      Makefile:526: recipe for target 'build' failed
      make[5]: *** [build] Error 127
      make[5]: Leaving directory '/home/Circle/ZabbixUpgrade/zabbix-4.4.1/go/src/zabbix/cmd/zabbix_agent2'
      Makefile:435: recipe for target 'all-recursive' failed
      make[4]: *** [all-recursive] Error 1
      make[4]: Leaving directory '/home/Circle/ZabbixUpgrade/zabbix-4.4.1/go/src/zabbix/cmd'
      Makefile:437: recipe for target 'all-recursive' failed
      make[3]: *** [all-recursive] Error 1
      make[3]: Leaving directory '/home/Circle/ZabbixUpgrade/zabbix-4.4.1/go/src/zabbix'
      Makefile:434: recipe for target 'all-recursive' failed
      make[2]: *** [all-recursive] Error 1
      make[2]: Leaving directory '/home/Circle/ZabbixUpgrade/zabbix-4.4.1/go/src'
      Makefile:434: recipe for target 'all-recursive' failed
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory '/home/Circle/ZabbixUpgrade/zabbix-4.4.1/go'
      Makefile:534: recipe for target 'all-recursive' failed
      make: *** [all-recursive] Error 1
      

      Can you have a look?

      Thanks

            vgrins Valentins Grins
            Circle Pr2
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: