<div dir="auto">Hi , <div dir="auto"><br></div><div dir="auto">    I added the -std=gnu11 options also it's shows same error. </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 1 Jun, 2023, 5:38 am Paul Eggert, <<a href="mailto:eggert@cs.ucla.edu">eggert@cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2023-05-31 13:14, Guy Harris via tz wrote:<br>
> I was able to build on Ubuntu 14.10 with GCC 4.9.1 by adding -DPORT_TO_C89 to the end of the "CFLAGS=" line in Makefile before running make; it didn't build unless I did that, as GCC 4.9.1 didn't recognize "restrict" as a keyword.<br>
<br>
<<a href="https://gcc.gnu.org/c99status.html" rel="noreferrer noreferrer" target="_blank">https://gcc.gnu.org/c99status.html</a>> says the 'restrict' keyword is <br>
supported by GCC 2.95 (1999) and later. GCC 4 and earlier, though, need <br>
an option like '-std=gnu11' to enable 'restrict', as these GCC versions <br>
default to C89 and 'restrict' is incompatible with C89.<br>
<br>
Come to think of it, it's probably better to use -std=gnu11 than <br>
-DPORT_TO_C89 on Naveen's platform. Something like this, say:<br>
<br>
   make -j6 zic=zic cc=arm-linux-gnueabi-gcc \<br>
     ZDUMPDIR=/usr/sbin ZFLAGS="-b slim" \<br>
     CFLAGS="-std=gnu11 -Os -g -pipe"<br>
<br>
I installed the attached commentary patch into TZDB, to try to help <br>
others in Naveen's shoes.<br>
</blockquote></div>