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

Zabbix Agent 2 Makefile issue

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • 5.4 (plan)
    • 5.0.7
    • Agent (G)
    • SLES 12 SP3
      Make 4.0
      go 1.14
      bash 4.3.48
    • Sprint 72 (Jan 2021), Sprint 73 (Feb 2021)
    • 0.125

      I cannot reproduce it in my lab, but there are some precarious places in Makefiles for Zabbix Agent 2. You define GOOS and GOARCH vars with next expressions:

      GOOS = `go env GOOS`

      GOARCH = `go env GOARCH`

      But `bla bla bla` syntax is deprecated, so in my environment build fails with error

      cmd/go: unsupported GOOS/GOARCH pair `go env GOOS`/`go env GOARCH` thougth vars are defined to "linux" and "amd64" respectively and go env show them.

      But, if I change definitions to $() syntax like:

      GOOS = $(go env GOOS)

      GOARCH = $(go env GOARCH)

      All works as expected. Maybe it's my environment issue, but I guess you better use modern syntax.

            esneiders Eriks Sneiders
            asand3r Khatsayuk Alexander
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: