Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Aug 2019 21:03:49 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        "Patrick M. Hausen" <hausen@punkt.de>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: OpenZFS port compile error
Message-ID:  <57F902BF-E2B5-487C-B49C-2B0F3CA95CBE@FreeBSD.org>
In-Reply-To: <A19323B1-BC1D-444E-9122-D6EC98D748F6@punkt.de>
References:  <A19323B1-BC1D-444E-9122-D6EC98D748F6@punkt.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_E775A4D6-AD90-435B-9E48-CD30AFA9449D
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 17 Aug 2019, at 20:55, Patrick M. Hausen <hausen@punkt.de> wrote:
>=20
> root@gimli:/usr/ports/sysutils/openzfs # uname -a
> FreeBSD gimli 12.0-STABLE FreeBSD 12.0-STABLE r351102 GENERIC  i386
>=20
> root@gimli:/usr/ports/sysutils/openzfs # grep PORTVERSION Makefile
> PORTVERSION=3D    2019072200
>=20
> root@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.
>=20
> Any hints greatly appreciated.

Disable -Werror, or cast 't' to uintmax_t and use %jd as the format.

-Dimitry


--Apple-Mail=_E775A4D6-AD90-435B-9E48-CD30AFA9449D
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXVhPlQAKCRCwXqMKLiCW
ox68AKCOGH8+92IIhEeO3JcBM0l7jdcepgCfYZiokO1lVUxUzqALEDxHcyEX08k=
=/dlr
-----END PGP SIGNATURE-----

--Apple-Mail=_E775A4D6-AD90-435B-9E48-CD30AFA9449D--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57F902BF-E2B5-487C-B49C-2B0F3CA95CBE>