=> "/opt/pkg/bin/bmake" ["-C", "/Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/misc/kdrill", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for kdrill-6.5 --- Makefile --- --- patchlevel.h --- sed "s/version-sed/6.5/" patchlevel.h-dist >patchlevel.h --- Makefile --- + rm -f Makefile.bak --- options.o --- --- Makefile --- + mv -f Makefile Makefile.bak --- options.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c options.c + set -v + --- Makefile --- + echo $'imake -DUseInstalled -I/opt/pkg/lib/X11/config \t\t -Wundef -DTOPDIR=. -DCURDIR=.' imake -DUseInstalled -I/opt/pkg/lib/X11/config -Wundef -DTOPDIR=. -DCURDIR=. + imake -DUseInstalled -I/opt/pkg/lib/X11/config -Wundef '-DTOPDIR=.' '-DCURDIR=.' /opt/pkg/bin/imake: Warning: cleaning Imakefile imake: executing: /opt/pkg/bin/tradcpp -I. -D__aarch64__ -traditional -D__APPLE__ -D__DARWIN__ -debuglog .imake.cpplog -DUseInstalled -I/opt/pkg/lib/X11/config -Wundef -DTOPDIR=. -DCURDIR=. -DBuildHtmlManPages=NO .imake.start.c In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:109:2: /opt/pkg/lib/X11/config/darwin.cf:255:11: Warning: non-identical redefinition of OptimizedCDebugFlags In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:109:2: /opt/pkg/lib/X11/config/darwin.cf:236:11: Previous definition was here In file included from .imake.start.c:14:2: /opt/pkg/lib/X11/config/Imake.tmpl:1075:16: Warning: value of undefined symbol HasGnuAr is 0 In file included from .imake.start.c:14:2: /opt/pkg/lib/X11/config/Imake.tmpl:1082:16: Warning: value of undefined symbol HasGnuAr is 0 In file included from .imake.start.c:14:2: /opt/pkg/lib/X11/config/Imake.tmpl:1089:16: Warning: value of undefined symbol HasGnuAr is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:382:13: Warning: value of undefined symbol XF86Server is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:783:10: Warning: value of undefined symbol HasCThreads is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:3864:18: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4081:13: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4102:13: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4124:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4142:13: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4163:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4215:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4234:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4306:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4336:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4352:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 In file included from .imake.start.c:14:2: In file included from /opt/pkg/lib/X11/config/Imake.tmpl:2133:2: /opt/pkg/lib/X11/config/X11.tmpl:4423:12: Warning: value of undefined symbol UseInstalledOnCrossCompile is 0 + set -v --- readfile.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c readfile.c --- options.o --- In file included from options.c:21: ./grades.h:1:13: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype] 1 | extern void MakeGradeSelect(),CountKanji(); | ^ options.c:200:6: note: conflicting prototype is here 200 | void MakeGradeSelect(Widget parent){ | ^ options.c:241:24: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 241 | GradeCallback,(XtPointer) widgetcount); | ^~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. --- game.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c game.c --- readfile.o --- readfile.c:58:12: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 58 | val=fgets(s,MAXLINELEN,fp); | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_stdio.h:239:61: note: passing argument to parameter here 239 | char *_LIBC_CSTR fgets(char * __restrict _LIBC_COUNT(__size), int __size, FILE *); | ^ readfile.c:63:22: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 63 | endparse=& s[strlen(s)-1]; | ^ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_string.h:96:28: note: passing argument to parameter '__s' here 96 | size_t strlen(const char *__s); | ^ readfile.c:63:10: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 63 | endparse=& s[strlen(s)-1]; | ^~~~~~~~~~~~~~~~~ readfile.c:133:13: warning: expression which evaluates to zero treated as a null pointer constant of type 'char *' [-Wnon-literal-null-conversion] 133 | topdest = '\0'; | ^~~~ readfile.c:136:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 136 | parse=strrchr(source, '/'); | ^~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/_string.h:108:41: note: passing argument to parameter '__s' here 108 | char *_LIBC_CSTR strrchr(const char *__s, int __c); | ^ readfile.c:136:7: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 136 | parse=strrchr(source, '/'); | ^~~~~~~~~~~~~~~~~~~~~ readfile.c:143:19: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] 143 | strncpy(topdest, &source[1], parse- source - 1); | ^~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_string.h:128:34: note: expanded from macro 'strncpy' 128 | __builtin___strncpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest)) | ^~~~~~~~~~~ 7 warnings generated. --- init.o --- rm -f init.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DDICTLOCATION='"KDrill*kdictfile: /opt/pkg/share/kdrill/kanjidic.gz"' -DEDICTLOCATION='"KDrill*edictfile: /opt/pkg/share/kdrill/edict.gz"' -DRADLOCATION='"KDrill*radkfile: /opt/pkg/share/kdrill/radkfile"' init.c --- widgets.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c widgets.c --- init.o --- init.c:171:5: warning: call to undeclared function 'isMapped'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 171 | if(isMapped(w)){ | ^ 1 warning generated. --- grades.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c grades.c --- widgets.o --- widgets.c:294:9: warning: variable 'gradelabel' set but not used [-Wunused-but-set-variable] 294 | Widget gradelabel,freqlabel,numlabel; | ^ widgets.c:294:20: warning: variable 'freqlabel' set but not used [-Wunused-but-set-variable] 294 | Widget gradelabel,freqlabel,numlabel; | ^ widgets.c:294:30: warning: variable 'numlabel' set but not used [-Wunused-but-set-variable] 294 | Widget gradelabel,freqlabel,numlabel; | ^ widgets.c:364:19: warning: unused variable 'qthrowaway' [-Wunused-variable] 364 | Widget tmplabel, qthrowaway; | ^~~~~~~~~~ widgets.c:509:38: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 509 | XtNcallback,choicescallback,(XtPointer) i); | ^~~~~~~~~~~~~ widgets.c:792:11: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 792 | (XtPointer) int_store,NULL); | ^~~~~~~~~~~~~~~~~~~~~ widgets.c:860:21: warning: incompatible function pointer types initializing 'XtActionProc' (aka 'void (*)(struct _WidgetRec *, union _XEvent *, char **, unsigned int *)') with an expression of type 'void (Widget, XtPointer, XtPointer)' (aka 'void (struct _WidgetRec *, void *, void *)') [-Wincompatible-function-pointer-types] 860 | { "stroke-search", DoStrokeSearch}, /* ignore warning*/ | ^~~~~~~~~~~~~~ 7 warnings generated. --- frequency.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c frequency.c --- grades.o --- grades.c:101:19: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 101 | grademask = 1 << (int) data; | ^~~~~~~~~~ grades.c:103:9: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 103 | switch((int) data){ | ^~~~~~~~~~ grades.c:127:9: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 127 | if((int) data <=6) | ^~~~~~~~~~ grades.c:128:47: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 128 | sprintf(statusprefix,"Grade %d unset: ",(int) data); | ^~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ grades.c:137:9: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 137 | if((int) data <=6) | ^~~~~~~~~~ grades.c:138:45: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 138 | sprintf(statusprefix,"Grade %d set: ",(int) data); | ^~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ 6 warnings generated. --- mainwindow.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c mainwindow.c --- search.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c search.c --- mainwindow.o --- mainwindow.c:66:22: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 66 | int buttonpressed = (int) data; | ^~~~~~~~~~ mainwindow.c:99:22: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 99 | int buttonpressed = (int) data; | ^~~~~~~~~~ mainwindow.c:173:13: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 173 | guessvalue((int) data); | ^~~~~~~~~~ 3 warnings generated. --- log.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c log.c --- search.o --- search.c:813:16: warning: variable 'tptr' set but not used [-Wunused-but-set-variable] 813 | TRANSLATION tptr; | ^ 1 warning generated. --- utils.o --- rm -f utils.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DUNCOMPRESS='"gzip -d -c"' -DUNCOMPRESSEXT='".gz"' utils.c --- kanasearch.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c kanasearch.c --- utils.o --- utils.c:100:17: warning: comparing a pointer to a null character constant; did you mean to compare to NULL? [-Wpointer-compare] 100 | if(stringp == '\0') | ^~~~ | (void *)0 utils.c:106:17: warning: comparing a pointer to a null character constant; did you mean to compare to NULL? [-Wpointer-compare] 106 | if(stringp == '\0') | ^~~~ | (void *)0 utils.c:311:6: warning: variable 'height' set but not used [-Wunused-but-set-variable] 311 | int height, bwidth; | ^ utils.c:311:14: warning: variable 'bwidth' set but not used [-Wunused-but-set-variable] 311 | int height, bwidth; | ^ 4 warnings generated. --- convert.o --- --- kanasearch.o --- kanasearch.c:230:16: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 230 | CHAR.byte1 = ((int) data & 0xff00) >>8; | ^~~~~~~~~~ kanasearch.c:231:16: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 231 | CHAR.byte2 = ((int) data & 0x00ff); | ^~~~~~~~~~ kanasearch.c:264:5: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 264 | if((int)data == 2){ | ^~~~~~~~~ kanasearch.c:372:10: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 372 | (XtPointer) kvalue); | ^~~~~~~~~~~~~~~~~~ --- convert.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c convert.c --- kanasearch.o --- 4 warnings generated. --- multikanji.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c multikanji.c --- convert.o --- convert.c:634:13: warning: variable 'key_event' set but not used [-Wunused-but-set-variable] 634 | XKeyEvent *key_event; | ^ 1 warning generated. --- kanjisearch.o --- --- multikanji.o --- multikanji.c:207:30: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 207 | TRANSLATION trans=transptrs[(int)data]; | ^~~~~~~~~ --- kanjisearch.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c kanjisearch.c --- multikanji.o --- multikanji.c:279:52: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 279 | XtAddCallback(newu, XtNcallback, multiUcallback, (XtPointer)transcount); | ^~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. --- strokesearch.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c strokesearch.c --- kanjisearch.o --- kanjisearch.c:62:8: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 62 | num = (int)data; | ^~~~~~~~~ kanjisearch.c:84:32: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 84 | XtNlabel, quarterchars[(int)data], | ^~~~~~~~~ kanjisearch.c:110:4: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 110 | exit(1); | ^ kanjisearch.c:110:4: note: include the header or explicitly provide a declaration for 'exit' kanjisearch.c:201:10: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 201 | (XtPointer) kcount); | ^~~~~~~~~~~~~~~~~~ kanjisearch.c:287:10: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 287 | (XtPointer) kcount); | ^~~~~~~~~~~~~~~~~~ 5 warnings generated. --- radsearch.o --- rm -f radsearch.o clang -c -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DRADLOCATION='"KDrill*radkfile: /opt/pkg/share/kdrill/radkfile"' radsearch.c --- searchwidgets.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c searchwidgets.c --- radsearch.o --- radsearch.c:152:10: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] 151 | printf("DEBUG: copying %d bytes from %p to %p\n", | ~~ | %lu 152 | (newcount+1)*sizeof(XChar2b),newactivelist,activelist); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ radsearch.c:98:10: warning: unused variable 'searchstr' [-Wunused-variable] 98 | XChar2b searchstr[2]; | ^~~~~~~~~ radsearch.c:525:4: warning: call to undeclared library function 'exit' with type 'void (int) __attribute__((noreturn))'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 525 | exit(1); | ^ radsearch.c:525:4: note: include the header or explicitly provide a declaration for 'exit' --- searchwidgets.o --- searchwidgets.c:309:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype] 309 | long TextLength (w) | ^ --- radsearch.o --- 3 warnings generated. --- prefs.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c prefs.c --- searchwidgets.o --- 1 warning generated. --- badguess.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c badguess.c --- prefs.o --- prefs.c:206:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security] 206 | sprintf(classbuff,*rname); | ^~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ prefs.c:206:21: note: treat the string as an argument to avoid this 206 | sprintf(classbuff,*rname); | ^ | "%s", /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^ 1 warning generated. --- skipsearch.o --- --- learn.o --- --- skipsearch.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c skipsearch.c --- learn.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c learn.c --- skipsearch.o --- skipsearch.c:104:25: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 104 | sprintf(newlabel,"%1d",(int)client_data); | ^~~~~~~~~~~~~~~~ /Applications/Xcode-16.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.5.sdk/usr/include/secure/_stdio.h:50:56: note: expanded from macro 'sprintf' 50 | __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) | ^~~~~~~~~~~ skipsearch.c:117:14: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] --- learn.o --- learn.c:158:24: warning: cast to smaller integer type 'int' from 'XtPointer' (aka 'void *') [-Wvoid-pointer-to-int-cast] 158 | showinorder=(Boolean)((int)client_data & 0xff); | ^~~~~~~~~~~~~~~~ --- skipsearch.o --- 117 | int skipnum=(int)client_data; | ^~~~~~~~~~~~~~~~ skipsearch.c:131:9: warning: equality comparison with extraneous parentheses [-Wparentheses-equality] 131 | if((s1==0)) { | ~~^~~ skipsearch.c:131:9: note: remove extraneous parentheses around the comparison to silence this warning 131 | if((s1==0)) { | ~ ^ ~ skipsearch.c:131:9: note: use '=' to turn this equality comparison into an assignment 131 | if((s1==0)) { | ^~ | = skipsearch.c:341:10: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] 341 | (XtPointer) scount); | ^~~~~~~~~~~~~~~~~~ --- learn.o --- 1 warning generated. --- timeout.o --- --- skipsearch.o --- 4 warnings generated. --- timeout.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c timeout.c --- kdrill._man --- rm -f kdrill._man if test -z "" ; then cd `dirname kdrill` && ln -s `basename kdrill.man` `basename kdrill._man`; else /usr/bin/cpp -undef -traditional -D__GNUC__ -D__apploaddir__=/opt/pkg/lib/X11/app-defaults -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/opt/pkg -D__xconfigfile__=xorg.conf -D__xconfigdir__=/opt/pkg/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__="\"`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\ /'`\" \"X Version 11\"" -D__vendorversion__="`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\ /'` X.Org" < kdrill.man | sed -e '/^# *[0-9][0-9]* *.*$/d' -e '/^#line *[0-9][0-9]* *.*$/d' -e '/^[ ]*XCOMM$/s/XCOMM/#/' -e '/^[ ]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' -e '/^[ ]*XHASH/s/XHASH/#/' -e '/\@\@$/s/\@\@$/\/' >kdrill._man; fi --- main.o --- clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include/X11 -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -I/opt/pkg/include -c main.c --- KDrill.ad --- sed -e "s:EDICTLOCATION:/opt/pkg/share/kdrill/edict.gz:" -e "s:KDICTLOCATION:/opt/pkg/share/kdrill/kanjidic.gz:" -e "s:RADLOCATION:/opt/pkg/share/kdrill/radkfile:" < KDrill.ad-dist > KDrill.ad --- kdrill --- rm -f kdrill clang -o kdrill -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -L/opt/pkg/lib -L/opt/pkg/lib main.o options.o readfile.o game.o init.o widgets.o grades.o frequency.o mainwindow.o search.o log.o utils.o kanasearch.o convert.o multikanji.o kanjisearch.o strokesearch.o radsearch.o searchwidgets.o prefs.o badguess.o skipsearch.o learn.o timeout.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 ld: warning: reducing alignment of section __DATA,__common from 0x8000 to 0x4000 because it exceeds segment maximum alignment