Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Dec 2017 18:35:24 +0100
From:      "Herbert J. Skuhra" <herbert@gojira.at>
To:        freebsd-current@freebsd.org
Cc:        Colin Percival <cperciva@FreeBSD.org>
Subject:   Re: SVN r327433 fails to build
Message-ID:  <87h8s6kdgj.wl-herbert@gojira.at>
In-Reply-To: <8a05059f-5ece-7655-f661-4d53ebe760ee@protected-networks.net>
References:  <8a05059f-5ece-7655-f661-4d53ebe760ee@protected-networks.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 31 Dec 2017 15:19:21 +0100,
Michael Butler <imb@protected-networks.net> wrote:
> 
> An include file change? I couldn't see the cause :-(
> 
> The last successful build I have is at SVN r327392.
> 
> ===> lib/libprocstat (obj,all,install)
> Building /usr/obj/usr/src/amd64.amd64/lib/libprocstat/zfs/zfs.o
> In file included from /usr/src/lib/libprocstat/zfs.c:41:
> /usr/src/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h:217:9:
> error: 'curthread' macro redefined [-Werror,-Wmacro-redefined]
> #define curthread       ((void *)(uintptr_t)thr_self())
>         ^
> /usr/obj/usr/src/amd64.amd64/tmp/usr/include/machine/pcpu.h:230:9: note:
> previous definition is here
> #define curthread               (__curthread())
>         ^
> In file included from /usr/src/lib/libprocstat/zfs.c:41:
> /usr/src/cddl/contrib/opensolaris/lib/libzpool/common/sys/zfs_context.h:236:9:
> error: 'curproc' macro redefined [-Werror,-Wmacro-redefined]
> #define curproc         (&p0)
>         ^
> /usr/obj/usr/src/amd64.amd64/tmp/usr/include/sys/pcpu.h:200:9: note:
> previous definition is here
> #define curproc         (curthread->td_proc)
>         ^
> 2 errors generated.

This is caused by

------------------------------------------------------------------------
r327429 | cperciva | 2017-12-31 10:23:35 +0100 (Sun, 31 Dec 2017) | 2 lines

Use the TSLOG framework to record entry/exit timestamps for VFS_MOUNT calls.

------------------------------------------------------------------------

--
Herbert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87h8s6kdgj.wl-herbert>