=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/skill", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for skill-4.1.4 --- getproc.c --- --- main.o --- --- getproc.c --- rm -f getproc.c getproc.o ln -s machdep/sys-5r4.c getproc.c --- main.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -c main.c --- argparse.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -c argparse.c --- main.o --- main.c: In function 'main': main.c:70:1: warning: old-style function definition [-Wold-style-definition] 70 | main(argc, argv) | ^~~~ main.c:83:16: error: implicit declaration of function 'signal' [-Wimplicit-function-declaration] 83 | (void) signal(SIGHUP, SIG_IGN); | ^~~~~~ main.c:93:9: error: too many arguments to function 'MdepInit'; expected 0, have 1 93 | MdepInit(argv[0]); | ^~~~~~~~ ~~~~~~~ In file included from main.c:44: conf.h:119:6: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~~~~ main.c:94:9: error: too many arguments to function 'ArgParse'; expected 0, have 2 94 | ArgParse(argc, argv); | ^~~~~~~~ ~~~~ conf.h:119:18: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~~~~ conf.h:77:51: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 77 | #define STRNEQU(s1,s2,n) ((*s1 == *s2) && (strncmp(s1,s2,n) == 0)) | ^~~~~~~ main.c:150:49: note: in expansion of macro 'STRNEQU' 150 | STRNEQU(CMD, cmdp->cmd.cmdstr, KI_MAXCOMLEN-8)) | ^~~~~~~ main.c:52:1: note: include '' or provide a declaration of 'strncmp' 51 | #include +++ |+#include 52 | #ifdef __NetBSD__ main.c:57:25: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 57 | #define KI_MAXCOMLEN 24 | ^ conf.h:77:65: note: in definition of macro 'STRNEQU' 77 | #define STRNEQU(s1,s2,n) ((*s1 == *s2) && (strncmp(s1,s2,n) == 0)) | ^ main.c:150:80: note: in expansion of macro 'KI_MAXCOMLEN' 150 | STRNEQU(CMD, cmdp->cmd.cmdstr, KI_MAXCOMLEN-8)) | ^~~~~~~~~~~~ : note: built-in 'strncmp' declared here main.c:153:49: error: too many arguments to function 'RegexMatch'; expected 0, have 2 153 | RegexMatch(CMD, cmdp) != 0) | ^~~~~~~~~~ conf.h:115:17: note: declared here 115 | extern int RegexMatch(); | ^~~~~~~~~~ main.c:163:21: error: implicit declaration of function 'Recorded' [-Wimplicit-function-declaration] 163 | if (Recorded(PID)) /* record/ignore duplicates */ | ^~~~~~~~ main.c:177:56: error: too many arguments to function 'WhoIs'; expected 0, have 1 177 | printf(" (%s executing %s)? ", WhoIs(UID), CMD); | ^~~~~ main.c:74:33: note: declared here 74 | extern char *SysErr(), *WhoIs(); | ^~~~~ main.c:222:62: error: too many arguments to function 'WhoIs'; expected 0, have 1 222 | printf(" (%s executing %s)", WhoIs(UID), CMD); | ^~~~~ main.c:74:33: note: declared here 74 | extern char *SysErr(), *WhoIs(); | ^~~~~ main.c:225:28: error: too many arguments to function 'MdepAction'; expected 0, have 1 225 | } else if (MdepAction(PID) < 0) { | ^~~~~~~~~~ conf.h:113:17: note: declared here 113 | extern int MdepAction(); | ^~~~~~~~~~ main.c:228:46: error: too many arguments to function 'WhoIs'; expected 0, have 1 228 | PID, errmsg, WhoIs(UID), CMD); | ^~~~~ main.c:74:33: note: declared here 74 | extern char *SysErr(), *WhoIs(); | ^~~~~ main.c:244:48: error: too many arguments to function 'WhoIs'; expected 0, have 1 244 | WhoIs(UID), CMD); | ^~~~~ main.c:74:33: note: declared here 74 | extern char *SysErr(), *WhoIs(); | ^~~~~ main.c: In function 'WhoIs': main.c:74:33: warning: old-style function definition [-Wold-style-definition] main.c:271:1: error: number of arguments doesn't match prototype 271 | { | ^ main.c:74:33: error: prototype declaration 74 | extern char *SysErr(), *WhoIs(); | ^~~~~ main.c:272:22: warning: conflicting types for built-in function 'strncpy'; expected 'char *(char *, const char *, long unsigned int)' [-Wbuiltin-declaration-mismatch] 272 | extern char *strncpy(); /* avoid war */ | ^~~~~~~ main.c:272:22: note: 'strncpy' is declared in header '' main.c:286:24: error: too many arguments to function 'strncpy'; expected 0, have 3 286 | (void) strncpy(usrcache, pp->pw_name, MAXUSR); | ^~~~~~~ ~~~~~~~~ main.c:272:22: note: declared here 272 | extern char *strncpy(); /* avoid war */ | ^~~~~~~ main.c: In function 'Recorded': main.c:306:1: warning: old-style function definition [-Wold-style-definition] 306 | Recorded(pid) | ^~~~~~~~ main.c: In function 'Usage': main.c:352:1: warning: old-style function definition [-Wold-style-definition] 352 | Usage(error) | ^~~~~ main.c:354:1: error: number of arguments doesn't match prototype 354 | { | ^ conf.h:119:42: error: prototype declaration 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~ In file included from /usr/include/string.h:35, from main.c:386: /usr/include/iso/string_iso.h: At top level: /usr/include/iso/string_iso.h:82:14: error: conflicting types for 'strncpy'; have 'char *(char * restrict, const char * restrict, size_t)' {aka 'char *(char * restrict, const char * restrict, long unsigned int)'} 82 | extern char *strncpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD, size_t); | ^~~~~~~ main.c:272:22: note: previous declaration of 'strncpy' with type 'char *(void)' 272 | extern char *strncpy(); /* avoid war */ | ^~~~~~~ --- argparse.o --- argparse.c: In function 'ArgParse': argparse.c:63:1: warning: old-style function definition [-Wold-style-definition] 63 | ArgParse(argc, argv) | ^~~~~~~~ argparse.c:66:1: error: number of arguments doesn't match prototype 66 | { | ^ In file included from argparse.c:28: conf.h:119:18: error: prototype declaration 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~~~~ argparse.c:67:20: error: conflicting types for 'atoi'; have 'int(void)' 67 | extern int atoi(); | ^~~~ In file included from /usr/include/stdlib.h:41, from argparse.c:54: /usr/include/iso/stdlib_iso.h:124:12: note: previous declaration of 'atoi' with type 'int(const char *)' 124 | extern int atoi(const char *); | ^~~~ argparse.c:68:22: error: conflicting types for 'calloc'; have 'void *(void)' 68 | extern void *calloc(); | ^~~~~~ /usr/include/iso/stdlib_iso.h:134:14: note: previous declaration of 'calloc' with type 'void *(long unsigned int, long unsigned int)' 134 | extern void *calloc(size_t, size_t); | ^~~~~~ argparse.c:82:30: error: conflicting types for 'getenv'; have 'char *(void)' 82 | extern char *getenv(); | ^~~~~~ /usr/include/iso/stdlib_iso.h:139:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 139 | extern char *getenv(const char *); | ^~~~~~ argparse.c:84:21: error: too many arguments to function 'getenv'; expected 0, have 1 84 | if (getenv("SKILL_VERBOSE") != NULL) | ^~~~~~ ~~~~~~~~~~~~~~~ argparse.c:82:30: note: declared here 82 | extern char *getenv(); | ^~~~~~ argparse.c:123:41: error: too many arguments to function 'Usage'; expected 0, have 1 123 | Usage(E_USAGE); | ^~~~~ conf.h:119:42: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~ argparse.c:163:41: error: too many arguments to function 'Usage'; expected 0, have 1 163 | Usage(E_USAGE); | ^~~~~ conf.h:119:42: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~ argparse.c:167:58: error: too many arguments to function 'atoi'; expected 0, have 1 167 | SigPri = atoi(*argv); | ^~~~ ~~~~~ argparse.c:67:20: note: declared here 67 | extern int atoi(); | ^~~~ argparse.c:169:57: error: too many arguments to function 'Usage'; expected 0, have 1 169 | Usage(E_SIGNO); | ^~~~~ conf.h:119:42: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~ argparse.c:171:59: error: too many arguments to function 'atoi'; expected 0, have 1 171 | SigPri = -atoi(*argv); | ^~~~ ~~~~~ argparse.c:67:20: note: declared here 67 | extern int atoi(); | ^~~~ argparse.c:177:41: error: too many arguments to function 'Usage'; expected 0, have 1 177 | Usage(E_USAGE); | ^~~~~ conf.h:119:42: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~ conf.h:76:51: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 76 | #define STREQU(s1,s2) ((*s1 == *s2) && (strcmp(s1,s2) == 0)) | ^~~~~~ argparse.c:179:45: note: in expansion of macro 'STREQU' 179 | if (STREQU(SigMap[SigPri], *argv)) { | ^~~~~~ argparse.c:55:1: note: include '' or provide a declaration of 'strcmp' 54 | #include +++ |+#include 55 | #endif argparse.c:203:42: error: too many arguments to function 'atoi'; expected 0, have 1 203 | SigPri = atoi(*argv); | ^~~~ ~~~~~ argparse.c:67:20: note: declared here 67 | extern int atoi(); | ^~~~ argparse.c:209:25: error: too many arguments to function 'Usage'; expected 0, have 1 209 | Usage(E_USAGE); /* dopey priority: usage error */ | ^~~~~ conf.h:119:42: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~ argparse.c:218:25: error: too many arguments to function 'Usage'; expected 0, have 1 218 | Usage(E_USAGE); /* no arg following flag */ | ^~~~~ conf.h:119:42: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~ argparse.c:76:27: error: too many arguments to function 'calloc'; expected 0, have 2 76 | if ((loc = (type) calloc((unsigned)cnt,sizeof(type))) == NULL) \ | ^~~~~~ argparse.c:225:41: note: in expansion of macro 'ALLOC' 225 | ALLOC(argcnt, tty_T *, TtyList, "tty"); | ^~~~~ argparse.c:68:22: note: declared here 68 | extern void *calloc(); | ^~~~~~ argparse.c:77:17: error: too many arguments to function 'Exceed'; expected 0, have 1 77 | Exceed(nstr) | ^~~~~~ argparse.c:225:41: note: in expansion of macro 'ALLOC' 225 | ALLOC(argcnt, tty_T *, TtyList, "tty"); | ^~~~~ conf.h:119:58: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~~ argparse.c:229:33: error: too many arguments to function 'Not'; expected 0, have 2 229 | Not(*argv, "tty"); | ^~~ ~~~~~ conf.h:119:51: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~ argparse.c:76:27: error: too many arguments to function 'calloc'; expected 0, have 2 76 | if ((loc = (type) calloc((unsigned)cnt,sizeof(type))) == NULL) \ | ^~~~~~ argparse.c:235:41: note: in expansion of macro 'ALLOC' 235 | ALLOC(argcnt, uid_T *, UidList, "user"); | ^~~~~ argparse.c:68:22: note: declared here 68 | extern void *calloc(); | ^~~~~~ argparse.c:77:17: error: too many arguments to function 'Exceed'; expected 0, have 1 77 | Exceed(nstr) | ^~~~~~ argparse.c:235:41: note: in expansion of macro 'ALLOC' 235 | ALLOC(argcnt, uid_T *, UidList, "user"); | ^~~~~ conf.h:119:58: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~~ argparse.c:239:33: error: too many arguments to function 'Not'; expected 0, have 2 239 | Not(*argv, "user name"); | ^~~ ~~~~~ conf.h:119:51: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~ argparse.c:76:27: error: too many arguments to function 'calloc'; expected 0, have 2 76 | if ((loc = (type) calloc((unsigned)cnt,sizeof(type))) == NULL) \ | ^~~~~~ argparse.c:245:41: note: in expansion of macro 'ALLOC' 245 | ALLOC(argcnt, pid_T *, PidList, "pid"); | ^~~~~ argparse.c:68:22: note: declared here 68 | extern void *calloc(); | ^~~~~~ argparse.c:77:17: error: too many arguments to function 'Exceed'; expected 0, have 1 77 | Exceed(nstr) | ^~~~~~ argparse.c:245:41: note: in expansion of macro 'ALLOC' 245 | ALLOC(argcnt, pid_T *, PidList, "pid"); | ^~~~~ conf.h:119:58: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~~ argparse.c:246:58: error: too many arguments to function 'atoi'; expected 0, have 1 246 | *(PidList + PidIndx++) = atoi(*argv); | ^~~~ ~~~~~ argparse.c:67:20: note: declared here 67 | extern int atoi(); | ^~~~ argparse.c:249:33: error: too many arguments to function 'Not'; expected 0, have 2 249 | Not(*argv, "process id"); | ^~~ ~~~~~ conf.h:119:51: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~ argparse.c:76:27: error: too many arguments to function 'calloc'; expected 0, have 2 76 | if ((loc = (type) calloc((unsigned)cnt,sizeof(type))) == NULL) \ | ^~~~~~ argparse.c:254:33: note: in expansion of macro 'ALLOC' 254 | ALLOC(argcnt, cmd_T *, CmdList, "command"); | ^~~~~ argparse.c:68:22: note: declared here 68 | extern void *calloc(); | ^~~~~~ argparse.c:77:17: error: too many arguments to function 'Exceed'; expected 0, have 1 77 | Exceed(nstr) | ^~~~~~ argparse.c:254:33: note: in expansion of macro 'ALLOC' 254 | ALLOC(argcnt, cmd_T *, CmdList, "command"); | ^~~~~ conf.h:119:58: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~~ argparse.c:260:41: error: too many arguments to function 'Not'; expected 0, have 2 260 | Not(*argv, "valid regular expression"); | ^~~ ~~~~~ conf.h:119:51: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~ argparse.c:263:33: error: too many arguments to function 'RegexComp'; expected 0, have 2 263 | RegexComp(*argv, (CmdList + CmdIndx)); | ^~~~~~~~~ ~~~~~ conf.h:114:17: note: declared here 114 | extern void RegexComp(); | ^~~~~~~~~ argparse.c:273:17: error: too many arguments to function 'Usage'; expected 0, have 1 273 | Usage((Fflag == 0 && Iflag == 0 && Nflag == 0 && | ^~~~~ conf.h:119:42: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~ argparse.c:76:27: error: too many arguments to function 'calloc'; expected 0, have 2 76 | if ((loc = (type) calloc((unsigned)cnt,sizeof(type))) == NULL) \ | ^~~~~~ argparse.c:284:17: note: in expansion of macro 'ALLOC' 284 | ALLOC(1, uid_T *, UidList, "user"); | ^~~~~ argparse.c:68:22: note: declared here 68 | extern void *calloc(); | ^~~~~~ argparse.c:77:17: error: too many arguments to function 'Exceed'; expected 0, have 1 77 | Exceed(nstr) | ^~~~~~ argparse.c:284:17: note: in expansion of macro 'ALLOC' 284 | ALLOC(1, uid_T *, UidList, "user"); | ^~~~~ conf.h:119:58: note: declared here 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~~ argparse.c: In function 'Not': argparse.c:320:1: warning: old-style function definition [-Wold-style-definition] 320 | Not(thought, this) | ^~~ argparse.c:322:1: error: number of arguments doesn't match prototype 322 | { | ^ conf.h:119:51: error: prototype declaration 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~ argparse.c: In function 'Exceed': argparse.c:333:1: warning: old-style function definition [-Wold-style-definition] 333 | Exceed(what) | ^~~~~~ argparse.c:335:1: error: number of arguments doesn't match prototype 335 | { | ^ conf.h:119:58: error: prototype declaration 119 | void MdepInit(), ArgParse(), ListSigs(), Usage(), Not(), Exceed(); | ^~~~~~ *** [argparse.o] Error code 1 bmake: stopped making "all" in /tmp/work/sysutils/skill/work/skill-4.1.4 --- main.o --- *** [main.o] Error code 1 bmake: stopped making "all" in /tmp/work/sysutils/skill/work/skill-4.1.4 bmake: 2 errors bmake: stopped making "all" in /tmp/work/sysutils/skill/work/skill-4.1.4 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/skill *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/sysutils/skill