Date: Sat, 1 Mar 2014 13:54:36 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no> To: FreeBSD stable <freebsd-stable@freebsd.org> Subject: Re: Unable to compile sysutils/lsof on stable/9 r262601 Message-ID: <alpine.BSF.2.00.1403011352400.71711@mail.fig.ol.no> In-Reply-To: <alpine.BSF.2.00.1403011324080.71711@mail.fig.ol.no> References: <alpine.BSF.2.00.1403011324080.71711@mail.fig.ol.no>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <opt_kdtrace.h> > #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: <alpine.BSF.2.00.1403011354360.71711@mail.fig.ol.no> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1403011352400.71711>