Adding CFLAGS=-DHAVE_SNPRINTF as an argument to make fixed it.

It's a temporary hack for now, but it gets me past the immediate problem.

On 23 October 2017 at 20:08, Howard Hinnant <howard.hinnant@gmail.com> wrote:
On Oct 23, 2017, at 2:52 PM, Jon Skeet <skeet@pobox.com> wrote:
>
> The tzvalidate travis build is failing, with both clang and gcc, with this error:
>
> zdump.c:803:1: error: static declaration of ‘snprintf’ follows non-static declaration
>  snprintf(char *s, size_t size, char const *format, ...)
>  ^
> make: *** [zdump.o] Error 1
>
>
> It's building fine for me locally, so I'm not quite sure what's wrong. We're currently building on trusty - I may try another distro...
>
> The snprintf changes were introduced on June 13th. It's been too long since I've done a lot of C to easily work out what's going on. I'll investigate further myself tomorrow, but I thought I'd just see if anyone else had seen this before then.
>
> Jon
>

It looks like you can work around this by building with the following as an added option for the compiler:  -DHAVE_SNPRINTF

Howard