LSOF Compile Problems From Ports

Victor Gregorio victor at
Tue Apr 27 16:46:20 PDT 2004

Hello folks.  I'm wondering if anyone is getting the same error I get 
when I try to make /usr/ports/sysutils/lsof.  I have a cvsup'd 
/usr/ports tree on 5.2.1-RELEASE-p5.  Output and error below...

root:/usr/ports/sysutils/lsof# make
===>  Vulnerability check disabled
 >> lsof_4.72A.freebsd.tar.bz2 doesn't seem to exist in 
 >> Attempting to fetch from
File unavailable (e.g., file not found, no access)
 >> Attempting to fetch from
Receiving lsof_4.72A.freebsd.tar.bz2 (432436 bytes): 100%
432436 bytes transferred in 2.9 seconds (143.48 kBps)
===>  Extracting for lsof-4.71.1
 >> Checksum OK for lsof_4.72A.freebsd.tar.bz2.
===>  Patching for lsof-4.71.1
===>  Applying FreeBSD patches for lsof-4.71.1
===>  Configuring for lsof-4.71.1
rm -f ddev.c dfile.c dlsof.h dmnt.c dnode*.c dproc.c dproto.h dsock.c 
dstore.c kernelbase.h machine.h machine.h.old new_machine.h __lseek.s 
Makefile ./tests/config.cflags
rm -f ./tests/ ./tests/config.xobj ./tests/config.ldflags
ln -s dialects/freebsd/dlsof.h dlsof.h
ln -s dialects/freebsd/dmnt.c dmnt.c
ln -s dialects/freebsd/dnode.c dnode.c
ln -s dialects/freebsd/dnode1.c dnode1.c
ln -s dialects/freebsd/dproc.c dproc.c
ln -s dialects/freebsd/dproto.h dproto.h
ln -s dialects/freebsd/dsock.c dsock.c
ln -s dialects/freebsd/dstore.c dstore.c
ln -s dialects/freebsd/machine.h machine.h
Makefile and lib/Makefile created.
./tests/ created
./tests/config.cflags created
./tests/config.ldflags created
./tests/config.xobj created
===>  Building for lsof-4.71.1
(cd lib; make DEBUG="-O" CFGF="-pipe -mcpu=pentiumpro -mcpu=pentiumpro 
-DHASIPv6 -DLSOF_VSTR=\"5.2.1-RELEASE-p5\"")
cc  -pipe -mcpu=pentiumpro -mcpu=pentiumpro -DFREEBSDV=520 
-DLSOF_VSTR="5.2.1-RELEASE-p5" -I/usr/src/sys -O -c ckkv.c
In file included from ckkv.c:33:
../machine.h:54: error: syntax error before "cpumask_t"
../machine.h:54: warning: data definition has no type or storage class
*** Error code 1

Stop in /usr/ports/sysutils/lsof/work/lsof_4.72A.freebsd/lib.
*** Error code 1

Stop in /usr/ports/sysutils/lsof/work/lsof_4.72A.freebsd.
*** Error code 1

Stop in /usr/ports/sysutils/lsof.

More information about the freebsd-questions mailing list