[tz] Tzdb build issue

Naveen kumar navinagaraj18 at gmail.com
Tue May 30 07:57:29 UTC 2023


Hi Team,

I am facing this issue while compiling the tzdata latest version
tzdb-2023c.I attached the log for your reference.

Thanks,
Naveen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mm.icann.org/pipermail/tz/attachments/20230530/e90714d6/attachment.html>
-------------- next part --------------
private.h:791:60: error: conflicting types for 'restrict'
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                                            ^
private.h:791:36: note: previous definition of 'restrict' was here
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                    ^
private.h:792:15: error: conflicting types for 'restrict'
    struct tm *restrict);
               ^
private.h:791:60: note: previous definition of 'restrict' was here
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                                            ^
private.h:793:49: error: conflicting types for 'restrict'
 time_t mktime_z(timezone_t restrict, struct tm *restrict);
                                                 ^
private.h:793:28: note: previous definition of 'restrict' was here
 time_t mktime_z(timezone_t restrict, struct tm *restrict);
                            ^
make[1]: *** [<builtin>: difftime.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from localtime.c:16:0:
private.h:791:60: error: conflicting types for 'restrict'
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                                            ^
private.h:791:36: note: previous definition of 'restrict' was here
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                    ^
private.h:792:15: error: conflicting types for 'restrict'
    struct tm *restrict);
               ^
private.h:791:60: note: previous definition of 'restrict' was here
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                                            ^
private.h:793:49: error: conflicting types for 'restrict'
 time_t mktime_z(timezone_t restrict, struct tm *restrict);
                                                 ^
private.h:793:28: note: previous definition of 'restrict' was here
 time_t mktime_z(timezone_t restrict, struct tm *restrict);
                            ^
localtime.c:1623:37: error: expected ';', ',' or ')' before 'sp'
 localtime_rz(struct state *restrict sp, time_t const *restrict timep,
                                     ^
localtime.c:1656:36: error: expected ';', ',' or ')' before 'timep'
 localtime_r(const time_t *restrict timep, struct tm *restrict tmp)
                                    ^
localtime.c:1689:33: error: expected ';', ',' or ')' before 'timep'
 gmtime_r(time_t const *restrict timep, struct tm *restrict tmp)
                                 ^
localtime.c:2293:33: error: expected ';', ',' or ')' before 'sp'
 mktime_z(struct state *restrict sp, struct tm *restrict tmp)
                                 ^
make[1]: *** [<builtin>: localtime.o] Error 1
In file included from asctime.c:16:0:
private.h:791:60: error: conflicting types for 'restrict'
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                                            ^
private.h:791:36: note: previous definition of 'restrict' was here
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                    ^
private.h:792:15: error: conflicting types for 'restrict'
    struct tm *restrict);
               ^
private.h:791:60: note: previous definition of 'restrict' was here
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                                            ^
private.h:793:49: error: conflicting types for 'restrict'
 time_t mktime_z(timezone_t restrict, struct tm *restrict);
                                                 ^
private.h:793:28: note: previous definition of 'restrict' was here
 time_t mktime_z(timezone_t restrict, struct tm *restrict);
                            ^
asctime.c:64:37: error: expected ';', ',' or ')' before 'timeptr'
 asctime_r(struct tm const *restrict timeptr, char *restrict buf)
                                     ^
make[1]: *** [<builtin>: asctime.o] Error 1
In file included from strftime.c:36:0:
private.h:791:60: error: conflicting types for 'restrict'
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                                            ^
private.h:791:36: note: previous definition of 'restrict' was here
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                    ^
private.h:792:15: error: conflicting types for 'restrict'
    struct tm *restrict);
               ^
private.h:791:60: note: previous definition of 'restrict' was here
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                                            ^
private.h:793:49: error: conflicting types for 'restrict'
 time_t mktime_z(timezone_t restrict, struct tm *restrict);
                                                 ^
private.h:793:28: note: previous definition of 'restrict' was here
 time_t mktime_z(timezone_t restrict, struct tm *restrict);
                            ^
strftime.c:119:27: error: expected ';', ',' or ')' before 's'
 strftime_l(char *restrict s, size_t maxsize, char const *restrict format,
                           ^
strftime.c:129:25: error: expected ';', ',' or ')' before 's'
 strftime(char *restrict s, size_t maxsize, char const *restrict format,
                         ^
make[1]: *** [<builtin>: strftime.o] Error 1
In file included from zdump.c:14:0:
private.h:791:60: error: conflicting types for 'restrict'
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                                            ^
private.h:791:36: note: previous definition of 'restrict' was here
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                    ^
private.h:792:15: error: conflicting types for 'restrict'
    struct tm *restrict);
               ^
private.h:791:60: note: previous definition of 'restrict' was here
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                                            ^
private.h:793:49: error: conflicting types for 'restrict'
 time_t mktime_z(timezone_t restrict, struct tm *restrict);
                                                 ^
private.h:793:28: note: previous definition of 'restrict' was here
 time_t mktime_z(timezone_t restrict, struct tm *restrict);
                            ^
make[1]: *** [<builtin>: zdump.o] Error 1
In file included from zic.c:16:0:
private.h:791:60: error: conflicting types for 'restrict'
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                                            ^
private.h:791:36: note: previous definition of 'restrict' was here
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                    ^
private.h:792:15: error: conflicting types for 'restrict'
    struct tm *restrict);
               ^
private.h:791:60: note: previous definition of 'restrict' was here
 struct tm *localtime_rz(timezone_t restrict, time_t const *restrict,
                                                            ^
private.h:793:49: error: conflicting types for 'restrict'
 time_t mktime_z(timezone_t restrict, struct tm *restrict);
                                                 ^
private.h:793:28: note: previous definition of 'restrict' was here
 time_t mktime_z(timezone_t restrict, struct tm *restrict);


More information about the tz mailing list