Re: SVN r327433 fails to build

From: Colin Percival <cperciva_at_freebsd.org>
Date: Sun, 31 Dec 2017 12:17:33 -0800
On 12/31/17 09:35, Herbert J. Skuhra wrote:
> On Sun, 31 Dec 2017 15:19:21 +0100,
> Michael Butler <imb_at_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
Received on Sun Dec 31 2017 - 19:24:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:14 UTC