OpenZFS port compile error
Dimitry Andric
dim at FreeBSD.org
Sat Aug 17 19:03:53 UTC 2019
On 17 Aug 2019, at 20:55, Patrick M. Hausen <hausen at punkt.de> wrote:
>
> 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.
>
> Any hints greatly appreciated.
Disable -Werror, or cast 't' to uintmax_t and use %jd as the format.
-Dimitry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 223 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20190817/83b4d509/attachment.sig>
More information about the freebsd-fs
mailing list