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

zabbix agent2 doesn't compile on FreeBSD13

    XMLWordPrintable

Details

    • Incident report
    • Status: Confirmed
    • Trivial
    • Resolution: Unresolved
    • 6.2.2
    • None
    • None
    • OPNsense 22.1.10_4-amd64
      FreeBSD 13.0-STABLE
      go version go1.19.1 freebsd/amd64

    Description

      Steps to reproduce:

      1. install OPNsense (or FreeBSD)
      2. Download and configure go (enviroment)
      3. download and extract Zabbix sources
      4. try to compile zabbix-agent2
        1. ./configure --enable-agent2 && make install

      Result:

       

      Making install in include
      Making install in src
      Making install in libs
      Making install in zbxalgo
      Making install in zbxcommon
      Making install in zbxcomms
      Making install in zbxcommshigh
      Making install in zbxcompress
      Making install in zbxconf
      Making install in zbxcrypto
      Making install in zbxdbschema
      Making install in zbxdiscovery
      Making install in zbxexec
      Making install in zbxgetopt
      Making install in zbxhash
      Making install in zbxhttp
      Making install in zbxipcservice
      Making install in zbxjson
      Making install in zbxlog
      Making install in zbxmodules
      Making install in zbxmutexs
      Making install in zbxnix
      Making install in zbxregexp
      Making install in zbxsysinfo
      Making install in agent
      Making install in alias
      Making install in common
      Making install in simple
      Making install in freebsd
      Making install in zbxthreads
      Making install in zbxvariant
      Making install in zbxxml
      Making install in zabbix_agent
      Making install in logfiles
       ../.././install-sh -c -d '/usr/local/sbin'
        /usr/bin/install -c zabbix_agentd '/usr/local/sbin'
      make  install-data-hook
      ../.././install-sh -c -d "/usr/local/etc/zabbix_agentd.conf.d"
      ../.././install-sh -c -d "/usr/local/lib/modules"
      test -f "/usr/local/etc/zabbix_agentd.conf" || cp "../../conf/zabbix_agentd.conf" "/usr/local/etc/zabbix_agentd.conf"
      Making install in go
       ../.././install-sh -c -d '/usr/local/etc'
       /usr/bin/install -c -m 644 conf/zabbix_agent2.conf '/usr/local/etc'
      CGO_CFLAGS="-I/usr/local/include" CGO_LDFLAGS="-Wl,--start-group                /root/src/zabbix-6.2.2/src/zabbix_agent/logfiles/libzbxlogfiles.a               /root/src/zabbix-6.2.2/src/libs/zbxalgo/libzbxalgo.a            /root/src/zabbix-6.2.2/src/libs/zbxcommon/libzbxcommon.a                /root/src/zabbix-6.2
      .2/src/libs/zbxhash/libzbxhash.a                /root/src/zabbix-6.2.2/src/libs/zbxcomms/libzbxcomms.a          /root/src/zabbix-6.2.2/src/libs/zbxcompress/libzbxcompress.a            /root/src/zabbix-6.2.2/src/libs/zbxconf/libzbxconf.a            /root/src/zabbix-6.2.2/src/libs/zbxcrypto/libzbxcrypto.a           /
      root/src/zabbix-6.2.2/src/libs/zbxexec/libzbxexec.a             /root/src/zabbix-6.2.2/src/libs/zbxhttp/libzbxhttp.a            /root/src/zabbix-6.2.2/src/libs/zbxjson/libzbxjson.a            /root/src/zabbix-6.2.2/src/libs/zbxvariant/libzbxvariant.a              /root/src/zabbix-6.2.2/src/libs/zbxnix/libzbxnix.a /
      root/src/zabbix-6.2.2/src/libs/zbxregexp/libzbxregexp.a                 /root/src/zabbix-6.2.2/src/libs/zbxthreads/libzbxthreads.a              /root/src/zabbix-6.2.2/src/libs/zbxmutexs/libzbxmutexs.a                /root/src/zabbix-6.2.2/src/libs/zbxsysinfo/freebsd/libspechostnamesysinfo.a             /root/src/za
      bbix-6.2.2/src/libs/zbxsysinfo/freebsd/libspecsysinfo.a                 /root/src/zabbix-6.2.2/src/libs/zbxsysinfo/common/libcommonsysinfo.a            /root/src/zabbix-6.2.2/src/libs/zbxsysinfo/libzbxagent2sysinfo.a                /root/src/zabbix-6.2.2/src/libs/zbxsysinfo/simple/libsimplesysinfo.a            /roo
      t/src/zabbix-6.2.2/src/libs/zbxsysinfo/alias/libalias.a                 /root/src/zabbix-6.2.2/src/libs/zbxxml/libzbxxml.a              -lkvm -lm -ljail -lexecinfo -ldevstat   -lpcre -liconv     -Wl,--end-group" GOBIN=/usr/local/sbin  go install -ldflags="-X 'zabbix.com/pkg/version.compileDate=`date +"%b %_d %Y"`' 
      -X  zabbix.com/pkg/version.compileTime=`date +%H:%M:%S` -X zabbix.com/pkg/version.compileOs=`go env GOOS`  -X zabbix.com/pkg/version.compileArch=`go env GOARCH` -X  main.confDefault=/usr/local/etc/zabbix_agent2.conf -X  main.applicationName=zabbix_agent2" zabbix.com/cmd/zabbix_agent2  
      package zabbix.com/cmd/zabbix_agent2
              imports zabbix.com/plugins: build constraints exclude all Go files in /root/src/zabbix-6.2.2/src/go/plugins
      *** Error code 1
      
      Stop.
      make[3]: stopped in /root/src/zabbix-6.2.2/src/go
      *** Error code 1
      
      Stop.
      make[2]: stopped in /root/src/zabbix-6.2.2/src/go
      *** Error code 1
      
      Stop.
      make[1]: stopped in /root/src/zabbix-6.2.2/src
      *** Error code 1
      
      Stop.
      make: stopped in /root/src/zabbix-6.2.2
      

       

      Expected:
      a working make install

      Attachments

        Activity

          People

            zabbix.dev Zabbix Development Team
            shad0w Stefan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: