[tz] Anyone else having snprintf issues with 2017c?
Howard Hinnant
howard.hinnant at gmail.com
Mon Oct 23 19:08:07 UTC 2017
On Oct 23, 2017, at 2:52 PM, Jon Skeet <skeet at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://mm.icann.org/pipermail/tz/attachments/20171023/2878c949/attachment.sig>
More information about the tz
mailing list