+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/cu-prolog-3.94/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/cu-prolog-3.94/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for cu-prolog-3.94 --- main.o --- --- jpsgsub.o --- --- main.o --- cc -pipe -O2 -c main.c --- jpsgsub.o --- cc -pipe -O2 -c jpsgsub.c --- main.o --- In file included from main.c:31: include.h:282: warning: "isfinite" redefined 282 | #define isfinite(F) ( ((F->f_mark) & FINITEFUN) != 0) | In file included from include.h:23, from main.c:31: /usr/include/math.h:988: note: this is the location of the previous definition 988 | # define isfinite(x) __builtin_isfinite (x) | main.c: In function 'decode_args': main.c:71:16: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 71 | size = atoi(arg+2)*1000; | ^~~~ main.c: In function 'system_heap_alloc': main.c:230:31: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 230 | if (NULL == (sheap=(int *)malloc(SHEAP_SIZE+1))) | ^~~~~~ main.c:32:1: note: include '<stdlib.h>' or provide a declaration of 'malloc' 31 | #include "include.h" +++ |+#include <stdlib.h> 32 | #include <signal.h> main.c:230:31: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 230 | if (NULL == (sheap=(int *)malloc(SHEAP_SIZE+1))) | ^~~~~~ main.c:230:31: note: include '<stdlib.h>' or provide a declaration of 'malloc' main.c:233:9: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 233 | exit(0); | ^~~~ main.c:233:9: note: include '<stdlib.h>' or provide a declaration of 'exit' main.c:233:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] main.c:233:9: note: include '<stdlib.h>' or provide a declaration of 'exit' main.c: In function 'user_heap_alloc': main.c:241:30: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 241 | if (NULL == (heap=(int *)malloc(HEAP_SIZE+1))) | ^~~~~~ main.c:241:30: note: include '<stdlib.h>' or provide a declaration of 'malloc' main.c:244:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 244 | exit(0); | ^~~~ main.c:244:9: note: include '<stdlib.h>' or provide a declaration of 'exit' main.c: In function 'cstr_heap_alloc': main.c:252:31: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 252 | if (NULL == (cheap=(int *)malloc(CHEAP_SIZE+1))) | ^~~~~~ main.c:252:31: note: include '<stdlib.h>' or provide a declaration of 'malloc' main.c:255:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 255 | exit(0); | ^~~~ main.c:255:9: note: include '<stdlib.h>' or provide a declaration of 'exit' main.c: In function 'env_heap_alloc': main.c:263:41: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 263 | if (NULL == (eheap = (struct pair *)malloc(ESP_SIZE+1))) | ^~~~~~ main.c:263:41: note: include '<stdlib.h>' or provide a declaration of 'malloc' main.c:266:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 266 | exit(0); | ^~~~ main.c:266:9: note: include '<stdlib.h>' or provide a declaration of 'exit' main.c: In function 'ustack_alloc': main.c:274:44: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 274 | if (NULL == (ustack = (struct ustack *)malloc(USTACK_SIZE+1))) | ^~~~~~ main.c:274:44: note: include '<stdlib.h>' or provide a declaration of 'malloc' main.c:277:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 277 | exit(0); | ^~~~ main.c:277:9: note: include '<stdlib.h>' or provide a declaration of 'exit' main.c: In function 'name_heap_alloc': main.c:285:34: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 285 | if (NULL == (nheap = (char *)malloc(NAME_SIZE+1))) | ^~~~~~ main.c:285:34: note: include '<stdlib.h>' or provide a declaration of 'malloc' main.c:288:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 288 | exit(0); | ^~~~ main.c:288:9: note: include '<stdlib.h>' or provide a declaration of 'exit' main.c: In function 'heap_realloc': main.c:307:5: warning: implicit declaration of function 'cfree' [-Wimplicit-function-declaration] 307 | cfree((char *)sheap); SHEAP_SIZE=SHEAP_SIZE*1.2; system_heap_alloc(); | ^~~~~ main.c: In function 'prepare': main.c:337:15: warning: implicit declaration of function 'isatty'; did you mean 'isatom'? [-Wimplicit-function-declaration] 337 | tty = isatty(0); | ^~~~~~ | isatom main.c: In function 'garbagecollect': main.c:550:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 550 | strcpy(nbuf, "TEMPF.###"); /* temporary file */ | ^~~~~~ main.c:32:1: note: include '<string.h>' or provide a declaration of 'strcpy' 31 | #include "include.h" +++ |+#include <string.h> 32 | #include <signal.h> main.c:550:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 550 | strcpy(nbuf, "TEMPF.###"); /* temporary file */ | ^~~~~~ main.c:550:9: note: include '<string.h>' or provide a declaration of 'strcpy' main.c: In function 'edit_predicate': main.c:563:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 563 | strcpy(nbuf, "TEMPF.prd"); /* temporary file */ | ^~~~~~ main.c:563:9: note: include '<string.h>' or provide a declaration of 'strcpy' main.c:564:9: warning: implicit declaration of function 'system'; did you mean 'issystem'? [-Wimplicit-function-declaration] 564 | system("rm -f TEMPF.prd"); /* delete old temp file */ | ^~~~~~ | issystem main.c: In function 'defnewfunc': main.c:801:20: warning: implicit declaration of function 'literalnumber' [-Wimplicit-function-declaration] 801 | it->it_cnumber = literalnumber(c); | ^~~~~~~~~~~~~ In file included from main.c:31: main.c: In function 'systemcommand': include.h:51:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 51 | #define readword(S) fscanf(fp,"%s",S);if (lfp) fprintf(lfp,"%s",S); | ^~~~~~~~~~~~~~~~~ main.c:435:17: note: in expansion of macro 'readword' 435 | readword(nbuf); | ^~~~~~~~ include.h:51:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 51 | #define readword(S) fscanf(fp,"%s",S);if (lfp) fprintf(lfp,"%s",S); | ^~~~~~~~~~~~~~~~~ main.c:449:17: note: in expansion of macro 'readword' 449 | readword(nbuf); | ^~~~~~~~ include.h:51:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 51 | #define readword(S) fscanf(fp,"%s",S);if (lfp) fprintf(lfp,"%s",S); | ^~~~~~~~~~~~~~~~~ main.c:458:17: note: in expansion of macro 'readword' 458 | readword(nbuf); | ^~~~~~~~ include.h:51:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 51 | #define readword(S) fscanf(fp,"%s",S);if (lfp) fprintf(lfp,"%s",S); | ^~~~~~~~~~~~~~~~~ main.c:488:17: note: in expansion of macro 'readword' 488 | readword(nbuf); | ^~~~~~~~ include.h:51:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 51 | #define readword(S) fscanf(fp,"%s",S);if (lfp) fprintf(lfp,"%s",S); | ^~~~~~~~~~~~~~~~~ main.c:493:17: note: in expansion of macro 'readword' 493 | readword(nbuf); | ^~~~~~~~ include.h:51:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 51 | #define readword(S) fscanf(fp,"%s",S);if (lfp) fprintf(lfp,"%s",S); | ^~~~~~~~~~~~~~~~~ main.c:507:17: note: in expansion of macro 'readword' 507 | readword(nbuf); | ^~~~~~~~ include.h:51:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 51 | #define readword(S) fscanf(fp,"%s",S);if (lfp) fprintf(lfp,"%s",S); | ^~~~~~~~~~~~~~~~~ main.c:511:17: note: in expansion of macro 'readword' 511 | readword(genname); | ^~~~~~~~ include.h:51:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 51 | #define readword(S) fscanf(fp,"%s",S);if (lfp) fprintf(lfp,"%s",S); | ^~~~~~~~~~~~~~~~~ main.c:518:17: note: in expansion of macro 'readword' 518 | readword(nbuf); | ^~~~~~~~ include.h:51:25: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 51 | #define readword(S) fscanf(fp,"%s",S);if (lfp) fprintf(lfp,"%s",S); | ^~~~~~~~~~~~~~~~~ main.c:534:17: note: in expansion of macro 'readword' 534 | readword(nbuf); | ^~~~~~~~ --- jpsgsub.o --- In file included from jpsgsub.c:15: include.h:282: warning: "isfinite" redefined 282 | #define isfinite(F) ( ((F->f_mark) & FINITEFUN) != 0) | In file included from include.h:23, from jpsgsub.c:15: /usr/include/math.h:988: note: this is the location of the previous definition 988 | # define isfinite(x) __builtin_isfinite (x) | jpsgsub.c: In function 'init_category': jpsgsub.c:51:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 51 | strcpy(catname[0],"POS");cattype[0] = Normal; | ^~~~~~ jpsgsub.c:16:1: note: include '<string.h>' or provide a declaration of 'strcpy' 15 | #include "include.h" +++ |+#include <string.h> 16 | jpsgsub.c:51:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 51 | strcpy(catname[0],"POS");cattype[0] = Normal; | ^~~~~~ jpsgsub.c:51:9: note: include '<string.h>' or provide a declaration of 'strcpy' jpsgsub.c: In function 'list_to_cat': jpsgsub.c:70:17: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 70 | strcpy(catname[i],vname(head_of_list(t))); | ^~~~~~ jpsgsub.c:70:17: note: include '<string.h>' or provide a declaration of 'strcpy' --- mainsub.o --- --- modular.o --- --- mainsub.o --- cc -pipe -O2 -c mainsub.c --- modular.o --- cc -pipe -O2 -c modular.c In file included from modular.c:16: include.h:282: warning: "isfinite" redefined 282 | #define isfinite(F) ( ((F->f_mark) & FINITEFUN) != 0) | In file included from include.h:23, from modular.c:16: /usr/include/math.h:988: note: this is the location of the previous definition 988 | # define isfinite(x) __builtin_isfinite (x) | modular.c: In function 'cu': modular.c:84:31: warning: implicit declaration of function 'clock' [-Wimplicit-function-declaration] 84 | CONSTRAINT_OLD_TIME = clock(); | ^~~~~ modular.c: In function 'tepairtype': modular.c:379:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 379 | return(((int)t + (int)e) % UHASHSIZE); | ^ modular.c:379:22: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 379 | return(((int)t + (int)e) % UHASHSIZE); | ^ In file included from modular.c:16: modular.c: In function 'push_log': include.h:479:33: warning: implicit declaration of function 'challoc'; did you mean 'nalloc'? [-Wimplicit-function-declaration] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^~~~~~~ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ modular.c:414:9: note: in expansion of macro 'MEMORY_ALLOC' 414 | MEMORY_ALLOC(u,up_log,TEMPORAL); | ^~~~~~~~~~~~ include.h:479:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ modular.c:414:9: note: in expansion of macro 'MEMORY_ALLOC' 414 | MEMORY_ALLOC(u,up_log,TEMPORAL); | ^~~~~~~~~~~~ modular.c: In function 'push_pstlog': include.h:479:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ modular.c:441:9: note: in expansion of macro 'MEMORY_ALLOC' 441 | MEMORY_ALLOC(u,up_log,TEMPORAL); | ^~~~~~~~~~~~ modular.c: In function 'up_pst': include.h:479:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ modular.c:565:3: note: in expansion of macro 'MEMORY_ALLOC' 565 | MEMORY_ALLOC(nt,pst,flag); | ^~~~~~~~~~~~ include.h:479:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ modular.c:568:3: note: in expansion of macro 'MEMORY_ALLOC' 568 | MEMORY_ALLOC(pv,pstvar,flag); | ^~~~~~~~~~~~ modular.c: In function 'try_fold': modular.c:726:11: warning: implicit declaration of function 'literalnumber'; did you mean 'termnumber'? [-Wimplicit-function-declaration] 726 | count = literalnumber(c); /* number of terms in c */ | ^~~~~~~~~~~~~ | termnumber modular.c:732:23: warning: implicit declaration of function 'match' [-Wimplicit-function-declaration] 732 | if (match(c, it->it_clause->c_link, e) == FALSE) | ^~~~~ In file included from modular.c:16: modular.c: In function 'match_term': include.h:185:30: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 185 | (is_string(t) && (strcmp(str_value(t),str_value(u)) == 0)) ||\ | ^~~~~~ modular.c:804:27: note: in expansion of macro 'atomic_equal' 804 | if ((t1==t2) ||(atomic_equal(t1,t2))) return(TRUE); | ^~~~~~~~~~~~ modular.c:20:1: note: include '<string.h>' or provide a declaration of 'strcmp' 19 | #include <sys/time.h> +++ |+#include <string.h> 20 | #else --- mainsub.o --- In file included from mainsub.c:20: include.h:282: warning: "isfinite" redefined 282 | #define isfinite(F) ( ((F->f_mark) & FINITEFUN) != 0) | In file included from include.h:23, from mainsub.c:20: /usr/include/math.h:988: note: this is the location of the previous definition 988 | # define isfinite(x) __builtin_isfinite (x) | mainsub.c: In function 'decode_pname': mainsub.c:63:32: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 63 | return(atoi(fname + 1)); | ^~~~ mainsub.c: In function 'spyswitch': mainsub.c:74:9: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 74 | if (strcmp (fname, "*") == 0) { | ^~~~~~ mainsub.c:21:1: note: include '<string.h>' or provide a declaration of 'strcmp' 20 | #include "include.h" +++ |+#include <string.h> 21 | mainsub.c: In function 'loghandle': mainsub.c:337:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 337 | strcpy (logfile, "no"); | ^~~~~~ mainsub.c:337:9: note: include '<string.h>' or provide a declaration of 'strcpy' mainsub.c:337:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] mainsub.c:337:9: note: include '<string.h>' or provide a declaration of 'strcpy' mainsub.c:354:17: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 354 | strcpy (logfile, fname); | ^~~~~~ mainsub.c:354:17: note: include '<string.h>' or provide a declaration of 'strcpy' In file included from mainsub.c:20: mainsub.c: In function 'calc_component': include.h:479:33: warning: implicit declaration of function 'challoc'; did you mean 'nalloc'? [-Wimplicit-function-declaration] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^~~~~~~ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ mainsub.c:650:25: note: in expansion of macro 'MEMORY_ALLOC' 650 | MEMORY_ALLOC(fl,funclist,TEMPORAL); | ^~~~~~~~~~~~ include.h:479:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ mainsub.c:650:25: note: in expansion of macro 'MEMORY_ALLOC' 650 | MEMORY_ALLOC(fl,funclist,TEMPORAL); | ^~~~~~~~~~~~ mainsub.c: In function 'recalc_component': include.h:479:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ mainsub.c:694:25: note: in expansion of macro 'MEMORY_ALLOC' 694 | MEMORY_ALLOC(fl,funclist,TEMPORAL); | ^~~~~~~~~~~~ mainsub.c: In function 'add_label': include.h:479:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ mainsub.c:894:9: note: in expansion of macro 'MEMORY_ALLOC' 894 | MEMORY_ALLOC(nc,component,flag); | ^~~~~~~~~~~~ mainsub.c: In function 'copy_component': include.h:479:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ mainsub.c:909:5: note: in expansion of macro 'MEMORY_ALLOC' 909 | MEMORY_ALLOC(nc,component,flag); | ^~~~~~~~~~~~ mainsub.c: In function 'merge_component': include.h:479:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ mainsub.c:944:21: note: in expansion of macro 'MEMORY_ALLOC' 944 | MEMORY_ALLOC(nc,component,flag); | ^~~~~~~~~~~~ mainsub.c: In function 'oscommand': mainsub.c:973:9: warning: implicit declaration of function 'system'; did you mean 'issystem'? [-Wimplicit-function-declaration] 973 | if (system (nbuf) != 0) | ^~~~~~ | issystem mainsub.c: In function 'quit_prolog': mainsub.c:999:13: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 999 | exit (1); /* end */ | ^~~~ mainsub.c:21:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 20 | #include "include.h" +++ |+#include <stdlib.h> 21 | mainsub.c:999:13: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 999 | exit (1); /* end */ | ^~~~ mainsub.c:999:13: note: include '<stdlib.h>' or provide a declaration of 'exit' --- new.o --- cc -pipe -O2 -c new.c In file included from new.c:20: include.h:282: warning: "isfinite" redefined 282 | #define isfinite(F) ( ((F->f_mark) & FINITEFUN) != 0) | In file included from include.h:23, from new.c:20: /usr/include/math.h:988: note: this is the location of the previous definition 988 | # define isfinite(x) __builtin_isfinite (x) | new.c: In function 'nalloc': new.c:176:21: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 176 | q = strlen(n)+1; | ^~~~~~ new.c:21:1: note: include '<string.h>' or provide a declaration of 'strlen' 20 | #include "include.h" +++ |+#include <string.h> 21 | #include <math.h> new.c:176:21: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 176 | q = strlen(n)+1; | ^~~~~~ new.c:176:21: note: include '<string.h>' or provide a declaration of 'strlen' new.c:185:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 185 | strcpy(p,n); | ^~~~~~ new.c:185:9: note: include '<string.h>' or provide a declaration of 'strcpy' new.c:185:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] new.c:185:9: note: include '<string.h>' or provide a declaration of 'strcpy' In file included from new.c:20: new.c: In function 'varsearch': include.h:57:42: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 57 | #define streq(p,q) (*(p) == *(q) && strcmp(p,q) == 0) | ^~~~~~ new.c:457:9: note: in expansion of macro 'streq' 457 | if (streq(varname, vname(v))) { | ^~~~~ include.h:57:42: note: include '<string.h>' or provide a declaration of 'strcmp' 57 | #define streq(p,q) (*(p) == *(q) && strcmp(p,q) == 0) | ^~~~~~ new.c:457:9: note: in expansion of macro 'streq' 457 | if (streq(varname, vname(v))) { | ^~~~~ --- print.o --- cc -pipe -O2 -c print.c In file included from print.c:16: include.h:282: warning: "isfinite" redefined 282 | #define isfinite(F) ( ((F->f_mark) & FINITEFUN) != 0) | In file included from include.h:23, from print.c:16: /usr/include/math.h:988: note: this is the location of the previous definition 988 | # define isfinite(x) __builtin_isfinite (x) | In file included from print.c:16: print.c: In function 'Pvar': include.h:57:42: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 57 | #define streq(p,q) (*(p) == *(q) && strcmp(p,q) == 0) | ^~~~~~ print.c:279:15: note: in expansion of macro 'streq' 279 | else if (streq(vname(t),"_")) tprint1("_%u",n) | ^~~~~ print.c:17:1: note: include '<string.h>' or provide a declaration of 'strcmp' 16 | #include "include.h" +++ |+#include <string.h> 17 | print.c: In function 'Ppst_content': print.c:456:6: warning: type of 'd' defaults to 'int' [-Wimplicit-int] 456 | void Ppst_content(ptt,d) /* {l1/v1,l2/v2,...} temporal PST*/ | ^~~~~~~~~~~~ print.c: In function 'Ppst_content2': print.c:470:6: warning: type of 'd' defaults to 'int' [-Wimplicit-int] 470 | void Ppst_content2(ptt,env,d) /* {l1/v1,l2/v2,...} static PST with env */ | ^~~~~~~~~~~~~ In file included from print.c:16: print.c: In function 'addpst': include.h:479:33: warning: implicit declaration of function 'challoc'; did you mean 'nalloc'? [-Wimplicit-function-declaration] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^~~~~~~ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ print.c:723:3: note: in expansion of macro 'MEMORY_ALLOC' 723 | MEMORY_ALLOC(ppnew,pstprint,TEMPORAL); | ^~~~~~~~~~~~ include.h:479:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ print.c:723:3: note: in expansion of macro 'MEMORY_ALLOC' 723 | MEMORY_ALLOC(ppnew,pstprint,TEMPORAL); | ^~~~~~~~~~~~ --- read.o --- cc -pipe -O2 -c read.c In file included from read.c:16: include.h:282: warning: "isfinite" redefined 282 | #define isfinite(F) ( ((F->f_mark) & FINITEFUN) != 0) | In file included from include.h:23, from read.c:16: /usr/include/math.h:988: note: this is the location of the previous definition 988 | # define isfinite(x) __builtin_isfinite (x) | In file included from read.c:16: read.c: In function 'Rterm_half': include.h:57:42: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 57 | #define streq(p,q) (*(p) == *(q) && strcmp(p,q) == 0) | ^~~~~~ read.c:516:11: note: in expansion of macro 'streq' 516 | if (streq(nbuf, "_")) return(Anonymous_var); | ^~~~~ read.c:17:1: note: include '<string.h>' or provide a declaration of 'strcmp' 16 | #include "include.h" +++ |+#include <string.h> 17 | read.c:527:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 527 | return(Nfile((FILE *)pt)); | ^ read.c:530:7: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 530 | strcpy(tempname,nbuf); /* tempname <- nbuf */ | ^~~~~~ read.c:530:7: note: include '<string.h>' or provide a declaration of 'strcpy' read.c:530:7: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] read.c:530:7: note: include '<string.h>' or provide a declaration of 'strcpy' --- refute.o --- cc -pipe -O2 -c refute.c In file included from refute.c:15: include.h:282: warning: "isfinite" redefined 282 | #define isfinite(F) ( ((F->f_mark) & FINITEFUN) != 0) | In file included from include.h:23, from refute.c:15: /usr/include/math.h:988: note: this is the location of the previous definition 988 | # define isfinite(x) __builtin_isfinite (x) | refute.c: In function 'extend': refute.c:120:21: warning: implicit declaration of function 'system_pred' [-Wimplicit-function-declaration] 120 | if (system_pred(sliteral, env, n, m, status) == SYSFAIL) | ^~~~~~~~~~~ refute.c:128:13: warning: implicit declaration of function 'resolve'; did you mean 'remove'? [-Wimplicit-function-declaration] 128 | if (resolve(n, m, sliteral, env) == FALSE) | ^~~~~~~ | remove refute.c: In function 'Pbinding': refute.c:339:14: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 339 | if ((strcmp(vname(vlist),"_") == 0) || | ^~~~~~ refute.c:16:1: note: include '<string.h>' or provide a declaration of 'strcmp' 15 | #include "include.h" +++ |+#include <string.h> 16 | #include <signal.h> --- unify.o --- cc -pipe -O2 -c unify.c In file included from unify.c:17: include.h:282: warning: "isfinite" redefined 282 | #define isfinite(F) ( ((F->f_mark) & FINITEFUN) != 0) | In file included from include.h:23, from unify.c:17: /usr/include/math.h:988: note: this is the location of the previous definition 988 | # define isfinite(x) __builtin_isfinite (x) | In file included from unify.c:17: unify.c: In function 'unify': include.h:185:30: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 185 | (is_string(t) && (strcmp(str_value(t),str_value(u)) == 0)) ||\ | ^~~~~~ unify.c:211:28: note: in expansion of macro 'atomic_equal' 211 | if ((t==u) || (atomic_equal(u,t))) return(TRUE); | ^~~~~~~~~~~~ unify.c:18:1: note: include '<string.h>' or provide a declaration of 'strcmp' 17 | #include "include.h" +++ |+#include <string.h> 18 | --- defsysp.o --- cc -pipe -O2 -c defsysp.c In file included from defsysp.c:20: include.h:282: warning: "isfinite" redefined 282 | #define isfinite(F) ( ((F->f_mark) & FINITEFUN) != 0) | In file included from include.h:23, from defsysp.c:20: /usr/include/math.h:988: note: this is the location of the previous definition 988 | # define isfinite(x) __builtin_isfinite (x) | In file included from defsysp.c:20: defsysp.c: In function 'init_froles': include.h:479:33: warning: implicit declaration of function 'challoc'; did you mean 'nalloc'? [-Wimplicit-function-declaration] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^~~~~~~ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ defsysp.c:256:9: note: in expansion of macro 'MEMORY_ALLOC' 256 | MEMORY_ALLOC(NOT_VACUOUS,component,ETERNAL); | ^~~~~~~~~~~~ include.h:479:21: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 479 | #define cnew(s) (struct s *)challoc(sizeof (struct s) / sizeof (int)) | ^ include.h:487:17: note: in expansion of macro 'cnew' 487 | X=cnew(Y); break; \ | ^~~~ defsysp.c:256:9: note: in expansion of macro 'MEMORY_ALLOC' 256 | MEMORY_ALLOC(NOT_VACUOUS,component,ETERNAL); | ^~~~~~~~~~~~ defsysp.c: In function 'abomb_pred': defsysp.c:371:9: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 371 | exit(1); | ^~~~ defsysp.c:23:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 22 | #include <sys/time.h> +++ |+#include <stdlib.h> 23 | #else defsysp.c:371:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 371 | exit(1); | ^~~~ defsysp.c:371:9: note: include '<stdlib.h>' or provide a declaration of 'exit' In file included from defsysp.c:20: defsysp.c: In function 'subsume': include.h:185:30: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 185 | (is_string(t) && (strcmp(str_value(t),str_value(u)) == 0)) ||\ | ^~~~~~ defsysp.c:695:24: note: in expansion of macro 'atomic_equal' 695 | if ((t==u) || (atomic_equal(u,t))) return(TRUE); | ^~~~~~~~~~~~ defsysp.c:23:1: note: include '<string.h>' or provide a declaration of 'strcmp' 22 | #include <sys/time.h> +++ |+#include <string.h> 23 | #else defsysp.c: In function 'reset_timer_pred': defsysp.c:889:14: warning: implicit declaration of function 'clock' [-Wimplicit-function-declaration] 889 | OLD_TIME = clock(); | ^~~~~ --- syspred1.o --- cc -pipe -O2 -c syspred1.c In file included from syspred1.c:15: include.h:282: warning: "isfinite" redefined 282 | #define isfinite(F) ( ((F->f_mark) & FINITEFUN) != 0) | In file included from include.h:23, from syspred1.c:15: /usr/include/math.h:988: note: this is the location of the previous definition 988 | # define isfinite(x) __builtin_isfinite (x) | syspred1.c: In function 'or_pred': syspred1.c:195:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 195 | next = (int)n->n_set; | ^ syspred1.c:201:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 201 | n->n_set = (next < arity) ? (struct set *)next : NULL; | ^ In file included from syspred1.c:15: syspred1.c: In function 'read_pred': include.h:144:41: error: '_IO_NO_READS' undeclared (first use in this function) 144 | #define is_readable(FP) (!(FP->_flags & _IO_NO_READS)) | ^~~~~~~~~~~~ syspred1.c:276:11: note: in expansion of macro 'is_readable' 276 | if (! is_readable(fp)) | ^~~~~~~~~~~ include.h:144:41: note: each undeclared identifier is reported only once for each function it appears in 144 | #define is_readable(FP) (!(FP->_flags & _IO_NO_READS)) | ^~~~~~~~~~~~ syspred1.c:276:11: note: in expansion of macro 'is_readable' 276 | if (! is_readable(fp)) | ^~~~~~~~~~~ syspred1.c: In function 'open_pred': syspred1.c:310:10: warning: implicit declaration of function 'file_open_pred'; did you mean 'open_pred'? [-Wimplicit-function-declaration] 310 | return(file_open_pred(t,e,SPECIFIED)); | ^~~~~~~~~~~~~~ | open_pred In file included from syspred1.c:15: syspred1.c: In function 'write_pred': include.h:145:41: error: '_IO_NO_WRITES' undeclared (first use in this function) 145 | #define is_writable(FP) (!(FP->_flags & _IO_NO_WRITES)) | ^~~~~~~~~~~~~ syspred1.c:597:11: note: in expansion of macro 'is_writable' 597 | if (! is_writable(wfp)) | ^~~~~~~~~~~ syspred1.c: In function 'nl_pred': include.h:145:41: error: '_IO_NO_WRITES' undeclared (first use in this function) 145 | #define is_writable(FP) (!(FP->_flags & _IO_NO_WRITES)) | ^~~~~~~~~~~~~ syspred1.c:627:11: note: in expansion of macro 'is_writable' 627 | if (! is_writable(wfp)) | ^~~~~~~~~~~ syspred1.c: In function 'tab_pred': include.h:145:41: error: '_IO_NO_WRITES' undeclared (first use in this function) 145 | #define is_writable(FP) (!(FP->_flags & _IO_NO_WRITES)) | ^~~~~~~~~~~~~ syspred1.c:654:11: note: in expansion of macro 'is_writable' 654 | if (! is_writable(wfp)) | ^~~~~~~~~~~ syspred1.c: In function 'eq_pred_sub': include.h:185:30: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 185 | (is_string(t) && (strcmp(str_value(t),str_value(u)) == 0)) ||\ | ^~~~~~ syspred1.c:734:15: note: in expansion of macro 'atomic_equal' 734 | if (atomic_equal(x,y)) return(SYSTRUE); | ^~~~~~~~~~~~ syspred1.c:16:1: note: include '<string.h>' or provide a declaration of 'strcmp' 15 | #include "include.h" +++ |+#include <string.h> 16 | syspred1.c: In function 'LtoC': syspred1.c:1165:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 1165 | { strcpy(nbuf, str_value(t)); return; } | ^~~~~~ syspred1.c:1165:9: note: include '<string.h>' or provide a declaration of 'strcpy' syspred1.c:1165:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] syspred1.c:1165:9: note: include '<string.h>' or provide a declaration of 'strcpy' syspred1.c:1186:11: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 1186 | strcat(nbuf, str_value(arg0)); | ^~~~~~ syspred1.c:1186:11: note: include '<string.h>' or provide a declaration of 'strcat' syspred1.c:1186:11: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] syspred1.c:1186:11: note: include '<string.h>' or provide a declaration of 'strcat' syspred1.c:1188:11: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 1188 | strcat(nbuf,Predname(arg0)); | ^~~~~~ syspred1.c:1188:11: note: include '<string.h>' or provide a declaration of 'strcat' syspred1.c:1190:21: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 1190 | int len = strlen(nbuf); | ^~~~~~ syspred1.c:1190:21: note: include '<string.h>' or provide a declaration of 'strlen' syspred1.c:1190:21: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] syspred1.c:1190:21: note: include '<string.h>' or provide a declaration of 'strlen' --- syspred2.o --- cc -pipe -O2 -c syspred2.c --- syspred1.o --- *** [syspred1.o] Error code 1 bmake: stopped making "cup" in /home/pbulk/build/lang/cu-prolog/work/src --- syspred2.o --- In file included from syspred2.c:16: include.h:282: warning: "isfinite" redefined 282 | #define isfinite(F) ( ((F->f_mark) & FINITEFUN) != 0) | In file included from include.h:23, from syspred2.c:16: /usr/include/math.h:988: note: this is the location of the previous definition 988 | # define isfinite(x) __builtin_isfinite (x) | syspred2.c: In function 'concat_pred': syspred2.c:205:18: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 205 | if ((len = (int)n->n_set-1) < 0) return(SYSFAIL); | ^ syspred2.c:208:7: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 208 | strncpy(nbuf,str_value(z),len); | ^~~~~~~ syspred2.c:17:1: note: include '<string.h>' or provide a declaration of 'strncpy' 16 | #include "include.h" +++ |+#include <string.h> 17 | int kstrlen(),kpoint(); syspred2.c:208:7: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 208 | strncpy(nbuf,str_value(z),len); | ^~~~~~~ syspred2.c:208:7: note: include '<string.h>' or provide a declaration of 'strncpy' syspred2.c:220:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 220 | n->n_set = (struct set *)( (int)n->n_set - 1); | ^ syspred2.c:220:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 220 | n->n_set = (struct set *)( (int)n->n_set - 1); | ^ syspred2.c:238:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 238 | n->n_set = (struct set *)len; /* memorize the position */ | ^ syspred2.c: In function 'app_str': syspred2.c:255:8: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 255 | if ((strlen(str_value(x))+strlen(str_value(y))) > NAMELEN_MAX) | ^~~~~~ syspred2.c:255:8: note: include '<string.h>' or provide a declaration of 'strlen' syspred2.c:255:8: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] syspred2.c:255:8: note: include '<string.h>' or provide a declaration of 'strlen' syspred2.c:257:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 257 | strcpy(nbuf,str_value(x)); | ^~~~~~ syspred2.c:257:3: note: include '<string.h>' or provide a declaration of 'strcpy' syspred2.c:257:3: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] syspred2.c:257:3: note: include '<string.h>' or provide a declaration of 'strcpy' syspred2.c:258:3: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 258 | strcat(nbuf,str_value(y)); | ^~~~~~ syspred2.c:258:3: note: include '<string.h>' or provide a declaration of 'strcat' syspred2.c:258:3: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] syspred2.c:258:3: note: include '<string.h>' or provide a declaration of 'strcat' syspred2.c: In function 'diff_str': syspred2.c:278:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 278 | if ((lz = strlen(cz)) < (lx = strlen(cx))) | ^~~~~~ syspred2.c:278:13: note: include '<string.h>' or provide a declaration of 'strlen' syspred2.c:298:7: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 298 | strncpy(nbuf, cz, dif); | ^~~~~~~ syspred2.c:298:7: note: include '<string.h>' or provide a declaration of 'strncpy' syspred2.c: In function 'substr_pred': syspred2.c:419:4: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 419 | strncpy(nbuf,sr,numb); | ^~~~~~~ syspred2.c:419:4: note: include '<string.h>' or provide a declaration of 'strncpy' syspred2.c: In function 'divstr_pred': syspred2.c:461:14: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 461 | sr += strlen(sf); | ^~~~~~ syspred2.c:461:14: note: include '<string.h>' or provide a declaration of 'strlen' syspred2.c:478:4: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 478 | strncpy(nbuf,sr,n); | ^~~~~~~ syspred2.c:478:4: note: include '<string.h>' or provide a declaration of 'strncpy' syspred2.c: In function 'strcmp_pred': syspred2.c:520:13: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 520 | result = strcmp(str_value(a),str_value(b)); | ^~~~~~ syspred2.c:520:13: note: include '<string.h>' or provide a declaration of 'strcmp' syspred2.c: In function 'gensym_pred': syspred2.c:634:7: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 634 | strncpy(newname, tt->type.t_func->f_name,8); | ^~~~~~~ syspred2.c:634:7: note: include '<string.h>' or provide a declaration of 'strncpy' syspred2.c:636:7: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 636 | strncpy(newname, str_value(tt), 8); | ^~~~~~~ syspred2.c:636:7: note: include '<string.h>' or provide a declaration of 'strncpy' syspred2.c:645:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 645 | strcpy(newname,genname); | ^~~~~~ syspred2.c:645:5: note: include '<string.h>' or provide a declaration of 'strcpy' bmake: 1 error bmake: stopped making "cup" in /home/pbulk/build/lang/cu-prolog/work/src *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/lang/cu-prolog *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/lang/cu-prolog