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

Build failed in HP-UX when linking without HAVE_SYS_PSTAT_H platform

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Major Major
    • 6.0.2rc1, 6.2.0alpha1, 6.2 (plan)
    • 6.0.1
    • Agent (G)
    • HP-UX hpux11i3 B.11.31 U ia64 3932273393 unlimited-user license
      gcc (GCC) 4.2.3
    • Sprint 86 (Mar 2022)
    • 0.5

      Step to reproduce:

      1. Get Zabbix 6.0.1 released.
      2. ./configure --enable-agent --sysconfdir=/etc/zabbix --localstatedir=/var --with-libpcre2 --with-libpcre2-lib=/usr/local/pcre2-10.39/lib --with-libpcre2-include=/usr/local/pcre2-10.39/include --with-openssl=/usr/local/openssl-1.1.1m CC=/usr/bin/gcc
      3. make

      Result:

      Please refer to the attached file "configure_without_HAVE_SYS_PSTAT_H.log" for the execution result of configure.

       

      # make
      ... 
             ar cru libzbxagent.a libzbxagent_a-active.o  libzbxagent_a-cpustat.o  libzbxagent_a-diskdevices.o  libzbxagent_a-listener.o  libzbxagent_a-procstat.o libzbxagent_a-stats.o  libzbxagent_a-vmstats.o  libzbxagent_a-zbxconf.o  libzbxagent_a-zbxkstat.o
              ranlib libzbxagent.a
              /usr/bin/gcc -DZABBIX_DAEMON  -DDEFAULT_CONFIG_FILE="\"/etc/zabbix/zabbix_agentd.conf\""  -DDEFAULT_LOAD_MODULE_PATH="\"/usr/local/lib/modules\"" -g -O2  -I/usr/local/pcre2-10.39/include  -L/usr/local/openssl-1.1.1m/lib   -L/usr/local/pcre2-10.39/lib  -o zabbix_agentd zabbix_agentd-zabbix_agentd.o libzbxagent.a  logfiles/libzbxlogfiles.a  ../../src/libs/zbxsysinfo/libzbxagentsysinfo.a  ../../src/libs/zbxsysinfo/hpux/libspecsysinfo.a  ../../src/libs/zbxsysinfo/hpux/libspechostnamesysinfo.a  ../../src/libs/zbxsysinfo/agent/libagentsysinfo.a  ../../src/libs/zbxsysinfo/common/libcommonsysinfo.a  ../../src/libs/zbxsysinfo/common/libcommonsysinfo_httpmetrics.a  ../../src/libs/zbxsysinfo/common/libcommonsysinfo_http.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/zbxcommshigh/libzbxcommshigh.a  ../../src/libs/zbxconf/libzbxconf.a  ../../src/libs/zbxjson/libzbxjson.a  ../../src/libs/zbxcommon/libzbxcommon.a  ../../src/libs/zbxcrypto/libzbxcrypto.a  ../../src/libs/zbxexec/libzbxexec.a  ../../src/libs/zbxcompress/libzbxcompress.a  ../../src/libs/zbxmodules/libzbxmodules.a  ../../src/libs/zbxhttp/libzbxhttp.a  -lssl -lcrypto   -lm    -lpcre2-8 -liconv
      ld: Unsatisfied symbol "setproctitle_save_env" in file zabbix_agentd-zabbix_agentd.o
      1 errors.
      collect2: ld returned 1 exit status
      *** Error exit code 1 

      Expected:

      Pass build.

      Workaround:{}

      I found a way to pass build by do configure with CFLAGS="-DHAVE_SYS_PSTAT_H". This is my workaround.

        1. configure_without_HAVE_SYS_PSTAT_H.log
          21 kB
          Yuji Kamada
        2. ZBX-20692_patch
          0.4 kB
          Artjoms Rimdjonoks

            arimdjonoks Artjoms Rimdjonoks
            yuji_kamada Yuji Kamada
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: