===> Building for docbook2mdoc-1.1.0 clang -pipe -Os -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings -c xmalloc.c xmalloc.c:55:11: warning: implicit declaration of function 'reallocarray' is invalid in C99 [-Wimplicit-function-declaration] if ((p = reallocarray(p, nmemb, size)) == NULL) { ^ xmalloc.c:55:9: warning: incompatible integer to pointer conversion assigning to 'void *' from 'int' [-Wint-conversion] if ((p = reallocarray(p, nmemb, size)) == NULL) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. clang -pipe -Os -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings -c node.c clang -pipe -Os -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings -c parse.c parse.c:1038:45: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] if (save_fname == NULL && (fname = dirname(fname)) != NULL && ^~~~~ /Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/libgen.h:41:21: note: passing argument to parameter here char *dirname(char *); ^ 1 warning generated. clang -pipe -Os -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings -c reorg.c clang -pipe -Os -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings -c macro.c clang -pipe -Os -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings -c docbook2mdoc.c clang -pipe -Os -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings -c tree.c clang -pipe -Os -g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings -c main.c main.c:114:38: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] if (fd == -1 && (bname = basename(fname)) != NULL) ^~~~~ /Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/libgen.h:40:22: note: passing argument to parameter here char *basename(char *); ^ 1 warning generated. clang -L/opt/pkg/lib -g -o docbook2mdoc xmalloc.o node.o parse.o reorg.o macro.o docbook2mdoc.o tree.o main.o Undefined symbols for architecture arm64: "_reallocarray", referenced from: _xreallocarray in xmalloc.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [docbook2mdoc] Error code 1 bmake: stopped making "docbook2mdoc" in /Users/pbulk/build/textproc/docbook2mdoc/work/docbook2mdoc-1.1.0 bmake: 1 error bmake: stopped making "docbook2mdoc" in /Users/pbulk/build/textproc/docbook2mdoc/work/docbook2mdoc-1.1.0 *** Error code 2 Stop. bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-upstream-arm64/textproc/docbook2mdoc *** Error code 1 Stop. bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-upstream-arm64/textproc/docbook2mdoc