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

Fix build failure on NetBSD

XMLWordPrintable

    • Sprint 59 (Dec 2019)
    • 0.25

      Steps to reproduce:

      1. Build sysutils/zabbix package in pkgsrc on NetBSD-9.99.17

      Result:

      --- libspecsysinfo_a-proc.o ---
      proc.c: In function 'PROC_NUM':
      proc.c:301:36: error: 'LSDEAD' undeclared (first use in this function); did you mean 'SDEAD'?
            if (SZOMB == pproc->p_stat || LSDEAD == pproc->p_stat)
                                          ^~~~~~
                                          SDEAD
      proc.c:301:36: note: each undeclared identifier is reported only once for each function it appears in
      *** [libspecsysinfo_a-proc.o] Error code 1make[4]: stopped in /zpool/pkgsrc/sysutils/zabbix/work/zabbix-4.0.9/src/libs/zbxsysinfo/netbsd
      --- libspecsysinfo_a-net.o ---
      mv -f .deps/libspecsysinfo_a-net.Tpo .deps/libspecsysinfo_a-net.Po
      --- libspecsysinfo_a-software.o ---
      mv -f .deps/libspecsysinfo_a-software.Tpo .deps/libspecsysinfo_a-software.Po
      1 errormake[4]: stopped in /zpool/pkgsrc/sysutils/zabbix/work/zabbix-4.0.9/src/libs/zbxsysinfo/netbsd
      *** [all-recursive] Error code 1
      

      Expected:
      My report to [email protected] is here.

      http://mail-index.netbsd.org/pkgsrc-users/2019/11/16/msg029911.html

      NetBSD-7 and NetBSD-8 which are supported releases provides P_ZOMBIE() macro to check process is zombie or not. I can build sysutils/zabbix package after apply attached patch.

            mabele Martins Abele
            uki Yuuki Enomoto
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: