Subject: pkg/10706: pkgsrc lsof doesn't compile after a cleanup of /usr/include
To: None <gnats-bugs@gnats.netbsd.org>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: netbsd-bugs
Date: 07/29/2000 00:16:16
>Number: 10706
>Category: pkg
>Synopsis: lsof doesn't build after a cleanup of /usr/include
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jul 29 00:17:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Wolfgang Rupprecht
>Release: Jul 26 2000
>Organization:
W S Rupprecht Computer Consulting, Fremont CA
>Environment:
System: NetBSD capsicum.wsrcc.com 1.5C NetBSD 1.5C (WSRCC) #0: Wed Jul 26 23:02:08 PDT 2000 wolfgang@capsicum.wsrcc.com:/v/src/netbsd/NetBSD-current/usr/src/sys/arch/i386/compile/WSRCC i386
>Description:
lsof doesn't build after a cleanup of /usr/include
>How-To-Repeat:
/bin/rm -rf /usr/include
cd /usr/src
make build
<go out for half a dozen beers>
cd /usr/pkgsrc/sysutils/lsof
make build
cc -DNETBSDV=1050 -DHASNFSPROTO -DHASIPv6 -DHASFDESCFS=1 -DHASFDLINK -DHASPROCFS -DHAS9660FS -DHASKERNFS -DHASNCVPID -DHASI_FFS -DHASEXT2FS -DHASI_E2FS -DHASNFSVATTRP -DUVM -I/v/obj/pkgsrc/sysutils/lsof/work/lsof_4.50/dialects/n+obsd/uvm_include -DHASCWDINFO -DN_UNIXV=/netbsd -DLSOF_VSTR="1.5C" -I/usr/include -I/sys -O -c dvch.c
In file included from ../lsof.h:167,
from dvch.c:43:
../dlsof.h:200: vm/vm.h: No such file or directory
../dlsof.h:201: vm/vm_map.h: No such file or directory
../dlsof.h:202: vm/vm_object.h: No such file or directory
../dlsof.h:203: vm/vm_pager.h: No such file or directory
*** Error code 1
Stop.
I guess nobody ever tried to clean up all the accumulated crap in
their their /usr/include. ;-)
>Fix:
I think this is all that is needed (and it certainly seems to work).
cd /usr/pkgsrc/sysutils/lsof/work/lsof_4.50/dialects/n+obsd/
diff -u /usr/pkgsrc/sysutils/lsof/work/lsof_4.50/dialects/n\+obsd/dlsof.h.\~1\~ /usr/pkgsrc/sysutils/lsof/work/lsof_4.50/dialects/n\+obsd/dlsof.h
--- /usr/pkgsrc/sysutils/lsof/work/lsof_4.50/dialects/n+obsd/dlsof.h.~1~ Thu Jun 22 05:55:29 2000
+++ /usr/pkgsrc/sysutils/lsof/work/lsof_4.50/dialects/n+obsd/dlsof.h Fri Jul 28 23:59:59 2000
@@ -197,10 +197,10 @@
#include <uvm/uvm.h>
# endif /* defined(UVM) */
-#include <vm/vm.h>
-#include <vm/vm_map.h>
-#include <vm/vm_object.h>
-#include <vm/vm_pager.h>
+#include <uvm/uvm.h>
+#include <uvm/uvm_map.h>
+#include <uvm/uvm_object.h>
+#include <uvm/uvm_pager.h>
# if defined(OPENBSDV)
# if OPENBSDV==2030 && defined(__sparc__)
Diff finished at Sat Jul 29 00:03:30
>Release-Note:
>Audit-Trail:
>Unformatted: