cc -pthread -Wall -Wextra -Werror=implicit-function-declaration string/strcoll_l.c -o string/strcoll_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 string/strcoll_l.c: In function 'main': string/strcoll_l.c:10:9: error: unknown type name 'locale_t' 10 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~ string/strcoll_l.c:10:27: error: implicit declaration of function 'newlocale'; did you mean 'setlocale'? [-Werror=implicit-function-declaration] 10 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~~ | setlocale string/strcoll_l.c:10:37: error: 'LC_ALL_MASK' undeclared (first use in this function) 10 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~~~~ string/strcoll_l.c:10:37: note: each undeclared identifier is reported only once for each function it appears in string/strcoll_l.c:10:56: error: 'locale_t' undeclared (first use in this function); did you mean 'locale'? 10 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~ | locale string/strcoll_l.c:10:65: error: expected ')' before numeric constant 10 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ~ ^~ | ) string/strcoll_l.c:15:26: error: implicit declaration of function 'strcoll_l'; did you mean 'strcoll'? [-Werror=implicit-function-declaration] 15 | int comparison = strcoll_l(a, b, locale); | ^~~~~~~~~ | strcoll cc1: some warnings being treated as errors