Subject: pkg/35243: sysutils/whowatch fails to build on netbsd-4 (patch included)
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: dhowland@users.sourceforge.net <dhowland@users.sourceforge.net>
List: pkgsrc-bugs
Date: 12/13/2006 01:20:01
>Number: 35243
>Category: pkg
>Synopsis: sysutils/whowatch fails to build on netbsd-4 (patch included)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 13 01:20:00 +0000 2006
>Originator: dhowland@users.sourceforge.net
>Release: NetBSD 4.99.5 i386
>Organization:
>Environment:
System: NetBSD 4.99.5 (GENERIC) #1: Wed Dec 6 11:56:19 EST 2006
root@micron:/usr/4.99/obj/sys/arch/i386/compile/GENERIC
>Description:
sysutils/whowatch fails to build on netbsd-4
for an example, see the build build result at:
ftp://ftp.netbsd.org/pub/pkgsrc/misc/kristerw/pkgstat/i386-current/20061123.0805/sysutils/whowatch/.broken.html
>How-To-Repeat:
cd /usr/pkgsrc/sysutils/whowatch && make
>Fix:
This simple patch will fix the build error.
I tested it on NetBSD-3.0.1 and NetBSD-current ( -D20061204-UTC )
Compiles and runs fine.
diff -u process.c.orig process.c
--- process.c.orig 2006-12-12 19:39:14.000000000 -0500
+++ process.c 2006-12-12 19:38:11.000000000 -0500
@@ -74,7 +74,11 @@
memset(z, 0, sizeof *z);
check_line(l);
z->line = l++;
+#if defined(__NetBSD__)
+ p->priv = z;
+#else
(struct process *) p->priv = z;
+#endif
z->proc = p;
if (*current){
z->next = *current;