Subject: pkg/9305: lsof doesn't build
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Michael.Eriksson@era-t.ericsson.se>
List: netbsd-bugs
Date: 01/27/2000 12:18:44
>Number:         9305
>Category:       pkg
>Synopsis:       lsof doesn't build
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 27 12:18:01 2000
>Last-Modified:
>Originator:     Michael Eriksson
>Organization:
Ericsson Radio Systems AB
>Release:        today's pkgsrc
>Environment:
System: NetBSD kafka 1.4Q NetBSD 1.4Q (KAFKA) #0: Mon Jan 24 21:51:08 CET 2000 eramore@kafka:/usr/src/sys/arch/i386/compile/KAFKA i386


>Description:

The lsof package doesn't build on -current since the change of
/sys/ufs/mfs/mfsnode.h to version 1.7.

>How-To-Repeat:

Try to build lsof, and watch it fail with:

cc  -DNETBSDV=1040 -DHASNFSPROTO -DHASIPv6 -DHASFDESCFS -DHASPROCFS -DHAS9660FS -DHASKERNFS -DHASNCVPID -DHASI_FFS -DHASEXT2FS -DHASI_E2FS -DHASNFSVATTRP -DUVM -I/tmp/pkgobj/sysutils/lsof/work/lsof_4.46/dialects/n+obsd/uvm_include -DHASCWDINFO -DN_UNIXV=/netbsd -DLSOF_VSTR=\"1.4Q\" -I/usr/include -I/sys -O  -c dvch.c
In file included from ../dlsof.h:137,
                 from ../lsof.h:167,
                 from dvch.c:43:
/usr/include/ufs/mfs/mfsnode.h:47: field `mfs_buflist' has incomplete type

>Fix:

Index: files/patch-sum
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/lsof/files/patch-sum,v
retrieving revision 1.1
diff -u -r1.1 patch-sum
--- patch-sum	1999/07/09 14:23:09	1.1
+++ patch-sum	2000/01/27 19:51:43
@@ -1,5 +1,5 @@
 $NetBSD: patch-sum,v 1.1 1999/07/09 14:23:09 agc Exp $
 
 MD5 (patch-aa) = 8c448eb7fd03b4aca221e545087c61f2
-MD5 (patch-ab) = 1f657b8c2435208dca3cd5602a38893f
+MD5 (patch-ab) = 8002c8af206c6ddefc011c3516f89191
 MD5 (patch-ac) = 1b1d95ffdc0b649ec33c93e504d6b405
Index: patches/patch-ab
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/lsof/patches/patch-ab,v
retrieving revision 1.7
diff -u -r1.7 patch-ab
--- patch-ab	1999/05/05 17:40:37	1.7
+++ patch-ab	2000/01/27 19:51:43
@@ -1,8 +1,16 @@
 $NetBSD: patch-ab,v 1.7 1999/05/05 17:40:37 bad Exp $
 
---- dialects/n+obsd/dlsof.h.orig	Mon Mar 29 14:15:29 1999
-+++ dialects/n+obsd/dlsof.h	Wed May  5 19:20:17 1999
-@@ -176,16 +176,28 @@
+--- dialects/n+obsd/dlsof.h.orig	Fri Oct 22 15:22:37 1999
++++ dialects/n+obsd/dlsof.h	Thu Jan 27 20:31:06 2000
+@@ -47,6 +47,7 @@
+ #include <unistd.h>
+ #include <sys/filedesc.h>
+ #include <sys/mbuf.h>
++#include <sys/buf.h>
+ #define	NFS
+ #define m_stat	mnt_stat
+ #include <sys/mount.h>
+@@ -182,16 +183,28 @@
  #undef	KERNEL
  #undef	_KERNEL
  
@@ -31,4 +39,4 @@
 +#include <sys/sysctl.h>
  
  # if	defined(OPENBSDV)
- #include <sys/pipe.h>
+ #  if	OPENBSDV==2030 && defined(__sparc__)

>Audit-Trail:
>Unformatted: