Subject: compiling lsof failed
To: None <current-users@netbsd.org>
From: None <ks@ub.uni-mainz.de>
List: current-users
Date: 05/05/1999 11:17:28
hi,

just tried to compile lsof on 1.4_Beta (sources supped a few minutes
ago) and get the following:

#-12: make
===>  Building for lsof-4.41
(cd lib; make DEBUG="-O")
cc  -DNETBSDV=1000 -DHASNFSPROTO -DHASFDESCFS -DHASPROCFS -DHAS9660FS -DHASKERNFS -DHASNCVPID -DHASI_FFS -DHASEXT2FS -DHASI_E2FS -DHASNFSVATTRP -DUVM -I/wrk/pkgobj/sysutils/lsof/work/lsof_4.41/dialects/n+obsd/uvm_include -DN_UNIXV=/netbsd -DLSOF_VSTR=\"1.4_BETA\" -I/usr/include -I/sys -O  -c dvch.c
In file included from ../dlsof.h:110,
                 from ../lsof.h:70,
                 from dvch.c:43:
/sys/net/raw_cb.h:50: field `rcb_proto' has incomplete type
*** Error code 1

Stop.

applying the following patch cured the problem:


*** Configure.orig      Wed May  5 11:06:19 1999
--- Configure   Wed May  5 11:07:19 1999
***************
*** 1482,1487 ****
--- 1482,1490 ----
        1.3*)
        LSOF_VERS="1030"
        ;;
+       1.4*)
+       LSOF_VERS="1040"
+       ;;
        *)
        echo Unknown NetBSD release: `uname -r`
        echo Assuming NetBSD 1.0
***************
*** 1493,1499 ****
      # Test for legal NetBSD version.
  
      case $LSOF_VERS in        # {
!     1000|1010|1020|1030)
        ;;
      *)
        echo "Unsupported NetBSD version: $LSOF_VERS"
--- 1496,1502 ----
      # Test for legal NetBSD version.
  
      case $LSOF_VERS in        # {
!     1000|1010|1020|1030|1040)
        ;;
      *)
        echo "Unsupported NetBSD version: $LSOF_VERS"


maybe this should go into /usr/pkgsrc before releasing 1.4?

-ks