Unable to compile sysutils/lsof on stable/9 r262601
Trond Endrestøl
Trond.Endrestol at fagskolen.gjovik.no
Sat Mar 1 12:54:44 UTC 2014
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. |
+-------------------------------+------------------------------------+
-------------- next part --------------
--- 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
More information about the freebsd-stable
mailing list