Subject: pkg/37483: lsof does not build
To: None <,,>
From: Per Amund Amundsen <>
List: pkgsrc-bugs
Date: 12/05/2007 18:45:00
>Number:         37483
>Category:       pkg
>Synopsis:       lsof does not build
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 05 18:45:00 +0000 2007
>Originator:     Per Amund Amundsen
>Release:        NetBSD 3.1_STABLE & NetBSD 4.0_RC5
University of Stavanger
Per Amund Amundsen                    
Department of Mathematics and Natural Science
University of Stavanger                         Tlf: (+47) 51 83 18 77
N-4036 Stavanger                                Fax: (+47) 51 83 17 50
System: NetBSD bsd-amundsen 3.1_STABLE NetBSD 3.1_STABLE (BSDA4) #11: Mon Sep 3 12:05:34 CEST 2007 pa@bsd-amundsen:/usr/src/sys/arch/i386/compile/BSDA4 i386
Architecture: i386
Machine: i386
  lsof does not build because of undefined
  variable V_ROOT introduced in version  1.12 of patch-af. 

   cd pkgsrc/sysutils/lsof

   See make failing with

   rnmh.c: In function `ncache_isroot':
   rnmh.c:262: error: `V_ROOT' undeclared (first use in this function)
   rnmh.c:262: error: (Each undeclared identifier is reported only once
   rnmh.c:262: error: for each function it appears in.)
   *** Error code 1

   make: stopped in /usr/pkgsrc/sysutils/lsof/work/lsof_4.78/lsof_4.78_src/lib
   *** Error code 1

   make: stopped in /usr/pkgsrc/sysutils/lsof/work/lsof_4.78/lsof_4.78_src
   *** Error code 1

   make: stopped in /usr/pkgsrc/sysutils/lsof
   *** Error code 1

   It seems by reading the comments in the source file lib/rnmh.c that
   the variable V_ROOT introduced in patch-af 1.12 should really be
   VROOT. With this change the program compiles and runs, hopefully