Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 May 2010 08:17:06 -0400
From:      The-IRC FreeBSD <freebsd@the-irc.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Problem compiling lsof
Message-ID:  <AANLkTinFdOyawQoCWATuXEa210ir0lvGvPvSZUoFb-QT@mail.gmail.com>
In-Reply-To: <20100525200857.GJ216@comcast.net>
References:  <AANLkTilMRpsYVILzFcLub6uW11ekjGpS6gSBNvmX5x0J@mail.gmail.com> <20100525200857.GJ216@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
I personally just synced my servers Kernel and Userland to current via cvsup
on a live system and still get same issue as discussed here for unknown
reasons.

FreeBSD Alpha.The-IRC.Com 8.0-STABLE FreeBSD 8.0-STABLE

===>  Vulnerability check disabled, database not found
===>  Extracting for lsof-4.83B,4
=> MD5 Checksum OK for lsof_4.83B.freebsd.tar.bz2.
=> SHA256 Checksum OK for lsof_4.83B.freebsd.tar.bz2.
===>  Patching for lsof-4.83B,4
===>  Configuring for lsof-4.83B,4
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/config.cc ./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/config.cc created
./tests/config.cflags created
./tests/config.ldflags created
./tests/config.xobj created
===>  Building for lsof-4.83B,4
(cd lib; make DEBUG="-O2" CFGF="-pipe -fno-strict-aliasing
-DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHASSBSTATE -DHAS_KVM_VNODE
-DHAS_UFS1_2 -DHAS_CDEV2PRIV -DHAS_NO_SI_UDEV -DHAS_SYS_SX_H -DHAS_ZFS
-DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DHAS_NO_6PORT -DHAS_NO_6PPCB
-DFREEBSDV=8000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS -DHASIPv6
-DHAS_STRFTIME -DLSOF_VSTR=\"8.0-STABLE\"")
cc  -pipe -fno-strict-aliasing -DHASEFFNLINK=i_effnlink -DHASF_VNODE
-DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_CDEV2PRIV -DHAS_NO_SI_UDEV
-DHAS_SYS_SX_H -DHAS_ZFS -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DHAS_NO_6PORT
-DHAS_NO_6PPCB -DFREEBSDV=8000 -DHASFDESCFS=2 -DHASPSEUDOFS -DHASNULLFS
-DHASIPv6 -DHAS_STRFTIME -DLSOF_VSTR="8.0-STABLE" -I/usr/src/sys -O2 -c
ckkv.c
In file included from ../dlsof.h:81,
                 from ../lsof.h:195,
                 from ckkv.c:43:
/usr/src/sys/sys/conf.h:141: error: expected declaration specifiers or '...'
before 'vm_memattr_t'
*** Error code 1

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

Stop in /usr/ports/sysutils/lsof/work/lsof_4.83B.freebsd.
*** Error code 1



[root@Alpha /usr/ports/sysutils/lsof]# cat /etc/make.conf
IPFW2=TRUE
WITHOUT_X11_LIBS=NO
OPENSSL_OVERWRITE_PORT=yes
KERNCONF=TIHS
WITHOUT_JAVA=yes
PERL_VER=5.10.1
PERL_VERSION=5.10.1
# added by use.perl 2010-05-18 19:41:32
PERL_VERSION=5.8.9
BATCH=YES
WITHOUT_X11=YES
SKIP_DNS_CHECK=YES
CRYPT_DES=0
WITH_PORT_REPLACES_BASE_BIND8=YES
WITH_PORT_REPLACES_BASE_BIND9=YES
WITHOUT_ALT_CONFIG_PREFIX=YES
WITH_OPENSSL_PORT=YES
X11BASE=${LOCALBASE}



[root@Alpha /usr/ports/sysutils/lsof]# cat /etc/profile
if [ -f ~/README ]; then
    cat ~/README
fi

export EDITOR=nano
alias nano='nano -w'
#export PATH=$PATH:/usr/local/svn/bin
CLICOLOR="YES";    export CLICOLOR
LSCOLORS="ExGxFxdxCxDxDxhbadExEx";    export LSCOLORS
#CFLAGS="-DBIG_SECURITY_HOLE"



[root@Alpha /usr/ports/sysutils/lsof]# grep vm_memattr_t
/usr/include/sys/conf.h
                     int nprot, vm_memattr_t *memattr);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinFdOyawQoCWATuXEa210ir0lvGvPvSZUoFb-QT>