lsof doesn't install from ports [FreeBSD 8.2-STABLE]

Gritsuk Anton gnixua at
Wed Apr 20 17:49:16 UTC 2011


I have problem with installation lsof from ports tree!

Error looks something like this:
  # make clean install clean
===>  Cleaning for lsof-4.85C_1,5
===>  License check disabled, port has not defined LICENSE
===>  Extracting for lsof-4.85C_1,5
=> SHA256 Checksum OK for lsof_4.85C.freebsd.tar.bz2.
===>  Patching for lsof-4.85C_1,5
===>  Configuring for lsof-4.85C_1,5
Creating ./lockf_owner.h from /usr/src/sys/kern/kern_lockf.c
./lockf_owner.h creation succeeded.
rm -f ddev.c dfile.c dlsof.h dmnt.c dnode*.c dproc.c dproto.h dsock.c 
dstore.c dzfs.h kernelbase.h machine.h machine.h.old new_machine.h 
__lseek.s Makefile Makefile.zfs ./tests/config.cflags
rm -f ./tests/ ./tests/config.xobj ./tests/config.ldflags
Testing C library for localtime() and strftime(), using cc ... present
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/dnode2.c dnode2.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/dzfs.h dzfs.h
ln -s dialects/freebsd/machine.h machine.h
Makefile and lib/Makefile created.
Makefile.zfs created.
./tests/ created
./tests/config.cflags created
./tests/config.ldflags created
./tests/config.xobj created
===>  Building for lsof-4.85C_1,5
(cd lib; make DEBUG="-O2" CFGF="-pipe -fno-strict-aliasing 
cc  -pipe -fno-strict-aliasing -DHASEFFNLINK=i_effnlink -DHASF_VNODE 
-DLSOF_VSTR="8.2-STABLE" -I/usr/src/sys -O2 -c ckkv.c
In file included from ../dlsof.h:412,
                  from ../lsof.h:195,
                  from ckkv.c:43:
/usr/src/sys/sys/user.h:92:2: error: #error "Unknown architecture"
*** Error code 1

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

Stop in /usr/ports/sysutils/lsof/work/lsof_4.85C.freebsd.
*** Error code 1

Stop in /usr/ports/sysutils/lsof.

plz, investigate my problem.

Info from my PC:
# uname -srm
FreeBSD 8.2-STABLE i386

Userland and src are in sync.

best regards,

More information about the freebsd-ports mailing list