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

round() undefined in Solaris 9 8/03 (SPARC), linking fails

XMLWordPrintable

    • Sprint 51 (Apr 2019), Sprint 52 (May 2019)
    • 0.5

      Steps to reproduce:

      1. I configured with by pointing to additional lib-dirs:

      LDFLAGS="-L/opt/csw/lib/sparcv9 -L/.SUNWnative/lib/sparcv9" ./configure --enable-agent

      1. run make

      Result:

      Linking zabbix_agentd fails:

      gcc -DHAVE_CONFIG_H -I. -I../../include    -DZABBIX_DAEMON -DSYSCONFDIR="\"/usr/local/etc\"" -DLIBDIR="\"/usr/local/lib\"" -g -O2 -MT zabbix_agentd-zabbix_agentd.o -MD -MP -MF .deps/zabbix_agentd-zabbix_agentd.Tpo -c -o zabbix_agentd-zabbix_agentd.o `test -f 'zabbix_agentd.c' || echo './'`zabbix_agentd.c
      mv -f .deps/zabbix_agentd-zabbix_agentd.Tpo .deps/zabbix_agentd-zabbix_agentd.Po
      gcc -DZABBIX_DAEMON -DSYSCONFDIR="\"/usr/local/etc\"" -DLIBDIR="\"/usr/local/lib\"" -g -O2  -L/opt/csw/lib/sparcv9 -L/.SUNWnative/lib/sparcv9  -o zabbix_agentd zabbix_agentd-active.o zabbix_agentd-stats.o zabbix_agentd-cpustat.o zabbix_agentd-diskdevices.o zabbix_agentd-vmstats.o zabbix_agentd-logfiles.o zabbix_agentd-zbxconf.o zabbix_agentd-listener.o zabbix_agentd-procstat.o zabbix_agentd-zabbix_agentd.o ../../src/libs/zbxsysinfo/libzbxagentsysinfo.a ../../src/libs/zbxsysinfo/solaris/libspecsysinfo.a ../../src/libs/zbxsysinfo/solaris/libspechostnamesysinfo.a ../../src/libs/zbxsysinfo/agent/libagentsysinfo.a ../../src/libs/zbxsysinfo/common/libcommonsysinfo.a ../../src/libs/zbxsysinfo/simple/libsimplesysinfo.a ../../src/libs/zbxlog/libzbxlog.a ../../src/libs/zbxregexp/libzbxregexp.a ../../src/libs/zbxalgo/libzbxalgo.a ../../src/libs/zbxsys/libzbxsys.a ../../src/libs/zbxnix/libzbxnix.a ../../src/libs/zbxcomms/libzbxcomms.a ../../src/libs/zbxconf/libzbxconf.a ../../src/libs/zbxcommon/libzbxcommon.a ../../src/libs/zbxcrypto/libzbxcrypto.a ../../src/libs/zbxjson/libzbxjson.a ../../src/libs/zbxexec/libzbxexec.a ../../src/libs/zbxmodules/libzbxmodules.a ../../src/libs/zbxself/libzbxself.a     -lkvm -lm -ldl -lrt -lnsl -lkstat -lsocket  -lresolv -liconv
      Undefined                       first referenced
       symbol                             in file
      round                               zabbix_agentd-procstat.o
      ld: fatal: Symbol referencing errors. No output written to zabbix_agentd
      collect2: ld returned 1 exit status
      make[2]: *** [zabbix_agentd] Error 1
      make[2]: Leaving directory `/zabbix-3.0.26/src/zabbix_agent'
      make[1]: *** [install-recursive] Error 1
      make[1]: Leaving directory `/zabbix-3.0.26/src'
      make: *** [install-recursive] Error 1

      I would transform this into a one liner:

      Undefined symbol round first referenced }}{{in file }}{{zabbix_agentd-procstat.o

      Expected:
      Compilation should succeed.

            ak Andrejs Kozlovs
            saulius.krasuckas@telia.lt Saulius Krasuckas
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: