OpenZFS port compile error
Warner Losh
imp at bsdimp.com
Sat Aug 17 19:06:19 UTC 2019
On Sat, Aug 17, 2019, 12:55 PM Patrick M. Hausen <hausen at punkt.de> wrote:
> Hi all,
>
> root at gimli:/usr/ports/sysutils/openzfs # uname -a
> FreeBSD gimli 12.0-STABLE FreeBSD 12.0-STABLE r351102 GENERIC i386
>
> root at gimli:/usr/ports/sysutils/openzfs # grep PORTVERSION Makefile
> PORTVERSION= 2019072200
>
> root at gimli:/usr/ports/sysutils/openzfs # make
> [...]
> timestamp.c:54:26: error: format specifies type 'long' but the argument
> has type 'time_t' (aka 'int') [-Werror,-Wformat]
> (void) printf("%ld\n", t);
> ~~~ ^
> %d
> 1 error generated.
>
Looks like it needs a (long) cast in front of the t. Also looks like a i386
only bug.
Warner
Any hints greatly appreciated.
>
> Thanks!
> Patrick
> --
> punkt.de GmbH Internet - Dienstleistungen - Beratung
> Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100
> 76133 Karlsruhe info at punkt.de http://punkt.de
> AG Mannheim 108285 Gf: Juergen Egeling
>
>
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
>
More information about the freebsd-fs
mailing list