Subject: pkg/33644: lsof-4.76.3.99.20, sys/lockf.h
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Auster <lrou@rtk0.lneuro.x.ua>
List: pkgsrc-bugs
Date: 06/04/2006 18:50:00
>Number:         33644
>Category:       pkg
>Synopsis:       sysutils/lsof: error building on current (sys/lockf.h rev-1.18)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 04 18:50:00 +0000 2006
>Originator:     Auster
>Release:        NetBSD 3.99.20
>Organization:
	
>Environment:
System: NetBSD lrou.x.ua 3.99.20 NetBSD 3.99.20 (lrou-1.752) #0: Sat Jun 3 15:53:08 EEST 2006 yx@lrou.x.ua:/usr/src/sys/arch/i386/compile/lrou i386
Architecture: i386
Machine: i386
>Description:
	can't build sysutils/lsof on current with sys/lockf.h revision 1.18.

>How-To-Repeat:
	# uname -sr
	NetBSD 3.99.20
	# cd /usr/pkgsrc/sysutils/lsof
	# make
	...
	cc -O2  -DNETBSDV=3099000 -DHASGETBOOTFILE -DHASKVMGETPROC2 -DHASNFSPROTO -DHASIPv6 -DHASFDESCFS=1 -DHASFDLINK -DHASNULLFS -DHASPROCFS -DHASPROCFS_PFSROOT -DHASBUFQ_H -DHAS9660FS=1 -DHASMSDOSFS=1 -DHASKERNFS -DHASKERNFS_KFS_KT -DHASI_FFS1 -DHASEFFNLINK=i_ffs_effnlink -DHASEXT2FS -DHASI_E2FS_PTR -DHASLFS -DHASPTYFS -DHASNFSVATTRP -DHAS_ADVLOCK_ARGS -DHAS_LWP_H -DHASCWDINFO -DHAS_SYS_PIPEH -DHASSTATVFS -DUVM -I/usr/obj/sysutils/lsof/work/lsof_4.76/lsof_4.76_src/dialects/n+obsd/include -DHAS_UVM_INCL -DLSOF_VSTR=\"3.99.20\"  -O -DLSOF_MORE_SECURE=0 -DLSOF_LESS_SECURE_SOCKETS=0 -c dnode.c
	dnode.c: In function `process_node':
	dnode.c:186: error: storage size of `lf' isn't known
	*** Error code 1

	Stop.
	...

>Fix:
	return `struct lockf' implementation from kern/vfs_lockf.c to sys/lockf.h