<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    at line 803, zdump.c has a static declaration of snprintf. That
    declaration is within an "#ifdef !HAVE_SNPRINTF", presumably because
    this function is usually included by standard system header. <br>
    <br>
    The error seems to indicate that now both this local version and the
    standard system version are picked up but they don't have the same
    declaration (static vs. non static). My hunch is that "#ifdef
    !HAVE_SNPRINTF" should not have evaluated to true for that platform.
    In the old days I would have suspected an issue with autoconf but
    here you are on your own. <br>
    <br>
    Presumably it's the value of __STDC_VERSION__ inside the declaration
    of HAVE_SNPRINTF that's causing the problem in one environment but
    not the other. See at line 25:<br>
    <br>
    #ifndef HAVE_SNPRINTF<br>
    # define HAVE_SNPRINTF (199901 &lt;= __STDC_VERSION__)<br>
    #endif<br>
    <br>
    I don't have an environment to test this though.  You might want to
    print __STDC_VERSION__ in both environment and see if you see a
    different value. <br>
    <br>
    On 23/10/2017 2:52 PM, Jon Skeet wrote:<br>
    <blockquote type="cite"
cite="mid:CA+5fHtLnjWrDrs+v39W3kN-LhLYO7KsakAU1Rx9Tc6-uzmQzZA@mail.gmail.com">
      <div dir="ltr">The <a
href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_nodatime_tzvalidate&amp;d=DwMFaQ&amp;c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&amp;r=rrUIZtLoHd-EZfVSe74qJIkRkrAVpmdxP365whX8xnI&amp;m=FcfilsJr8smS5wUtPzyNxZPSlJhVDNeuFWgWlz06nlQ&amp;s=0jMxq_R9hbV0HLxlu3TX-ZJ4aSW_Ph_ZYJI7ytPbJno&amp;e="
          moz-do-not-send="true">tzvalidate</a> travis build is failing,
        with both clang and gcc, with this error:
        <div><br>
        </div>
        <div>
          <div>zdump.c:803:1: error: static declaration of ‘snprintf’
            follows non-static declaration</div>
          <div> snprintf(char *s, size_t size, char const *format, ...)</div>
          <div> ^</div>
          <div>make: *** [zdump.o] Error 1</div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>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...</div>
        <div><br>
        </div>
        <div>The snprintf changes were <a
href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_eggert_tz_commit_399180580f65bcad63cf996997068366cadaf530-23diff-2D75ca360cb0a2f0bee95d8fe83fc60ae7&amp;d=DwMFaQ&amp;c=RoP1YumCXCgaWHvlZYR8PQcxBKCX5YTpkKY057SbK10&amp;r=rrUIZtLoHd-EZfVSe74qJIkRkrAVpmdxP365whX8xnI&amp;m=FcfilsJr8smS5wUtPzyNxZPSlJhVDNeuFWgWlz06nlQ&amp;s=P_PyjemTWWDtlH1iHri_KXEp4drFSFwEr-9DU6PHaAU&amp;e="
            moz-do-not-send="true">introduced on June 13th</a>. 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.</div>
        <div><br>
        </div>
        <div>Jon</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <title></title>
      <br>
      <img src="cid:part3.480C5EBB.881D51EA@oracle.com" alt="Oracle
        Email Signature Logo" height="26" width="114"><br>
      <font size="2" face="Verdana, Arial, Helvetica, sans-serif"
        color="#666666"> Patrice Scattolin | Software Development
        Manager | 514.905.8744<br>
        <font color="#FF0000">Oracle Cloud</font><br>
        600 Blvd de Maisonneuve West<br>
        Suite 1900<br>
        Montreal, Quebec
      </font>
    </div>
  </body>
</html>