+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/cu-prolog-3.94/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/cu-prolog-3.94/work.log
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for cu-prolog-3.94
--- main.o ---
--- jpsgsub.o ---
--- mainsub.o ---
--- modular.o ---
--- main.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -c main.c
--- mainsub.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -c mainsub.c
--- jpsgsub.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -c jpsgsub.c
--- modular.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -c modular.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 /usr/include/math.h:36,
                 from include.h:23:
/usr/include/iso/math_c99.h:73: note: this is the location of the previous definition
   73 | #define isfinite(x)     (__builtin_isfinite(x) != 0)
      | 
main.c: In function 'decode_args':
main.c:71:16: warning: implicit declaration of function 'atoi'; did you mean 'atof'? [-Wimplicit-function-declaration]
   71 |         size = atoi(arg+2)*1000;
      |                ^~~~
      |                atof
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:33:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
   32 | #include <signal.h>
  +++ |+#include <stdlib.h>
   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 '<stdlib.h>' or provide a declaration of 'malloc'
--- 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 /usr/include/math.h:36,
                 from include.h:23:
/usr/include/iso/math_c99.h:73: note: this is the location of the previous definition
   73 | #define isfinite(x)     (__builtin_isfinite(x) != 0)
      | 
--- modular.o ---
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 /usr/include/math.h:36,
                 from include.h:23:
/usr/include/iso/math_c99.h:73: note: this is the location of the previous definition
   73 | #define isfinite(x)     (__builtin_isfinite(x) != 0)
      | 
--- main.o ---
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:33:1: note: include '<string.h>' or provide a declaration of 'strcpy'
   32 | #include <signal.h>
  +++ |+#include <string.h>
   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 '<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);
      |                    ^~~~~~~~~~~~~
--- jpsgsub.o ---
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 ---
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 /usr/include/math.h:36,
                 from include.h:23:
/usr/include/iso/math_c99.h:73: note: this is the location of the previous definition
   73 | #define isfinite(x)     (__builtin_isfinite(x) != 0)
      | 
mainsub.c: In function 'decode_pname':
--- modular.o ---
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);
      |                      ^
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);
      |         ^~~~~~~~~~~~
--- mainsub.o ---
mainsub.c:63:32: warning: implicit declaration of function 'atoi'; did you mean 'atof'? [-Wimplicit-function-declaration]
   63 |                         return(atoi(fname + 1));
      |                                ^~~~
      |                                atof
--- modular.o ---
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)
      |                       ^~~~~
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:17:1: note: include '<string.h>' or provide a declaration of 'strcmp'
   16 | #include "include.h"
  +++ |+#include <string.h>
   17 | 
--- mainsub.o ---
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'
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 ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -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 /usr/include/math.h:36,
                 from include.h:23:
/usr/include/iso/math_c99.h:73: note: this is the location of the previous definition
   73 | #define isfinite(x)     (__builtin_isfinite(x) != 0)
      | 
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'
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 ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -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 /usr/include/math.h:36,
                 from include.h:23:
/usr/include/iso/math_c99.h:73: note: this is the location of the previous definition
   73 | #define isfinite(x)     (__builtin_isfinite(x) != 0)
      | 
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 */
      |      ^~~~~~~~~~~~~
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 ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -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 /usr/include/math.h:36,
                 from include.h:23:
/usr/include/iso/math_c99.h:73: note: this is the location of the previous definition
   73 | #define isfinite(x)     (__builtin_isfinite(x) != 0)
      | 
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 ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -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 /usr/include/math.h:36,
                 from include.h:23:
/usr/include/iso/math_c99.h:73: note: this is the location of the previous definition
   73 | #define isfinite(x)     (__builtin_isfinite(x) != 0)
      | 
--- unify.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -c unify.c
--- defsysp.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -c defsysp.c
--- refute.o ---
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:17:1: note: include '<string.h>' or provide a declaration of 'strcmp'
   16 | #include <signal.h>
  +++ |+#include <string.h>
   17 | 
--- unify.o ---
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 /usr/include/math.h:36,
                 from include.h:23:
/usr/include/iso/math_c99.h:73: note: this is the location of the previous definition
   73 | #define isfinite(x)     (__builtin_isfinite(x) != 0)
      | 
--- defsysp.o ---
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 /usr/include/math.h:36,
                 from include.h:23:
/usr/include/iso/math_c99.h:73: note: this is the location of the previous definition
   73 | #define isfinite(x)     (__builtin_isfinite(x) != 0)
      | 
--- unify.o ---
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 ---
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:21:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
   20 | #include "include.h"
  +++ |+#include <stdlib.h>
   21 | #if SUN4 == 1
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'
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:21:1: note: include '<string.h>' or provide a declaration of 'strcmp'
   20 | #include "include.h"
  +++ |+#include <string.h>
   21 | #if SUN4 == 1
--- syspred1.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -c syspred1.c
--- syspred2.o ---
--- syspred1.o ---
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 /usr/include/math.h:36,
                 from include.h:23:
/usr/include/iso/math_c99.h:73: note: this is the location of the previous definition
   73 | #define isfinite(x)     (__builtin_isfinite(x) != 0)
      | 
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;
      |                               ^
syspred1.c: In function 'read_pred':
include.h:153:28: error: 'FILE' has no member named '_flag'
  153 | #define is_readable(FP) (FP->_flag & _IOREAD)
      |                            ^~
--- syspred2.o ---
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations  -c syspred2.c
--- syspred1.o ---
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
syspred1.c: In function 'write_pred':
include.h:154:28: error: 'FILE' has no member named '_flag'
  154 | #define is_writable(FP) (FP->_flag & _IOWRT)
      |                            ^~
syspred1.c:597:11: note: in expansion of macro 'is_writable'
  597 |     if (! is_writable(wfp))
      |           ^~~~~~~~~~~
syspred1.c: In function 'nl_pred':
include.h:154:28: error: 'FILE' has no member named '_flag'
  154 | #define is_writable(FP) (FP->_flag & _IOWRT)
      |                            ^~
syspred1.c:627:11: note: in expansion of macro 'is_writable'
  627 |     if (! is_writable(wfp))
      |           ^~~~~~~~~~~
syspred1.c: In function 'tab_pred':
include.h:154:28: error: 'FILE' has no member named '_flag'
  154 | #define is_writable(FP) (FP->_flag & _IOWRT)
      |                            ^~
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'
*** [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 /usr/include/math.h:36,
                 from include.h:23:
/usr/include/iso/math_c99.h:73: note: this is the location of the previous definition
   73 | #define isfinite(x)     (__builtin_isfinite(x) != 0)
      | 
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-upstream-trunk/lang/cu-prolog
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/lang/cu-prolog