x86_64-managarm-gcc -pthread -Wall -Wextra -Werror=implicit-function-declaration nl_types/catgets.c -o nl_types/catgets -D_GNU_SOURCE -D_BSD_SOURCE -D_ALL_SOURCE -D_DEFAULT_SOURCE -lm -lpthread -lrt -lintl -liconv -lintl -liconv nl_types/catgets.c: In function ‘main’: nl_types/catgets.c:107:9: error: unknown type name ‘nl_catd’ 107 | nl_catd cat = catopen(cat_path, 0); | ^~~~~~~ nl_types/catgets.c:107:23: error: implicit declaration of function ‘catopen’; did you mean ‘popen’? [-Wimplicit-function-declaration] 107 | nl_catd cat = catopen(cat_path, 0); | ^~~~~~~ | popen nl_types/catgets.c:108:22: error: ‘nl_catd’ undeclared (first use in this function) 108 | if ( cat == (nl_catd) -1 ) | ^~~~~~~ nl_types/catgets.c:108:22: note: each undeclared identifier is reported only once for each function it appears in nl_types/catgets.c:120:15: error: implicit declaration of function ‘catgets’; did you mean ‘fgets’? [-Wimplicit-function-declaration] 120 | str = catgets(cat, set, msg, def); | ^~~~~~~ | fgets nl_types/catgets.c:120:13: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 120 | str = catgets(cat, set, msg, def); | ^ nl_types/catgets.c:134:13: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 134 | str = catgets(cat, set, msg, def); | ^ nl_types/catgets.c:148:13: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 148 | str = catgets(cat, set, msg, def); | ^ nl_types/catgets.c:160:13: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 160 | str = catgets(cat, set, msg, def); | ^ nl_types/catgets.c:176:13: error: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 176 | str = catgets(cat, set, msg, def); | ^ nl_types/catgets.c:189:14: error: implicit declaration of function ‘catclose’; did you mean ‘pclose’? [-Wimplicit-function-declaration] 189 | if ( catclose(cat) < 0 ) | ^~~~~~~~ | pclose