Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Aug 2019 13:06:04 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        "Patrick M. Hausen" <hausen@punkt.de>
Cc:        FreeBSD FS <freebsd-fs@freebsd.org>
Subject:   Re: OpenZFS port compile error
Message-ID:  <CANCZdfpx_xyby2DkYfr80PajdJRuMXXYY36UPzu2PYz0fmjqSg@mail.gmail.com>
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
On Sat, Aug 17, 2019, 12:55 PM Patrick M. Hausen <hausen@punkt.de> wrote:

> Hi all,
>
> root@gimli:/usr/ports/sysutils/openzfs # uname -a
> FreeBSD gimli 12.0-STABLE FreeBSD 12.0-STABLE r351102 GENERIC  i386
>
> root@gimli:/usr/ports/sysutils/openzfs # grep PORTVERSION Makefile
> PORTVERSION=    2019072200
>
> 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.
>

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@punkt.de    http://punkt.de
> AG Mannheim 108285        Gf: Juergen Egeling
>
>
> _______________________________________________
> freebsd-fs@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpx_xyby2DkYfr80PajdJRuMXXYY36UPzu2PYz0fmjqSg>