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

Error compiling Agent2 on Linux

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Cannot Reproduce
    • Icon: Trivial Trivial
    • None
    • 7.0.1, 7.0.2
    • Agent2 plugin (N)
    • None
    • go version go1.22.5 linux/amd64
      Linux 5.15.0-208.159.3.el9uek.x86_64 #2 SMP Wed Jun 19 09:05:13 PDT 2024 x86_64 x86_64 x86_64 GNU/Linux
      Oracle Linux Server 9.4

      Compile ZabbixAgent2 with parameters and got error (problem in 7.0.0 version not exist)

      # ./configure --enable-proxy *--enable-agent2* --with-libcurl --with-sqlite3 --with-openssl --with-unixodbc --with-libxml2
      
      Making install in go
      make[2]: Entering directory '/home/zabbix/zabbix-7.0.2/src/go'
      make[3]: Entering directory '/home/zabbix/zabbix-7.0.2/src/go'
       /bin/mkdir -p '/usr/local/etc'
       /bin/install -c -m 644 conf/zabbix_agent2.conf '/usr/local/etc'
      CGO_CFLAGS="-I/usr/include  " CGO_LDFLAGS="-L/usr/lib -Wl,--start-group                 /home/zabbix/zabbix-7.0.2/src/libs/zbxalgo/libzbxalgo.a               /home/zabbix/zabbix-7.0.2/src/libs/zbxinterface/libzbxinterface.a         /home/zabbix/zabbix-7.0.2/src/libs/zbxcommon/libzbxcommon.a            /home/zabbix/zabbix-7.0.2/src/libs/zbxcomms/libzbxcomms.a             /home/zabbix/zabbix-7.0.2/src/libs/zbxcompress/libzbxcompress.a               /home/zabbix/zabbix-7.0.2/src/libs/zbxcrypto/libzbxcrypto.a                /home/zabbix/zabbix-7.0.2/src/libs/zbxexec/libzbxexec.a               /home/zabbix/zabbix-7.0.2/src/libs/zbxhash/libzbxhash.a               /home/zabbix/zabbix-7.0.2/src/libs/zbxhttp/libzbxhttp.a            /home/zabbix/zabbix-7.0.2/src/libs/zbxjson/libzbxjson.a               /home/zabbix/zabbix-7.0.2/src/libs/zbxmutexs/libzbxmutexs.a           /home/zabbix/zabbix-7.0.2/src/libs/zbxprof/libzbxprof.a            /home/zabbix/zabbix-7.0.2/src/libs/zbxnix/libzbxnix.a                 /home/zabbix/zabbix-7.0.2/src/libs/zbxregexp/libzbxregexp.a           /home/zabbix/zabbix-7.0.2/src/libs/zbxnum/libzbxnum.a                 /home/zabbix/zabbix-7.0.2/src/libs/zbxstr/libzbxstr.a              /home/zabbix/zabbix-7.0.2/src/libs/zbxfile/libzbxfile.a               /home/zabbix/zabbix-7.0.2/src/libs/zbxparam/libzbxparam.a             /home/zabbix/zabbix-7.0.2/src/libs/zbxexpr/libzbxexpr.a            /home/zabbix/zabbix-7.0.2/src/libs/zbxtime/libzbxtime.a               /home/zabbix/zabbix-7.0.2/src/libs/zbxip/libzbxip.a           /home/zabbix/zabbix-7.0.2/src/libs/zbxsysinfo/linux/libspechostnamesysinfo.a               /home/zabbix/zabbix-7.0.2/src/libs/zbxsysinfo/linux/libspecsysinfo.a          /home/zabbix/zabbix-7.0.2/src/libs/zbxsysinfo/alias/libalias.a                /home/zabbix/zabbix-7.0.2/src/libs/zbxsysinfo/common/libcommonsysinfo.a            /home/zabbix/zabbix-7.0.2/src/libs/zbxsysinfo/libzbxagent2sysinfo.a           /home/zabbix/zabbix-7.0.2/src/libs/zbxsysinfo/simple/libsimplesysinfo.a               /home/zabbix/zabbix-7.0.2/src/libs/zbxthreads/libzbxthreads.a              /home/zabbix/zabbix-7.0.2/src/libs/zbxvariant/libzbxvariant.a                 /home/zabbix/zabbix-7.0.2/src/libs/zbxxml/libzbxxml.a                 /home/zabbix/zabbix-7.0.2/src/zabbix_agent/logfiles/libzbxlogfiles.a               /home/zabbix/zabbix-7.0.2/src/zabbix_agent/active_checks/libzbxactive_checks.a                /home/zabbix/zabbix-7.0.2/src/zabbix_agent/metrics/libzbxmetrics.a            -lpthread -lm   -lpcre    -lz -lpthread -lssl -lcrypto -Wl,--end-group" \
              go build \
              -tags="pcre" \
              -ldflags="-X 'golang.zabbix.com/agent2/pkg/version.compileDate=`date +"%b %_d %Y"`' -X golang.zabbix.com/agent2/pkg/version.compileTime=`date +%H:%M:%S` -X golang.zabbix.com/agent2/pkg/version.compileOs=`go env GOOS` -X golang.zabbix.com/agent2/pkg/version.compileArch=`go env GOARCH` -X main.confDefault=/usr/local/etc/zabbix_agent2.conf -X main.applicationName=zabbix_agent2" \
              -o bin \
              golang.zabbix.com/agent2/cmd/zabbix_agent2
      vendor/google.golang.org/protobuf/internal/editiondefaults/defaults.go:11:12: *pattern editions_defaults.binpb: no matching files found*
      make[3]: *** [Makefile:625: bin/zabbix_agent2] Error 1
      make[3]: Leaving directory '/home/zabbix/zabbix-7.0.2/src/go'
      make[2]: *** [Makefile:517: install-am] Error 2
      make[2]: Leaving directory '/home/zabbix/zabbix-7.0.2/src/go'
      make[1]: *** [Makefile:503: install-recursive] Error 1
      make[1]: Leaving directory '/home/zabbix/zabbix-7.0.2/src'
      make: *** [Makefile:555: install-recursive] Error 1{*}{*}
      

            dotneft Alexey Pustovalov
            nkuzmich Микола Кузьмич
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: