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

Zabbix Agent 2 Makefile issue

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: