cc -pthread -Wall -Wextra -Werror=implicit-function-declaration locale/uselocale.c -o locale/uselocale -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 locale/uselocale.c: In function 'main': locale/uselocale.c:9:9: error: unknown type name 'locale_t' 9 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~ locale/uselocale.c:9:27: error: implicit declaration of function 'newlocale'; did you mean 'setlocale'? [-Werror=implicit-function-declaration] 9 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~~ | setlocale locale/uselocale.c:9:37: error: 'LC_ALL_MASK' undeclared (first use in this function) 9 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~~~~ locale/uselocale.c:9:37: note: each undeclared identifier is reported only once for each function it appears in locale/uselocale.c:9:56: error: 'locale_t' undeclared (first use in this function); did you mean 'locale'? 9 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ^~~~~~~~ | locale locale/uselocale.c:9:65: error: expected ')' before numeric constant 9 | locale_t locale = newlocale(LC_ALL_MASK, "C", (locale_t) 0); | ~ ^~ | ) locale/uselocale.c:10:34: error: expected ')' before numeric constant 10 | if ( locale == (locale_t) 0 ) | ~ ^~ | ) locale/uselocale.c:12:17: error: expected ';' before 'old_locale' 12 | locale_t old_locale = uselocale(locale); | ^~~~~~~~~~~ | ; locale/uselocale.c:13:14: error: 'old_locale' undeclared (first use in this function); did you mean 'locale'? 13 | if ( old_locale != LC_GLOBAL_LOCALE ) | ^~~~~~~~~~ | locale locale/uselocale.c:13:28: error: 'LC_GLOBAL_LOCALE' undeclared (first use in this function) 13 | if ( old_locale != LC_GLOBAL_LOCALE ) | ^~~~~~~~~~~~~~~~ locale/uselocale.c:15:22: error: implicit declaration of function 'uselocale'; did you mean 'setlocale'? [-Werror=implicit-function-declaration] 15 | old_locale = uselocale((locale_t) 0); | ^~~~~~~~~ | setlocale locale/uselocale.c:15:42: error: expected ')' before numeric constant 15 | old_locale = uselocale((locale_t) 0); | ~ ^~ | ) cc1: some warnings being treated as errors