On 06/07/13 12:17, Philip Guenther wrote:
On Fri, 7 Jun 2013, David Coppa wrote:
This change broke sysutils/lsof.
cc -DOPENBSDV=5000 -DN_UNIXV=/bsd -DHASNFSPROTO -DHASIPv6 -DHAS9660FS=1 -DHASMSDOSFS=1
-DHASI_E2FS_PTR -DHASEXT2FS=2 -DHASEFFNLINK=i_effnlink -DHAS_DINODE_U -DHASI_FFS1
-DHAS_UM_UFS -DHASNCVPID -DUVM -DHAS_UVM_INCL -DHAS_SYS_PIPEH -DHASKVMGETPROC2
-DHASKVMGETPROCS -DHAS_STRFTIME -DLSOF_VSTR=\"5.3\" -I/usr/include -I/sys -O2
-pipe -c dstore.c
dstore.c:112: error: 'FHASLOCK' undeclared here (not in a function)
*** Error 1 in /usr/ports/pobj/lsof-4.87/lsof_4.87/lsof_4.87_src (<sys.mk>:87
'dstore.o')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2643
'/usr/ports/pobj/lsof-4.87/.build_done')
*** Error 1 in /usr/ports/sysutils/lsof
(/usr/ports/infrastructure/mk/bsd.port.mk:2372 'build')
Just delete the
{ (long)FHASLOCK, FF_HASLOCK },
line from dstore.c, or maybe wrap it in "#if defined(FHASHLOCK)" like
FMARK and FDEFER are.
Philip
I just deleted it and lsof built. Something in kde4 (qt4, I believe)
wants it, so now my "make package" of kde4 can continue.
BTW, excellent timing with your fix... you sent it within *minutes* of
my running into that problem.
--
Scott McEachern
https://www.blackstaff.ca
"Those who would give up essential liberty to purchase a little temporary safety
deserve neither liberty nor safety." -- Benjamin Franklin