pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sysutils/zabbix build failed on NetBSD-9.99.17


I am pkgsrc-current user. sysutils/zabbix build failed in
NetBSD-9.99.17 amd64. Error message is

--- 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)
proc.c:301:36: note: each undeclared identifier is reported only once for each function it appears in
*** [libspecsysinfo_a-proc.o] Error code 1

make[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 error

make[4]: stopped in /zpool/pkgsrc/sysutils/zabbix/work/zabbix-4.0.9/src/libs/zbxsysinfo/netbsd
*** [all-recursive] Error code 1

This error happens in conditional statement that checks process is
zombie or not. I have a patch that replace to P_ZOMBIE() macro.
Build was success.

I'll report the issue to if the solution is
correct. Is there anyone who can review the patch and commit to
pkgsrc? (I have no right of commit to pkgsrc)

Thank you,
Yuuki Enomoto <>
B684 4BF2 9CD4 961F 510A  8121 7B4D FF44 2348 20B8

--- src/libs/zbxsysinfo/netbsd/proc.c.orig	2019-06-07 07:18:53.000000000 +0000
+++ src/libs/zbxsysinfo/netbsd/proc.c
@@ -298,7 +298,7 @@ int	PROC_NUM(AGENT_REQUEST *request, AGE
 						stat_ok = 1;
-					if (SZOMB == pproc->p_stat || LSDEAD == pproc->p_stat)
+					if (P_ZOMBIE(pproc))
 						stat_ok = 1;

Attachment: signature.asc
Description: PGP signature

Home | Main Index | Thread Index | Old Index