cc -pthread -Wall -Wextra -Werror=implicit-function-declaration time/strftime_l.c -o time/strftime_l -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -liconv relibc getrlimit(3, 0x7ffffffffc80): not implemented relibc getrlimit(3, 0x7ffffffffba0): not implemented relibc getrlimit(9, 0x7ffffffffb60): not implemented relibc getrlimit(9, 0x7ffffffffb90): not implemented relibc getrlimit(5, 0x7ffffffffb90): not implemented relibc getrlimit(9, 0x7ffffffffb60): not implemented time/strftime_l.c: In function 'main': time/strftime_l.c:10:9: error: unknown type name 'locale_t' 10 | locale_t loc = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~ time/strftime_l.c:10:24: error: implicit declaration of function 'newlocale'; did you mean 'setlocale'? [-Werror=implicit-function-declaration] 10 | locale_t loc = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~~ | setlocale time/strftime_l.c:10:34: error: 'LC_ALL_MASK' undeclared (first use in this function) 10 | locale_t loc = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~~~~ time/strftime_l.c:10:34: note: each undeclared identifier is reported only once for each function it appears in time/strftime_l.c:10:53: error: 'locale_t' undeclared (first use in this function); did you mean 'localtime_r'? 10 | locale_t loc = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~ | localtime_r time/strftime_l.c:10:62: error: expected ')' before numeric constant 10 | locale_t loc = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ~ ^~ | ) time/strftime_l.c:11:31: error: expected ')' before numeric constant 11 | if ( loc == (locale_t) 0 ) | ~ ^~ | ) time/strftime_l.c:24:25: error: implicit declaration of function 'strftime_l'; did you mean 'strftime'? [-Werror=implicit-function-declaration] 24 | size_t length = strftime_l(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", &tm, loc); | ^~~~~~~~~~ | strftime cc1: some warnings being treated as errors