tests.c:16:10: error: call to undeclared function 'arc4random'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] return (arc4random() + 1) ? 0 : 1; ^ /usr/bin/x86_64-pc-linux-gnu-ld: /var/tmp/portage/app-text/lowdown-0.11.2/temp/tests-eddb45.o: in function `main': tests.c:(.text+0x1c): undefined reference to `__b64_ntop' clang-14: error: linker command failed with exit code 1 (use -v to see invocation) tests.c:33:10: fatal error: 'sys/capsicum.h' file not found #include ^~~~~~~~~~~~~~~~ /usr/bin/x86_64-pc-linux-gnu-ld: /var/tmp/portage/app-text/lowdown-0.11.2/temp/tests-4503b4.o: in function `main': tests.c:(.text+0x10): undefined reference to `crypt' clang-14: error: linker command failed with exit code 1 (use -v to see invocation) tests.c:102:2: error: call to undeclared function 'warnc'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] warnc(ENOENT, "%d. warn", ENOENT); ^ tests.c:106:2: error: call to undeclared function 'errc'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] errc(0, ENOENT, "%d. err", 3); ^ 2 errors generated. tests.c:167:13: error: call to undeclared function 'getexecname'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] progname = getexecname(); ^ tests.c:167:11: error: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion] progname = getexecname(); ^ ~~~~~~~~~~~~~ 2 errors generated. tests.c:179:13: error: call to undeclared function 'getprogname'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] progname = getprogname(); ^ tests.c:179:11: error: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion] progname = getprogname(); ^ ~~~~~~~~~~~~~ 2 errors generated. tests.c:194:48: error: use of undeclared identifier 'INFTIM' printf("INFTIM is defined to be %ld\n", (long)INFTIM); ^ tests.c:212:10: fatal error: 'md5.h' file not found #include ^~~~~~~ tests.c:212:10: fatal error: 'md5.h' file not found #include ^~~~~~~ tests.c:259:2: error: call to undeclared function 'memset_s'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] memset_s(buf, 0, 'c', sizeof(buf)); ^ tests.c:259:2: note: did you mean 'memset'? /usr/include/string.h:61:14: note: 'memset' declared here extern void *memset (void *__s, int __c, size_t __n) __THROW __nonnull ((1)); ^ tests.c:282:10: fatal error: 'libkern/OSByteOrder.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~~~ tests.c:328:11: error: call to undeclared function 'pledge'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] return !!pledge("stdio", NULL); ^ tests.c:344:10: fatal error: 'readpassphrase.h' file not found #include ^~~~~~~~~~~~~~~~~~ tests.c:370:10: error: call to undeclared function 'recallocarray'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] return !recallocarray(NULL, 0, 2, 2); ^ tests.c:370:10: note: did you mean 'reallocarray'? /usr/include/stdlib.h:569:14: note: 'reallocarray' declared here extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size) ^ tests.c:374:10: fatal error: 'sandbox.h' file not found #include ^~~~~~~~~~~ tests.c:425:10: fatal error: 'sha2.h' file not found #include ^~~~~~~~ tests.c:425:10: fatal error: 'sha2.h' file not found #include ^~~~~~~~ tests.c:468:12: error: call to undeclared library function 'strlcat' with type 'unsigned long (char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] return ! (strlcat(buf, "b", sizeof(buf)) == 2 && ^ tests.c:468:12: note: include the header or explicitly provide a declaration for 'strlcat' tests.c:479:12: error: call to undeclared library function 'strlcpy' with type 'unsigned long (char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] return ! (strlcpy(buf, "a", sizeof(buf)) == 1 && ^ tests.c:479:12: note: include the header or explicitly provide a declaration for 'strlcpy' tests.c:535:6: error: call to undeclared function 'strtonum'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] if (strtonum("1", 0, 2, &errstr) != 1) ^ tests.c:555:10: fatal error: 'sys/byteorder.h' file not found #include ^~~~~~~~~~~~~~~~~ tests.c:564:10: fatal error: 'sys/endian.h' file not found #include ^~~~~~~~~~~~~~ tests.c:574:10: fatal error: 'sys/mkdev.h' file not found #include ^~~~~~~~~~~~~ tests.c:608:2: error: call to undeclared function 'TAILQ_FOREACH_SAFE'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] TAILQ_FOREACH_SAFE(p, &foo_q, entries, tmp) ^ tests.c:608:45: error: expected ';' after expression TAILQ_FOREACH_SAFE(p, &foo_q, entries, tmp) ^ ; tests.c:608:32: error: use of undeclared identifier 'entries' TAILQ_FOREACH_SAFE(p, &foo_q, entries, tmp) ^ 3 errors generated. tests.c:627:10: fatal error: 'sys/tree.h' file not found #include ^~~~~~~~~~~~ tests.c:672:14: error: call to undeclared function 'unveil'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] return -1 != unveil(NULL, NULL); ^