=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/x11/speyes", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for speyes-1.2.0nb1 --- speyes.o --- --- getopt.o --- --- speyes.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -I/opt/pkg/include -c speyes.c --- getopt.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -DNO_ASM -I/opt/pkg/include -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64 -I/opt/pkg/include -c getopt.c In file included from getopt.c:113: getopt.h:108:12: error: conflicting types for 'getopt'; have 'int(void)' 108 | extern int getopt (); | ^~~~~~ In file included from getopt.c:45: /usr/include/stdio.h:335:17: note: previous declaration of 'getopt' with type 'int(int, char * const*, const char *)' 335 | extern int getopt(int, char *const *, const char *); | ^~~~~~ getopt.c: In function 'my_index': getopt.c:216:1: warning: old-style function definition [-Wold-style-definition] 216 | my_index (str, chr) | ^~~~~~~~ getopt.c: In function 'exchange': getopt.c:291:1: warning: old-style function definition [-Wold-style-definition] 291 | exchange (argv) | ^~~~~~~~ getopt.c: In function '_getopt_initialize': getopt.c:352:1: warning: old-style function definition [-Wold-style-definition] 352 | _getopt_initialize (argc, argv, optstring) | ^~~~~~~~~~~~~~~~~~ getopt.c:365:21: error: too many arguments to function 'getenv'; expected 0, have 1 365 | posixly_correct = getenv ("POSIXLY_CORRECT"); | ^~~~~~ ~~~~~~~~~~~~~~~~~ getopt.c:213:7: note: declared here 213 | char *getenv (); | ^~~~~~ getopt.c: In function '_getopt_internal': getopt.c:464:1: warning: old-style function definition [-Wold-style-definition] 464 | _getopt_internal (argc, argv, optstring, longopts, longind, long_only) | ^~~~~~~~~~~~~~~~ getopt.c:527:30: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 527 | if (optind != argc && !strcmp (argv[optind], "--")) | ^~~~~~ getopt.c:114:1: note: include '' or provide a declaration of 'strcmp' 113 | #include "getopt.h" +++ |+#include 114 | getopt.c:603:14: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 603 | if (!strncmp (p->name, nextchar, nameend - nextchar)) | ^~~~~~~ getopt.c:603:14: note: include '' or provide a declaration of 'strncmp' getopt.c:603:50: warning: 'strncmp' argument 3 type is 'long int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 603 | if (!strncmp (p->name, nextchar, nameend - nextchar)) | ~~~~~~~~^~~~~~~~~~ : note: built-in 'strncmp' declared here getopt.c:606:35: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 606 | == (unsigned int) strlen (p->name)) | ^~~~~~ getopt.c:606:35: note: include '' or provide a declaration of 'strlen' getopt.c:606:35: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] getopt.c:606:35: note: include '' or provide a declaration of 'strlen' getopt.c:630:23: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 630 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:630:23: note: include '' or provide a declaration of 'strlen' getopt.c:660:31: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 660 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:660:31: note: include '' or provide a declaration of 'strlen' getopt.c:676:31: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 676 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:676:31: note: include '' or provide a declaration of 'strlen' getopt.c:681:23: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 681 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:681:23: note: include '' or provide a declaration of 'strlen' getopt.c:790:52: warning: 'strncmp' argument 3 type is 'long int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 790 | if (!strncmp (p->name, nextchar, nameend - nextchar)) | ~~~~~~~~^~~~~~~~~~ : note: built-in 'strncmp' declared here getopt.c:792:58: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 792 | if ((unsigned int) (nameend - nextchar) == strlen (p->name)) | ^~~~~~ getopt.c:792:58: note: include '' or provide a declaration of 'strlen' getopt.c:815:25: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 815 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:815:25: note: include '' or provide a declaration of 'strlen' getopt.c:835:33: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 835 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:835:33: note: include '' or provide a declaration of 'strlen' getopt.c:849:33: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 849 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:849:33: note: include '' or provide a declaration of 'strlen' getopt.c:853:25: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 853 | nextchar += strlen (nextchar); | ^~~~~~ getopt.c:853:25: note: include '' or provide a declaration of 'strlen' getopt.c: At top level: getopt.c:917:1: error: conflicting types for 'getopt'; have 'int(void)' 917 | getopt (argc, argv, optstring) | ^~~~~~ /usr/include/stdio.h:335:17: note: previous declaration of 'getopt' with type 'int(int, char * const*, const char *)' 335 | extern int getopt(int, char *const *, const char *); | ^~~~~~ getopt.c: In function 'getopt': getopt.c:917:1: warning: old-style function definition [-Wold-style-definition] 917 | getopt (argc, argv, optstring) | ^~~~~~ *** [getopt.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/x11/speyes/work/speyes-1.2.0 --- speyes.o --- In file included from speyes.c:35: getopt.h:108:12: error: conflicting types for 'getopt'; have 'int(void)' 108 | extern int getopt (); | ^~~~~~ In file included from speyes.c:22: /usr/include/stdlib.h:302:12: note: previous declaration of 'getopt' with type 'int(int, char * const*, const char *)' 302 | extern int getopt(int, char *const *, const char *); | ^~~~~~ speyes.c:124:14: error: 'bool' cannot be defined via 'typedef' 124 | typedef char bool; | ^~~~ speyes.c:124:14: note: 'bool' is a keyword with '-std=c23' onwards speyes.c:124:1: warning: useless type name in empty declaration 124 | typedef char bool; | ^~~~~~~ speyes.c: In function 'main': speyes.c:272:21: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 272 | signal(SIGALRM, do_nothing); | ^~~~~~~~~~ | | | void (*)(void) In file included from /usr/include/signal.h:42, from speyes.c:25: /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); | ^~~~~~~~~~~~~ speyes.c:164:6: note: 'do_nothing' declared here 164 | void do_nothing() | ^~~~~~~~~~ speyes.c:303:9: error: implicit declaration of function 'pause' [-Wimplicit-function-declaration] 303 | pause(); | ^~~~~ *** [speyes.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/x11/speyes/work/speyes-1.2.0 bmake: 2 errors bmake: stopped making "all" in /home/pbulk/work/x11/speyes/work/speyes-1.2.0 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/speyes *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/x11/speyes