From owner-freebsd-stable@FreeBSD.ORG Sat Mar 1 12:54:44 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0AA543B6 for ; Sat, 1 Mar 2014 12:54:44 +0000 (UTC) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3DCB611C9 for ; Sat, 1 Mar 2014 12:54:43 +0000 (UTC) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.14.7/8.14.7) with ESMTP id s21Csdwn072054 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 1 Mar 2014 13:54:39 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.14.7/8.14.7/Submit) with ESMTP id s21CsaHa072049; Sat, 1 Mar 2014 13:54:36 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Sat, 1 Mar 2014 13:54:36 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: FreeBSD stable Subject: Re: Unable to compile sysutils/lsof on stable/9 r262601 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="2055831798-1424100496-1393678479=:71711" X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mail.fig.ol.no X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Mar 2014 12:54:44 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --2055831798-1424100496-1393678479=:71711 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT On Sat, 1 Mar 2014 13:32+0100, Trond Endrestøl wrote: > Hi, > > Does anyone else have a problem compiling sysutils/lsof on stable/9? > > Mine, at r262601, bombs out with: > > ===> Building for lsof-4.88.e_1,8 > > (cd lib; /usr/bin/make DEBUG="-O2" CFGF="-pipe -fno-omit-frame-pointer > -fstack-protector -fno-strict-aliasing -fno-omit-frame-pointer > -DHASTASKS -DHASEFFNLINK=i_effnlink -DHASF_VNODE -DHASWCTYPE_H > -DHASSBSTATE -DHAS_KVM_VNODE -DHAS_UFS1_2 -DHAS_VM_MEMATTR_T > -DHAS_CDEV2PRIV -DHAS_NO_SI_UDEV -DHAS_SYS_SX_H -DHAS_ZFS > -DHAS_V_LOCKF -DHAS_LOCKF_ENTRY -DHAS_NO_6PORT -DHAS_NO_6PPCB > -DNEEDS_BOOLEAN_T -DFREEBSDV=9000 -DHASFDESCFS=2 -DHASPSEUDOFS > -DHASNULLFS -DHASIPv6 -DHASUTMPX -DHAS_STRFTIME > -DLSOF_VSTR=\"9.2-STABLE\"") > > gcc -pipe -fno-omit-frame-pointer -fstack-protector > -fno-strict-aliasing -fno-omit-frame-pointer -DFREEBSDV=9000 -DHAS_ZFS > -DHAS_V_LOCKF -D_SOLARIS_C_SOURCE -O2 > -I/usr/src/sys/cddl/compat/opensolaris > -I/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs > -I/usr/src/sys/cddl/contrib/opensolaris/uts/common/zmod > -I/usr/src/sys/cddl/contrib/opensolaris/uts/common > -I/usr/src/sys/cddl/contrib/opensolaris/common/zfs > -I/usr/src/sys/cddl/contrib/opensolaris/common > -I/usr/ports/workdirs/usr/ports/sysutils/lsof/work/lsof_4.88E.freebsd/usr/src/include > -I`pwd` -c dnode2.c > > In file included from > /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_context.h:71, > from > /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/refcount.h:33, > from /usr/include/sys/file.h:42, > from > /usr/src/sys/cddl/compat/opensolaris/sys/file.h:32, > from > /usr/src/sys/cddl/compat/opensolaris/sys/vnode.h:49, > from > /usr/src/sys/cddl/compat/opensolaris/sys/vfs.h:37, > from > /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_vfsops.h:31, > from > /usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zfs_znode.h:33, > from dnode2.c:55: > /usr/src/sys/cddl/compat/opensolaris/sys/sdt.h:33:25: error: > opt_kdtrace.h: No such file or directory > > The /usr/src/sys/cddl/compat/opensolaris/sys/sdt.h file contains: > > #ifdef _KERNEL > #include > #endif > > whereas the same file in base/head doesn't. > > A workaround is to: > > mkdir -p $WRKDIRPREFIX/usr/ports/sysutils/lsof/work/lsof_4.88E.freebsd > touch $WRKDIRPREFIX/usr/ports/sysutils/lsof/work/lsof_4.88E.freebsd/opt_kdtrace.h > > prior to compiling the damn thing. I prepared this patch for sysutils/lsof/Makefile: --- Makefile.orig 2013-11-08 07:52:46.422242305 +0100 +++ Makefile 2014-03-01 13:48:48.234052257 +0100 @@ -55,8 +55,8 @@ IGNORE= requires kernel sources .endif -.if !defined(FIXUP_RELEASE) post-extract: +.if !defined(FIXUP_RELEASE) @( cd ${WRKDIR}/${DISTNAME} ; \ EXPMD5=`${SED} -n 's/^[[:blank:]]*\(MD5*=*\)/\1/p' README.${DISTNAME}` ; \ CALCMD5=`${MD5} ${SRCBALL_NAME}.tar` ; \ @@ -69,6 +69,7 @@ ) @( cd ${WRKSRC} ; ${ECHO_CMD} "y" | ./Inventory || exit 1 ) .endif + @( touch ${WRKSRC}/opt_kdtrace.h || exit 1 ) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/lsof ${STAGEDIR}${PREFIX}/sbin -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ --2055831798-1424100496-1393678479=:71711 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=Makefile.diff Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Patch for sysutils/lsof/Makefile Content-Disposition: attachment; filename=Makefile.diff LS0tIE1ha2VmaWxlLm9yaWcJMjAxMy0xMS0wOCAwNzo1Mjo0Ni40MjIyNDIz MDUgKzAxMDANCisrKyBNYWtlZmlsZQkyMDE0LTAzLTAxIDEzOjQ4OjQ4LjIz NDA1MjI1NyArMDEwMA0KQEAgLTU1LDggKzU1LDggQEANCiBJR05PUkU9CQly ZXF1aXJlcyBrZXJuZWwgc291cmNlcw0KIC5lbmRpZg0KIA0KLS5pZiAhZGVm aW5lZChGSVhVUF9SRUxFQVNFKQ0KIHBvc3QtZXh0cmFjdDoNCisuaWYgIWRl ZmluZWQoRklYVVBfUkVMRUFTRSkNCiAJQCggY2QgJHtXUktESVJ9LyR7RElT VE5BTUV9IDsgXA0KIAlFWFBNRDU9YCR7U0VEfSAtbiAncy9eW1s6Ymxhbms6 XV0qXChNRDUqPSpcKS9cMS9wJyBSRUFETUUuJHtESVNUTkFNRX1gIDsgXA0K IAlDQUxDTUQ1PWAke01ENX0gJHtTUkNCQUxMX05BTUV9LnRhcmAgOyBcDQpA QCAtNjksNiArNjksNyBAQA0KIAkpDQogCUAoIGNkICR7V1JLU1JDfSA7ICR7 RUNIT19DTUR9ICJ5IiB8IC4vSW52ZW50b3J5IHx8IGV4aXQgMSApDQogLmVu ZGlmDQorCUAoIHRvdWNoICR7V1JLU1JDfS9vcHRfa2R0cmFjZS5oIHx8IGV4 aXQgMSApDQogDQogZG8taW5zdGFsbDoNCiAJJHtJTlNUQUxMX1BST0dSQU19 ICR7V1JLU1JDfS9sc29mICR7U1RBR0VESVJ9JHtQUkVGSVh9L3NiaW4NCg== --2055831798-1424100496-1393678479=:71711--