Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Dec 2017 12:17:33 -0800
From:      Colin Percival <cperciva@freebsd.org>
To:        "Herbert J. Skuhra" <herbert@gojira.at>, freebsd-current@freebsd.org, Michael Butler <imb@protected-networks.net>
Subject:   Re: SVN r327433 fails to build
Message-ID:  <53dabd1e-b460-cb78-9279-5c42a441760f@freebsd.org>
In-Reply-To: <87h8s6kdgj.wl-herbert@gojira.at>
References:  <8a05059f-5ece-7655-f661-4d53ebe760ee@protected-networks.net> <87h8s6kdgj.wl-herbert@gojira.at>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/31/17 09:35, Herbert J. Skuhra wrote:
> On Sun, 31 Dec 2017 15:19:21 +0100,
> Michael Butler <imb@protected-networks.net> wrote:
>>
>> ===> 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]
> 
> 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.
> 
> ------------------------------------------------------------------------

Oops!  It never occurred to me that I had to worry about userland programs
defining _KERNEL and then including kernel headers... I think I know how to
fix this, just testing now.

Thanks,
-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53dabd1e-b460-cb78-9279-5c42a441760f>