From owner-freebsd-questions@FreeBSD.ORG Wed May 26 12:17:09 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97571106566C for ; Wed, 26 May 2010 12:17:09 +0000 (UTC) (envelope-from freebsd@the-irc.org) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1CAF88FC16 for ; Wed, 26 May 2010 12:17:08 +0000 (UTC) Received: by wyj26 with SMTP id 26so1255089wyj.13 for ; Wed, 26 May 2010 05:17:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.137.21 with SMTP id u21mr8343073wbt.68.1274876226388; Wed, 26 May 2010 05:17:06 -0700 (PDT) Received: by 10.216.11.5 with HTTP; Wed, 26 May 2010 05:17:06 -0700 (PDT) In-Reply-To: <20100525200857.GJ216@comcast.net> References: <20100525200857.GJ216@comcast.net> Date: Wed, 26 May 2010 08:17:06 -0400 Message-ID: From: The-IRC FreeBSD To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Problem compiling lsof X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 May 2010 12:17:09 -0000 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);