=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/lang/cu-prolog", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for cu-prolog-3.94 --- main.o --- --- jpsgsub.o --- --- main.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -c main.c --- jpsgsub.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -c jpsgsub.c In file included from jpsgsub.c:15: include.h:282:9: warning: 'isfinite' redefined 282 | #define isfinite(F) ( ((F->f_mark) & FINITEFUN) != 0) | ^~~~~~~~ In file included from /usr/include/math.h:36, from include.h:23: /usr/include/iso/math_c99.h:73:9: note: this is the location of the previous definition 73 | #define isfinite(x) (__builtin_isfinite(x) != 0) | ^~~~~~~~ --- main.o --- In file included from main.c:31: include.h:282:9: warning: 'isfinite' redefined 282 | #define isfinite(F) ( ((F->f_mark) & FINITEFUN) != 0) | ^~~~~~~~ In file included from /usr/include/math.h:36, from include.h:23: /usr/include/iso/math_c99.h:73:9: note: this is the location of the previous definition 73 | #define isfinite(x) (__builtin_isfinite(x) != 0) | ^~~~~~~~ --- jpsgsub.o --- jpsgsub.c: In function 'init_category': jpsgsub.c:51:9: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 51 | strcpy(catname[0],"POS");cattype[0] = Normal; | ^~~~~~ jpsgsub.c:16:1: note: include '' or provide a declaration of 'strcpy' 15 | #include "include.h" +++ |+#include 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 '' or provide a declaration of 'strcpy' jpsgsub.c: In function 'list_to_cat': jpsgsub.c:59:6: warning: old-style function definition [-Wold-style-definition] 59 | void list_to_cat(t0,n) /* set cattype[],catname[] */ | ^~~~~~~~~~~ jpsgsub.c:62:1: error: number of arguments doesn't match prototype 62 | { | ^ In file included from include.h:544: funclist.h:134:6: error: prototype declaration 134 | void list_to_cat(); | ^~~~~~~~~~~ jpsgsub.c:68:35: error: too many arguments to function 'error'; expected 0, have 1 68 | if (! is_list(t)) error("illegal format (feature type)"); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ funclist.h:17:32: note: declared here 17 | void prepare(),error_detail(), error(),systemcommand(); | ^~~~~ jpsgsub.c:69:46: error: too many arguments to function 'error'; expected 0, have 1 69 | if (!isvar(head_of_list(t))) error("illegal feature name"); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~ funclist.h:17:32: note: declared here 17 | void prepare(),error_detail(), error(),systemcommand(); | ^~~~~ 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 '' or provide a declaration of 'strcpy' jpsgsub.c:72:35: error: too many arguments to function 'error'; expected 0, have 1 72 | if (! is_list(t)) error("illegal format (feature type)"); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ funclist.h:17:32: note: declared here 17 | void prepare(),error_detail(), error(),systemcommand(); | ^~~~~ jpsgsub.c:73:47: error: too many arguments to function 'error'; expected 0, have 1 73 | if (!is_num(head_of_list(t))) error("illegal feature type"); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~ funclist.h:17:32: note: declared here 17 | void prepare(),error_detail(), error(),systemcommand(); | ^~~~~ jpsgsub.c: In function 'set_category': jpsgsub.c:84:13: error: too many arguments to function 'Rterm'; expected 0, have 2 84 | t = Rterm(1200,TEMPORAL); | ^~~~~ ~~~~ funclist.h:203:23: note: declared here 203 | struct term *Rlist(),*Rterm(), *Rterm_half(), *Rterm_leftover(); | ^~~~~ jpsgsub.c:91:9: error: too many arguments to function 'list_to_cat'; expected 0, have 2 91 | list_to_cat(t,v_number); | ^~~~~~~~~~~ ~ jpsgsub.c:59:6: note: declared here 59 | void list_to_cat(t0,n) /* set cattype[],catname[] */ | ^~~~~~~~~~~ jpsgsub.c: In function 'tree_pred': jpsgsub.c:96:5: warning: old-style function definition [-Wold-style-definition] 96 | int tree_pred(t,e) | ^~~~~~~~~ jpsgsub.c:99:1: error: number of arguments doesn't match prototype 99 | { | ^ funclist.h:136:5: error: prototype declaration 136 | int tree_pred(); | ^~~~~~~~~ jpsgsub.c:100:9: error: too many arguments to function 'Ptree'; expected 0, have 2 100 | Ptree(Arg(t,0),e); | ^~~~~ jpsgsub.c:18:6: note: declared here 18 | void Ptree(),treeprint(),oldlink(),PCat(),Psubcat(); | ^~~~~ jpsgsub.c: In function 'Ptree': jpsgsub.c:104:6: warning: old-style function definition [-Wold-style-definition] 104 | void Ptree(t,e) /* print tree entry */ | ^~~~~ jpsgsub.c:107:1: error: number of arguments doesn't match prototype 107 | { | ^ jpsgsub.c:18:6: error: prototype declaration 18 | void Ptree(),treeprint(),oldlink(),PCat(),Psubcat(); | ^~~~~ jpsgsub.c:113:17: error: too many arguments to function 'Pterm'; expected 0, have 2 113 | Pterm(t,e); | ^~~~~ ~ funclist.h:188:6: note: declared here 188 | void Pterm(),Pterm_core(),Psequence(),Pallvar(),Pvar(), Pfunctor(); | ^~~~~ jpsgsub.c:118:9: error: too many arguments to function 'treeprint'; expected 0, have 3 118 | treeprint(t,e,0);NL; | ^~~~~~~~~ ~ jpsgsub.c:18:14: note: declared here 18 | void Ptree(),treeprint(),oldlink(),PCat(),Psubcat(); | ^~~~~~~~~ jpsgsub.c: In function 'oldlink': jpsgsub.c:121:6: warning: old-style function definition [-Wold-style-definition] 121 | void oldlink(n) /* print old link in depth n */ | ^~~~~~~ jpsgsub.c:123:1: error: number of arguments doesn't match prototype 123 | { | ^ jpsgsub.c:18:26: error: prototype declaration 18 | void Ptree(),treeprint(),oldlink(),PCat(),Psubcat(); | ^~~~~~~ --- main.o --- main.c: In function 'main': main.c:36:5: warning: old-style function definition [-Wold-style-definition] 36 | int main(argc,argv) | ^~~~ --- jpsgsub.o --- jpsgsub.c: In function 'treeprint': jpsgsub.c:137:6: warning: old-style function definition [-Wold-style-definition] 137 | void treeprint(t,e,n) /* print tree main */ | ^~~~~~~~~ jpsgsub.c:141:1: error: number of arguments doesn't match prototype 141 | { | ^ jpsgsub.c:18:14: error: prototype declaration 18 | void Ptree(),treeprint(),oldlink(),PCat(),Psubcat(); | ^~~~~~~~~ jpsgsub.c:146:17: error: too many arguments to function 'PCat'; expected 0, have 3 146 | PCat(t,e,0); | ^~~~ ~ jpsgsub.c:18:36: note: declared here 18 | void Ptree(),treeprint(),oldlink(),PCat(),Psubcat(); | ^~~~ jpsgsub.c:149:9: error: too many arguments to function 'treeprint'; expected 0, have 3 149 | treeprint(Arg(t,0),e,n + 1); | ^~~~~~~~~ jpsgsub.c:137:6: note: declared here 137 | void treeprint(t,e,n) /* print tree main */ | ^~~~~~~~~ jpsgsub.c:152:17: error: too many arguments to function 'Pterm'; expected 0, have 2 152 | Pterm(Arg(t,1),e); | ^~~~~ funclist.h:188:6: note: declared here 188 | void Pterm(),Pterm_core(),Psequence(),Pallvar(),Pvar(), Pfunctor(); | ^~~~~ jpsgsub.c:157:9: error: too many arguments to function 'oldlink'; expected 0, have 1 157 | oldlink(n);tprint0("| ");NL; | ^~~~~~~ ~ jpsgsub.c:121:6: note: declared here 121 | void oldlink(n) /* print old link in depth n */ | ^~~~~~~ jpsgsub.c:158:9: error: too many arguments to function 'oldlink'; expected 0, have 1 158 | oldlink(n);tprint0("|--");treeprint(Arg(t,1),e,n + 1);NL; | ^~~~~~~ ~ jpsgsub.c:121:6: note: declared here 121 | void oldlink(n) /* print old link in depth n */ | ^~~~~~~ jpsgsub.c:158:35: error: too many arguments to function 'treeprint'; expected 0, have 3 158 | oldlink(n);tprint0("|--");treeprint(Arg(t,1),e,n + 1);NL; | ^~~~~~~~~ jpsgsub.c:137:6: note: declared here 137 | void treeprint(t,e,n) /* print tree main */ | ^~~~~~~~~ --- main.o --- main.c:45:13: error: too many arguments to function 'decode_args'; expected 0, have 1 45 | decode_args(*argv); /* decode arguments */ | ^~~~~~~~~~~ ~~~~~ --- jpsgsub.o --- jpsgsub.c:159:9: error: too many arguments to function 'oldlink'; expected 0, have 1 159 | oldlink(n);tprint0("| ");NL; | ^~~~~~~ ~ jpsgsub.c:121:6: note: declared here 121 | void oldlink(n) /* print old link in depth n */ | ^~~~~~~ --- main.o --- main.c:40:29: note: declared here 40 | void on_interrupt(),decode_args(); | ^~~~~~~~~~~ --- jpsgsub.o --- jpsgsub.c:161:9: error: too many arguments to function 'oldlink'; expected 0, have 1 161 | oldlink(n);tprint0("|__");treeprint(Arg(t,2),e,n + 1); | ^~~~~~~ ~ jpsgsub.c:121:6: note: declared here 121 | void oldlink(n) /* print old link in depth n */ | ^~~~~~~ jpsgsub.c:161:35: error: too many arguments to function 'treeprint'; expected 0, have 3 161 | oldlink(n);tprint0("|__");treeprint(Arg(t,2),e,n + 1); | ^~~~~~~~~ jpsgsub.c:137:6: note: declared here 137 | void treeprint(t,e,n) /* print tree main */ | ^~~~~~~~~ --- main.o --- main.c:49:24: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 49 | signal(SIGINT, on_interrupt); | ^~~~~~~~~~~~ | | | void (*)(void) --- jpsgsub.o --- jpsgsub.c: In function 'null_or_nil': jpsgsub.c:164:5: warning: old-style function definition [-Wold-style-definition] 164 | int null_or_nil(t,e) | ^~~~~~~~~~~ jpsgsub.c:167:1: error: number of arguments doesn't match prototype 167 | { | ^ jpsgsub.c:19:5: error: prototype declaration 19 | int null_or_nil(); | ^~~~~~~~~~~ --- main.o --- In file included from /usr/include/signal.h:42, from main.c:32: /usr/include/iso/signal_iso.h:63:27: note: expected 'void (*)(int)' but argument is of type 'void (*)(void)' 63 | extern void (*signal(int, void (*)(int)))(int); | ^~~~~~~~~~~~~ main.c:40:14: note: 'on_interrupt' declared here 40 | void on_interrupt(),decode_args(); | ^~~~~~~~~~~~ --- jpsgsub.o --- jpsgsub.c: In function 'PCat': jpsgsub.c:176:6: warning: old-style function definition [-Wold-style-definition] 176 | void PCat(t,e,f) /* print category */ | ^~~~ jpsgsub.c:180:1: error: number of arguments doesn't match prototype 180 | { | ^ jpsgsub.c:18:36: error: prototype declaration 18 | void Ptree(),treeprint(),oldlink(),PCat(),Psubcat(); | ^~~~ --- main.o --- main.c: In function 'decode_args': main.c:40:29: warning: old-style function definition [-Wold-style-definition] 40 | void on_interrupt(),decode_args(); | ^~~~~~~~~~~ main.c:67:1: error: number of arguments doesn't match prototype 67 | { | ^ main.c:40:29: error: prototype declaration 40 | void on_interrupt(),decode_args(); | ^~~~~~~~~~~ --- jpsgsub.o --- jpsgsub.c:186:17: error: too many arguments to function 'Pterm'; expected 0, have 2 186 | Pterm(t,e); | ^~~~~ ~ funclist.h:188:6: note: declared here 188 | void Pterm(),Pterm_core(),Psequence(),Pallvar(),Pvar(), Pfunctor(); | ^~~~~ jpsgsub.c:189:9: error: too many arguments to function 'Pterm'; expected 0, have 2 189 | Pterm(Arg(t,0),e); /* print pos */ | ^~~~~ funclist.h:188:6: note: declared here 188 | void Pterm(),Pterm_core(),Psequence(),Pallvar(),Pvar(), Pfunctor(); | ^~~~~ jpsgsub.c:191:9: error: too many arguments to function 'Pterm'; expected 0, have 2 191 | Pterm(Arg(t,1),e); /* print form */ | ^~~~~ funclist.h:188:6: note: declared here 188 | void Pterm(),Pterm_core(),Psequence(),Pallvar(),Pvar(), Pfunctor(); | ^~~~~ jpsgsub.c:199:21: error: too many arguments to function 'null_or_nil'; expected 0, have 2 199 | if (null_or_nil(Arg(t,i),e)) continue; | ^~~~~~~~~~~ jpsgsub.c:164:5: note: declared here 164 | int null_or_nil(t,e) | ^~~~~~~~~~~ jpsgsub.c:202:25: error: too many arguments to function 'Psubcat'; expected 0, have 2 202 | Psubcat(Arg(t,i),e); | ^~~~~~~ jpsgsub.c:18:43: note: declared here 18 | void Ptree(),treeprint(),oldlink(),PCat(),Psubcat(); | ^~~~~~~ jpsgsub.c:206:25: error: too many arguments to function 'Psubcat'; expected 0, have 2 206 | Psubcat(Arg(t,i),e); | ^~~~~~~ jpsgsub.c:18:43: note: declared here 18 | void Ptree(),treeprint(),oldlink(),PCat(),Psubcat(); | ^~~~~~~ jpsgsub.c:209:25: error: too many arguments to function 'Pterm'; expected 0, have 2 209 | else Pterm(Arg(t,i),e); /* type = Normal */ | ^~~~~ funclist.h:188:6: note: declared here 188 | void Pterm(),Pterm_core(),Psequence(),Pallvar(),Pvar(), Pfunctor(); | ^~~~~ jpsgsub.c:213:9: error: too many arguments to function 'Pterm'; expected 0, have 2 213 | Pterm(Arg(t,Category_size - 1),e); /* print sem */ | ^~~~~ funclist.h:188:6: note: declared here 188 | void Pterm(),Pterm_core(),Psequence(),Pallvar(),Pvar(), Pfunctor(); | ^~~~~ jpsgsub.c: In function 'Psubcat': jpsgsub.c:216:6: warning: old-style function definition [-Wold-style-definition] 216 | void Psubcat(t,e) /* print subcat etc. */ | ^~~~~~~ jpsgsub.c:219:1: error: number of arguments doesn't match prototype 219 | { | ^ jpsgsub.c:18:43: error: prototype declaration 18 | void Ptree(),treeprint(),oldlink(),PCat(),Psubcat(); | ^~~~~~~ --- main.o --- main.c:71:16: error: implicit declaration of function 'atoi'; did you mean 'atof'? [-Wimplicit-function-declaration] 71 | size = atoi(arg+2)*1000; | ^~~~ | atof --- jpsgsub.o --- jpsgsub.c:234:9: error: too many arguments to function 'PCat'; expected 0, have 3 234 | PCat(head_of_list(t),e,1); | ^~~~ jpsgsub.c:176:6: note: declared here 176 | void PCat(t,e,f) /* print category */ | ^~~~ jpsgsub.c:237:9: error: too many arguments to function 'Psubcat'; expected 0, have 2 237 | Psubcat(tail_of_list(t),e); | ^~~~~~~ jpsgsub.c:216:6: note: declared here 216 | void Psubcat(t,e) /* print subcat etc. */ | ^~~~~~~ jpsgsub.c: In function 'termname': jpsgsub.c:245:7: warning: old-style function definition [-Wold-style-definition] 245 | char *termname(t,e) /* return functor name of t */ | ^~~~~~~~ jpsgsub.c:248:1: error: number of arguments doesn't match prototype 248 | { | ^ funclist.h:143:7: error: prototype declaration 143 | char *termname(); | ^~~~~~~~ jpsgsub.c: In function 'pickname': jpsgsub.c:256:5: warning: old-style function definition [-Wold-style-definition] 256 | int pickname(t,e) /* pick up constraint name in cnametmp[] */ | ^~~~~~~~ jpsgsub.c:259:1: error: number of arguments doesn't match prototype 259 | { | ^ funclist.h:144:5: error: prototype declaration 144 | int pickname(); | ^~~~~~~~ jpsgsub.c:271:31: error: too many arguments to function 'termname'; expected 0, have 2 271 | cnametmp[i] = termname(head_of_list(t),e); | ^~~~~~~~ jpsgsub.c:245:7: note: declared here 245 | char *termname(t,e) /* return functor name of t */ | ^~~~~~~~ jpsgsub.c: In function 'cnlistmake': jpsgsub.c:276:14: warning: old-style function definition [-Wold-style-definition] 276 | struct term *cnlistmake(n) | ^~~~~~~~~~ jpsgsub.c:278:1: error: number of arguments doesn't match prototype 278 | { | ^ funclist.h:145:14: error: prototype declaration 145 | struct term *cnlistmake(); | ^~~~~~~~~~ jpsgsub.c:284:16: error: too many arguments to function 'Nterm'; expected 0, have 2 284 | ct = Nterm(0,ETERNAL); | ^~~~~ ~ funclist.h:162:22: note: declared here 162 | struct term *Nvar(),*Nterm(); | ^~~~~ jpsgsub.c:285:29: error: too many arguments to function 'Nfunc'; expected 0, have 3 285 | ct->type.t_func = Nfunc(USERFUN,cnametmp[i],0); | ^~~~~ funclist.h:173:14: note: declared here 173 | struct func *Nfunc(),*funcsearch(); | ^~~~~ jpsgsub.c:286:30: error: too many arguments to function 'Nlist'; expected 0, have 3 286 | t = (struct term *)Nlist(ct,(struct clause *)listtop,TEMPORAL); | ^~~~~ ~~ funclist.h:172:16: note: declared here 172 | struct clause *Nlist(), *Nclause(); | ^~~~~ jpsgsub.c: In function 'cname_pred': jpsgsub.c:293:5: warning: old-style function definition [-Wold-style-definition] 293 | int cname_pred(t,e,nn) /* construct constraint list cnst->cn */ | ^~~~~~~~~~ jpsgsub.c:297:1: error: number of arguments doesn't match prototype 297 | { | ^ funclist.h:146:5: error: prototype declaration 146 | int cname_pred(); | ^~~~~~~~~~ jpsgsub.c:307:7: error: too many arguments to function 'pickname'; expected 0, have 2 307 | n = pickname(cnst, e); | ^~~~~~~~ ~~~~ jpsgsub.c:256:5: note: declared here 256 | int pickname(t,e) /* pick up constraint name in cnametmp[] */ | ^~~~~~~~ jpsgsub.c:309:15: error: too many arguments to function 'cnlistmake'; expected 0, have 1 309 | q->p_body = cnlistmake(n); | ^~~~~~~~~~ ~ jpsgsub.c:276:14: note: declared here 276 | struct term *cnlistmake(n) | ^~~~~~~~~~ *** [jpsgsub.o] Error code 1 bmake: stopped making "cup" in /tmp/work/lang/cu-prolog/work/src --- main.o --- main.c: In function 'prolog_execution': main.c:132:13: error: too many arguments to function 'systemcommand'; expected 0, have 1 132 | systemcommand(cbuf); | ^~~~~~~~~~~~~ ~~~~ In file included from include.h:544: funclist.h:17:40: note: declared here 17 | void prepare(),error_detail(), error(),systemcommand(); | ^~~~~~~~~~~~~ main.c: In function 'on_interrupt': main.c:172:3: error: too many arguments to function 'error'; expected 0, have 1 172 | error("\nInterrupt\n"); | ^~~~~ ~~~~~~~~~~~~~~~ funclist.h:17:32: note: declared here 17 | void prepare(),error_detail(), error(),systemcommand(); | ^~~~~ main.c: In function 'error_detail': main.c:175:6: warning: old-style function definition [-Wold-style-definition] 175 | void error_detail(t,e,s) | ^~~~~~~~~~~~ main.c:179:1: error: number of arguments doesn't match prototype 179 | { | ^ funclist.h:17:16: error: prototype declaration 17 | void prepare(),error_detail(), error(),systemcommand(); | ^~~~~~~~~~~~ main.c:182:9: error: too many arguments to function 'Pterm'; expected 0, have 2 182 | Pterm(t,e); | ^~~~~ ~ funclist.h:188:6: note: declared here 188 | void Pterm(),Pterm_core(),Psequence(),Pallvar(),Pvar(), Pfunctor(); | ^~~~~ main.c:183:9: error: too many arguments to function 'error'; expected 0, have 1 183 | error(s); | ^~~~~ ~ funclist.h:17:32: note: declared here 17 | void prepare(),error_detail(), error(),systemcommand(); | ^~~~~ main.c: In function 'error': main.c:186:6: warning: old-style function definition [-Wold-style-definition] 186 | void error(s) | ^~~~~ main.c:188:1: error: number of arguments doesn't match prototype 188 | { | ^ funclist.h:17:32: error: prototype declaration 17 | void prepare(),error_detail(), error(),systemcommand(); | ^~~~~ main.c:198:13: error: too many arguments to function 'undo'; expected 0, have 1 198 | undo(utop); | ^~~~ ~~~~ funclist.h:182:14: note: declared here 182 | void upush(),undo(),add_set(),index_set(); | ^~~~ main.c: In function 'system_heap_alloc': main.c:230:31: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 230 | if (NULL == (sheap=(int *)malloc(SHEAP_SIZE+1))) | ^~~~~~ main.c:33:1: note: include '' or provide a declaration of 'malloc' 32 | #include +++ |+#include 33 | 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 '' or provide a declaration of 'malloc' main.c:233:9: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 233 | exit(0); | ^~~~ main.c:233:9: note: include '' 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 '' 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 '' 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 '' 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 '' 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 '' 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 '' 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 '' 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 '' 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 '' 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 '' 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 '' or provide a declaration of 'exit' main.c: In function 'heap_realloc': main.c:307:5: error: 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: error: implicit declaration of function 'isatty'; did you mean 'isatom'? [-Wimplicit-function-declaration] 337 | tty = isatty(0); | ^~~~~~ | isatom main.c: In function 'systemcommand': main.c:426:6: warning: old-style function definition [-Wold-style-definition] 426 | void systemcommand(c) /* % command */ | ^~~~~~~~~~~~~ main.c:428:1: error: number of arguments doesn't match prototype 428 | { | ^ funclist.h:17:40: error: prototype declaration 17 | void prepare(),error_detail(), error(),systemcommand(); | ^~~~~~~~~~~~~ main.c:459:17: error: too many arguments to function 'preprocess_constraints'; expected 0, have 1 459 | preprocess_constraints(nbuf); | ^~~~~~~~~~~~~~~~~~~~~~ ~~~~ funclist.h:23:21: note: declared here 23 | void renum_pvars(), preprocess_constraints(); | ^~~~~~~~~~~~~~~~~~~~~~ main.c:494:17: error: too many arguments to function 'showdef'; expected 0, have 1 494 | showdef(nbuf); | ^~~~~~~ ~~~~ funclist.h:26:45: note: declared here 26 | void traceswitch(),stepswitch(),spyswitch(),showdef(),loghandle(); | ^~~~~~~ main.c:508:17: error: too many arguments to function 'loghandle'; expected 0, have 1 508 | loghandle(nbuf); | ^~~~~~~~~ ~~~~ funclist.h:26:55: note: declared here 26 | void traceswitch(),stepswitch(),spyswitch(),showdef(),loghandle(); | ^~~~~~~~~ main.c:519:17: error: too many arguments to function 'spyswitch'; expected 0, have 1 519 | spyswitch(nbuf); | ^~~~~~~~~ ~~~~ funclist.h:26:33: note: declared here 26 | void traceswitch(),stepswitch(),spyswitch(),showdef(),loghandle(); | ^~~~~~~~~ main.c:535:17: error: too many arguments to function 'filewrite'; expected 0, have 1 535 | filewrite(nbuf); /* save program */ | ^~~~~~~~~ ~~~~ funclist.h:31:26: note: declared here 31 | void allspy(),helpmenu(),filewrite(); | ^~~~~~~~~ main.c: In function 'garbagecollect': main.c:550:9: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 550 | strcpy(nbuf, "TEMPF.###"); /* temporary file */ | ^~~~~~ main.c:33:1: note: include '' or provide a declaration of 'strcpy' 32 | #include +++ |+#include 33 | 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 '' or provide a declaration of 'strcpy' main.c:553:9: error: too many arguments to function 'filewrite'; expected 0, have 1 553 | filewrite(nbuf); /* save program to nbuf */ | ^~~~~~~~~ ~~~~ funclist.h:31:26: note: declared here 31 | void allspy(),helpmenu(),filewrite(); | ^~~~~~~~~ main.c:556:9: error: too many arguments to function 'set_inputfile'; expected 0, have 1 556 | set_inputfile(nbuf); | ^~~~~~~~~~~~~ ~~~~ funclist.h:18:18: note: declared here 18 | void oscommand(),set_inputfile(),readfile(),set_eof(),trans_routine(); | ^~~~~~~~~~~~~ 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 '' or provide a declaration of 'strcpy' main.c:564:9: error: 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:566:9: error: too many arguments to function 'filewrite'; expected 0, have 1 566 | filewrite(nbuf); /* save program */ | ^~~~~~~~~ ~~~~ funclist.h:31:26: note: declared here 31 | void allspy(),helpmenu(),filewrite(); | ^~~~~~~~~ main.c:570:9: error: too many arguments to function 'set_inputfile'; expected 0, have 1 570 | set_inputfile(nbuf); | ^~~~~~~~~~~~~ ~~~~ funclist.h:18:18: note: declared here 18 | void oscommand(),set_inputfile(),readfile(),set_eof(),trans_routine(); | ^~~~~~~~~~~~~ main.c: In function 'trans_routine': main.c:587:13: error: too many arguments to function 'Rterm'; expected 0, have 2 587 | t = Rterm(1200,TEMPORAL); /* read constraints */ | ^~~~~ ~~~~ funclist.h:203:23: note: declared here 203 | struct term *Rlist(),*Rterm(), *Rterm_half(), *Rterm_leftover(); | ^~~~~ main.c:588:36: error: too many arguments to function 'error'; expected 0, have 1 588 | if (tokentype != FULLSTOP) error("Syntax error --- . missing"); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:186:6: note: declared here 186 | void error(s) | ^~~~~ main.c:595:21: error: too many arguments to function 'Nclause'; expected 0, have 3 595 | c = Nclause(t, NULL_CL, TEMPORAL); | ^~~~~~~ ~ funclist.h:172:26: note: declared here 172 | struct clause *Nlist(), *Nclause(); | ^~~~~~~ main.c:596:9: error: too many arguments to function 'modular'; expected 0, have 3 596 | modular(c,v_list,v_number+p_number); | ^~~~~~~ ~ funclist.h:212:6: note: declared here 212 | void modular(); | ^~~~~~~ main.c:600:9: error: too many arguments to function 'undo'; expected 0, have 1 600 | undo(utop); /* pop user stack ( u : static var ) */ | ^~~~ ~~~~ funclist.h:182:14: note: declared here 182 | void upush(),undo(),add_set(),index_set(); | ^~~~ main.c: In function 'questionclause': main.c:623:8: error: too many arguments to function 'Rterm'; expected 0, have 2 623 | q = Rterm(1200,TEMPORAL); /* read goal */ | ^~~~~ ~~~~ funclist.h:203:23: note: declared here 203 | struct term *Rlist(),*Rterm(), *Rterm_half(), *Rterm_leftover(); | ^~~~~ main.c:624:28: error: too many arguments to function 'error'; expected 0, have 1 624 | if (tokentype!=FULLSTOP) error("Syntax error --- . expected"); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:186:6: note: declared here 186 | void error(s) | ^~~~~ main.c:627:3: error: too many arguments to function 'renum_pvars'; expected 0, have 2 627 | renum_pvars((struct pstvar *)pv_list,v_number); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ funclist.h:23:6: note: declared here 23 | void renum_pvars(), preprocess_constraints(); | ^~~~~~~~~~~ main.c:628:7: error: too many arguments to function 'Nenv'; expected 0, have 1 628 | e = Nenv(v_number+p_number); /* initial environments */ | ^~~~ ~~~~~~~~~~~~~~~~~ funclist.h:176:14: note: declared here 176 | struct pair *Nenv(); | ^~~~ main.c:633:7: error: too many arguments to function 'Nclause'; expected 0, have 3 633 | Nclause(Arg2(q),NULL_CL,TEMPORAL); | ^~~~~~~ funclist.h:172:26: note: declared here 172 | struct clause *Nlist(), *Nclause(); | ^~~~~~~ main.c:634:10: error: too many arguments to function 'transform'; expected 0, have 3 634 | co = transform(NULL_ECL,c,e); | ^~~~~~~~~ funclist.h:227:17: note: declared here 227 | struct eclause *transform(); | ^~~~~~~~~ main.c:642:7: error: too many arguments to function 'undo'; expected 0, have 1 642 | undo(utop); | ^~~~ ~~~~ funclist.h:182:14: note: declared here 182 | void upush(),undo(),add_set(),index_set(); | ^~~~ main.c:651:5: error: too many arguments to function 'error'; expected 0, have 1 651 | error("Syntax error --- Query Predicate was expected"); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:186:6: note: declared here 186 | void error(s) | ^~~~~ main.c:654:7: error: too many arguments to function 'Nclause'; expected 0, have 3 654 | Nclause(Arg1(q),NULL_CL,TEMPORAL); | ^~~~~~~ funclist.h:172:26: note: declared here 172 | struct clause *Nlist(), *Nclause(); | ^~~~~~~ main.c:656:7: error: too many arguments to function 'Newnode'; expected 0, have 5 656 | = Newnode(c,co,e,NULL_NODE,NULL_NODE); | ^~~~~~~ ~ funclist.h:232:14: note: declared here 232 | struct node *Newnode(); | ^~~~~~~ main.c:663:9: error: too many arguments to function 'refute'; expected 0, have 3 663 | if (refute(Initial_Goal,Last_Node,Status) == FALSE){ | ^~~~~~ ~~~~~~~~~~~~ main.c:612:15: note: declared here 612 | int Status, refute(); | ^~~~~~ main.c:685:14: error: too many arguments to function 'Panswer'; expected 0, have 2 685 | (Panswer(Initial_Goal,initial_vlist) == FALSE)) break; | ^~~~~~~ ~~~~~~~~~~~~ funclist.h:235:5: note: declared here 235 | int Panswer(); | ^~~~~~~ main.c:688:27: error: too many arguments to function 'backtrack_node'; expected 0, have 1 688 | Last_BT = Last_Node = backtrack_node(Last_BT); | ^~~~~~~~~~~~~~ ~~~~~~~ funclist.h:233:14: note: declared here 233 | struct node *backtrack_node(); | ^~~~~~~~~~~~~~ main.c:697:3: error: too many arguments to function 'undo'; expected 0, have 1 697 | undo(utop); /* pop user stack ( u : static var ) */ | ^~~~ ~~~~ funclist.h:182:14: note: declared here 182 | void upush(),undo(),add_set(),index_set(); | ^~~~ main.c: In function 'defclause': main.c:711:7: error: too many arguments to function 'Rterm'; expected 0, have 2 711 | t = Rterm(1200,STINGY); | ^~~~~ ~~~~ funclist.h:203:23: note: declared here 203 | struct term *Rlist(),*Rterm(), *Rterm_half(), *Rterm_leftover(); | ^~~~~ main.c:712:30: error: too many arguments to function 'error'; expected 0, have 1 712 | if (tokentype != FULLSTOP) error("Syntax error --- . was expected"); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:186:6: note: declared here 186 | void error(s) | ^~~~~ main.c:714:17: error: too many arguments to function 'error'; expected 0, have 1 714 | if (isvar(t)) error("Syntax error --- Variables cannot be asserted"); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:186:6: note: declared here 186 | void error(s) | ^~~~~ main.c:715:3: error: too many arguments to function 'rename_var_names'; expected 0, have 1 715 | rename_var_names((struct var *)v_list); /* STINGY -> ETERNAL */ | ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ funclist.h:22:20: note: declared here 22 | void defnewfunc(), rename_var_names(), truncate_varname(); | ^~~~~~~~~~~~~~~~ main.c:718:12: error: too many arguments to function 'Nclause'; expected 0, have 3 718 | Nclause(Arg2(t),NULL_CL,ETERNAL); | ^~~~~~~ funclist.h:172:26: note: declared here 172 | struct clause *Nlist(), *Nclause(); | ^~~~~~~ main.c:725:7: error: too many arguments to function 'Pterm'; expected 0, have 2 725 | Pterm(t,NULL_ENV); | ^~~~~ ~ funclist.h:188:6: note: declared here 188 | void Pterm(),Pterm_core(),Psequence(),Pallvar(),Pvar(), Pfunctor(); | ^~~~~ main.c:727:7: error: too many arguments to function 'error'; expected 0, have 1 727 | error("Syntax error --- Variables cannot be asserted"); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:186:6: note: declared here 186 | void error(s) | ^~~~~ main.c:730:11: error: too many arguments to function 'Nclause'; expected 0, have 3 730 | c = Nclause(Arg1(t),(struct clause *)Arg2(t),ETERNAL); | ^~~~~~~ funclist.h:172:26: note: declared here 172 | struct clause *Nlist(), *Nclause(); | ^~~~~~~ main.c:733:19: error: too many arguments to function 'Nclause'; expected 0, have 3 733 | Nclause(Arg2(t),NULL_CL,ETERNAL), ETERNAL); | ^~~~~~~ funclist.h:172:26: note: declared here 172 | struct clause *Nlist(), *Nclause(); | ^~~~~~~ main.c:732:11: error: too many arguments to function 'Nclause'; expected 0, have 3 732 | c = Nclause(Arg1(t), | ^~~~~~~ funclist.h:172:26: note: declared here 172 | struct clause *Nlist(), *Nclause(); | ^~~~~~~ main.c:736:9: error: too many arguments to function 'Nclause'; expected 0, have 3 736 | c = Nclause(t,NULL_CL,ETERNAL); | ^~~~~~~ ~ funclist.h:172:26: note: declared here 172 | struct clause *Nlist(), *Nclause(); | ^~~~~~~ main.c:737:8: error: too many arguments to function 'error'; expected 0, have 1 737 | else error("Illegal definition"); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~ main.c:186:6: note: declared here 186 | void error(s) | ^~~~~ main.c:740:5: error: too many arguments to function 'renum_pvars'; expected 0, have 2 740 | renum_pvars((struct pstvar *)pv_list,v_number); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ funclist.h:23:6: note: declared here 23 | void renum_pvars(), preprocess_constraints(); | ^~~~~~~~~~~ main.c:742:3: error: too many arguments to function 'index_set'; expected 0, have 3 742 | index_set(c, cstr, 'z'); | ^~~~~~~~~ ~ funclist.h:182:31: note: declared here 182 | void upush(),undo(),add_set(),index_set(); | ^~~~~~~~~ main.c: In function 'rename_var_names': main.c:745:6: warning: old-style function definition [-Wold-style-definition] 745 | void rename_var_names(v) | ^~~~~~~~~~~~~~~~ main.c:747:1: error: number of arguments doesn't match prototype 747 | { | ^ funclist.h:22:20: error: prototype declaration 22 | void defnewfunc(), rename_var_names(), truncate_varname(); | ^~~~~~~~~~~~~~~~ main.c:749:5: error: too many arguments to function 'truncate_varname'; expected 0, have 2 749 | truncate_varname(v->v_name,nbuf); | ^~~~~~~~~~~~~~~~ ~~~~~~~~~ funclist.h:22:40: note: declared here 22 | void defnewfunc(), rename_var_names(), truncate_varname(); | ^~~~~~~~~~~~~~~~ main.c:750:17: error: too many arguments to function 'nalloc'; expected 0, have 2 750 | v->v_name = nalloc(nbuf,ETERNAL); | ^~~~~~ ~~~~ funclist.h:156:7: note: declared here 156 | char *nalloc(); | ^~~~~~ main.c: In function 'truncate_varname': main.c:755:6: warning: old-style function definition [-Wold-style-definition] 755 | void truncate_varname(n,nbuf) | ^~~~~~~~~~~~~~~~ main.c:757:1: error: number of arguments doesn't match prototype 757 | { | ^ funclist.h:22:40: error: prototype declaration 22 | void defnewfunc(), rename_var_names(), truncate_varname(); | ^~~~~~~~~~~~~~~~ main.c: In function 'renum_pvars': main.c:767:6: warning: old-style function definition [-Wold-style-definition] 767 | void renum_pvars(pvs,vnum) | ^~~~~~~~~~~ main.c:770:1: error: number of arguments doesn't match prototype 770 | { | ^ funclist.h:23:6: error: prototype declaration 23 | void renum_pvars(), preprocess_constraints(); | ^~~~~~~~~~~ main.c: In function 'defnewfunc': main.c:788:7: error: too many arguments to function 'Rterm'; expected 0, have 2 788 | t = Rterm(1200,STINGY); | ^~~~~ ~~~~ funclist.h:203:23: note: declared here 203 | struct term *Rlist(),*Rterm(), *Rterm_half(), *Rterm_leftover(); | ^~~~~ main.c:789:30: error: too many arguments to function 'error'; expected 0, have 1 789 | if (tokentype != FULLSTOP) error("Syntax error --- . was expected"); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:186:6: note: declared here 186 | void error(s) | ^~~~~ main.c:791:28: error: too many arguments to function 'error'; expected 0, have 1 791 | if (Pred(t) != EQSIGN_P) error("Illegal itrace definition"); | ^~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:186:6: note: declared here 186 | void error(s) | ^~~~~ main.c:793:3: error: too many arguments to function 'rename_var_names'; expected 0, have 1 793 | rename_var_names((struct var *)v_list); /* STINGY -> ETERNAL */ | ^~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ main.c:745:6: note: declared here 745 | void rename_var_names(v) | ^~~~~~~~~~~~~~~~ main.c:796:5: error: too many arguments to function 'Nclause'; expected 0, have 3 796 | Nclause(Arg2(t),NULL_CL,ETERNAL); | ^~~~~~~ funclist.h:172:26: note: declared here 172 | struct clause *Nlist(), *Nclause(); | ^~~~~~~ include.h:478:33: error: too many arguments to function 'salloc'; expected 0, have 1 478 | #define snew(s) (struct s *)salloc(sizeof (struct s) / sizeof (int)) | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:798:8: note: in expansion of macro 'snew' 798 | it = snew(itrace); | ^~~~ funclist.h:149:6: note: declared here 149 | int *salloc(),*alloc(); | ^~~~~~ main.c:799:19: error: too many arguments to function 'Nclause'; expected 0, have 3 799 | it->it_clause = Nclause(Arg1(t),c,ETERNAL); | ^~~~~~~ funclist.h:172:26: note: declared here 172 | struct clause *Nlist(), *Nclause(); | ^~~~~~~ main.c:801:20: error: implicit declaration of function 'literalnumber' [-Wimplicit-function-declaration] 801 | it->it_cnumber = literalnumber(c); | ^~~~~~~~~~~~~ *** [main.o] Error code 1 bmake: stopped making "cup" in /tmp/work/lang/cu-prolog/work/src bmake: 2 errors bmake: stopped making "cup" in /tmp/work/lang/cu-prolog/work/src *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/cu-prolog *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/cu-prolog