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

Cannot compile using Solaris Studio

XMLWordPrintable

    • S25-W6/7, S25-W8/9
    • 1

      Using Solaris Studio it is impossible to compile Zabbix (mostly probably everything) during the following error:

      Making all in include
      Making all in src
      Making all in libs
      Making all in zbxalgo
      source='algodefs.c' object='algodefs.o' libtool=no \
      DEPDIR=.deps depmode=none /bin/sh ../../../depcomp \
      cc -DHAVE_CONFIG_H -I../../../include/common -I../../../include      -m64 -g -DZBX_OLD_SOLARIS -I/usr/include/pcre -c -o algodefs.o algodefs.c
      "../../../include/common/zbxtypes.h", line 26: #error: "C compiler is not compatible with agent2 assembly"
      cc: acomp failed for algodefs.c
      *** Error code 2
      make: Fatal error: Command failed for target `algodefs.o'
      Current working directory /zabbix-7.0.9/src/libs/zbxalgo
      *** Error code 1
      The following command caused the error:
      fail=; \
      

      File include/common/zbxtypes.h contains checks for compiler:

      if defined(HAVE_THREAD_LOCAL) && (defined(__GNUC__) || defined(__clang__) || defined(__MINGW32__))
      

      but:
      1. according error such check required only for agent2, but occur even configuring without agent2
      2. missing Oracle Solaris Studio macro: https://sourceforge.net/p/predef/wiki/OperatingSystems/

            dgoloscapov Dmitrijs Goloscapovs
            dotneft Alexey Pustovalov
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: