=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/mail/cucipop", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for cucipop-1.31nb3 --- cucipop.o --- --- authenticate.o --- --- cucipop.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -O -DINET6 -c cucipop.c --- authenticate.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -O -DINET6 -c authenticate.c In file included from authenticate.c:47: authenticate.h:16:42: error: type defaults to 'int' in declaration of 'sock' [-Wimplicit-int] 16 | *auth_finduser P((char*const user,const sock)), | ^~~~ authenticate.h:9:17: note: in definition of macro 'P' 9 | #define P(x) x | ^ authenticate.h:22:9: error: type defaults to 'int' in declaration of 'allowemptypw' [-Wimplicit-int] 22 | const allowemptypw)), | ^~~~~~~~~~~~ authenticate.h:9:17: note: in definition of macro 'P' 9 | #define P(x) x | ^ authenticate.c: In function 'castlower': authenticate.c:86:13: warning: old-style function definition [-Wold-style-definition] 86 | static void castlower(str)register char*str; /* and I'll take the low road */ | ^~~~~~~~~ authenticate.c: In function 'getlogname': authenticate.c:92:13: warning: old-style function definition [-Wold-style-definition] 92 | static void getlogname(user,sock)const char*user;const int sock; | ^~~~~~~~~~ authenticate.c: In function 'cgetpwnam': authenticate.c:128:28: warning: old-style function definition [-Wold-style-definition] 128 | static const struct passwd*cgetpwnam(user,sock)const char*user; | ^~~~~~~~~ authenticate.c:141:15: error: too many arguments to function 'db->get'; expected 0, have 5 141 | if(db->get(db,0,&k,&d,0)) | ^~ ~~ In file included from authenticate.c:67: sdb.h:8:9: note: declared here 8 | int(*get)(); | ^~~ authenticate.c:143:27: error: too many arguments to function 'db->get'; expected 0, have 5 143 | foundentry=!db->get(db,0,&k,&d,0)<<1; /* fallback check */ | ^~ ~~ sdb.h:8:9: note: declared here 8 | int(*get)(); | ^~~ authenticate.c:160:9: error: too many arguments to function 'db->close'; expected 0, have 2 160 | db->close(db,0); | ^~ ~~ sdb.h:10:9: note: declared here 10 | int(*close)(); | ^~~~~ authenticate.c: In function 'cgetpwuid': authenticate.c:174:28: warning: old-style function definition [-Wold-style-definition] 174 | static const struct passwd*cgetpwuid(uid,sock)const uid_t uid;const int sock; | ^~~~~~~~~ authenticate.c: In function 'auth_finduser': authenticate.c:186:24: warning: old-style function definition [-Wold-style-definition] 186 | /*const*/auth_identity*auth_finduser(user,sock)char*const user;const int sock; | ^~~~~~~~~~~~~ authenticate.c: In function 'auth_finduid': authenticate.c:203:24: warning: old-style function definition [-Wold-style-definition] 203 | /*const*/auth_identity*auth_finduid(uid,sock)const uid_t uid;const int sock; | ^~~~~~~~~~~~ authenticate.c:204:1: error: number of arguments doesn't match prototype 204 | { if(!(authi.pw=cgetpwuid(uid,sock))) /* /etc/passwd user lookup */ | ^ authenticate.h:17:3: error: prototype declaration 17 | *auth_finduid Q((const uid_t uid,const sock)); | ^~~~~~~~~~~~ authenticate.c: In function 'auth_checkpassword': authenticate.c:215:5: warning: old-style function definition [-Wold-style-definition] 215 | int auth_checkpassword(pass,pw,allowemptypw)const auth_identity*const pass; | ^~~~~~~~~~~~~~~~~~ authenticate.c:227:22: error: implicit declaration of function 'crypt' [-Wimplicit-function-declaration] 227 | return !strcmp(rpw,crypt(pw,rpw)); /* compare the passwords */ | ^~~~~ authenticate.c:227:22: error: passing argument 2 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion] 227 | return !strcmp(rpw,crypt(pw,rpw)); /* compare the passwords */ | ^~~~~~~~~~~~~ | | | int In file included from /usr/include/string.h:35, from authenticate.c:39: /usr/include/iso/string_iso.h:74:33: note: expected 'const char *' but argument is of type 'int' 74 | extern int strcmp(const char *, const char *); | ^~~~~~~~~~~~ authenticate.c: In function 'auth_getsecret': authenticate.c:230:12: warning: old-style function definition [-Wold-style-definition] 230 | const char*auth_getsecret(pass)const auth_identity*const pass; | ^~~~~~~~~~~~~~ authenticate.c: In function 'auth_checkvalidshell': authenticate.c:234:5: warning: old-style function definition [-Wold-style-definition] 234 | int auth_checkvalidshell(pass)const auth_identity*const pass; | ^~~~~~~~~~~~~~~~~~~~ authenticate.c: In function 'auth_mailboxname': authenticate.c:273:12: warning: old-style function definition [-Wold-style-definition] 273 | const char*auth_mailboxname(pass)auth_identity*const pass; | ^~~~~~~~~~~~~~~~ authenticate.c: In function 'auth_whatuid': authenticate.c:307:7: warning: old-style function definition [-Wold-style-definition] 307 | uid_t auth_whatuid(pass)const auth_identity*const pass; | ^~~~~~~~~~~~ authenticate.c: In function 'auth_whatgid': authenticate.c:311:7: warning: old-style function definition [-Wold-style-definition] 311 | uid_t auth_whatgid(pass)const auth_identity*const pass; | ^~~~~~~~~~~~ authenticate.c: In function 'auth_homedir': authenticate.c:315:12: warning: old-style function definition [-Wold-style-definition] 315 | const char*auth_homedir(pass)const auth_identity*const pass; | ^~~~~~~~~~~~ authenticate.c: In function 'auth_shell': authenticate.c:319:12: warning: old-style function definition [-Wold-style-definition] 319 | const char*auth_shell(pass)const auth_identity*const pass; | ^~~~~~~~~~ authenticate.c: In function 'auth_username': authenticate.c:323:12: warning: old-style function definition [-Wold-style-definition] 323 | const char*auth_username(pass)const auth_identity*const pass; | ^~~~~~~~~~~~~ --- cucipop.o --- In file included from cucipop.c:45: authenticate.h:16:42: error: type defaults to 'int' in declaration of 'sock' [-Wimplicit-int] 16 | *auth_finduser P((char*const user,const sock)), | ^~~~ authenticate.h:9:17: note: in definition of macro 'P' 9 | #define P(x) x | ^ authenticate.h:22:9: error: type defaults to 'int' in declaration of 'allowemptypw' [-Wimplicit-int] 22 | const allowemptypw)), | ^~~~~~~~~~~~ authenticate.h:9:17: note: in definition of macro 'P' 9 | #define P(x) x | ^ cucipop.c: In function 'setsignals': cucipop.c:56:36: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 56 | #define Signal(sig,fn) signal(sig,(void(*)())(fn)) | ^~~~~~~~~~~~~~~ | | | void (*)(void) cucipop.c:121:3: note: in expansion of macro 'Signal' 121 | { Signal(SIGHUP,bailout);Signal(SIGINT,bailout);Signal(SIGTERM,bailout); | ^~~~~~ In file included from /usr/include/signal.h:42, from cucipop.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); | ^~~~~~~~~~~~~ cucipop.c:106:13: note: 'bailout' declared here 106 | static void bailout(void); | ^~~~~~~ cucipop.c:56:36: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 56 | #define Signal(sig,fn) signal(sig,(void(*)())(fn)) | ^~~~~~~~~~~~~~~ | | | void (*)(void) cucipop.c:121:26: note: in expansion of macro 'Signal' 121 | { Signal(SIGHUP,bailout);Signal(SIGINT,bailout);Signal(SIGTERM,bailout); | ^~~~~~ /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); | ^~~~~~~~~~~~~ cucipop.c:106:13: note: 'bailout' declared here 106 | static void bailout(void); | ^~~~~~~ cucipop.c:56:36: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 56 | #define Signal(sig,fn) signal(sig,(void(*)())(fn)) | ^~~~~~~~~~~~~~~ | | | void (*)(void) cucipop.c:121:49: note: in expansion of macro 'Signal' 121 | { Signal(SIGHUP,bailout);Signal(SIGINT,bailout);Signal(SIGTERM,bailout); | ^~~~~~ /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); | ^~~~~~~~~~~~~ cucipop.c:106:13: note: 'bailout' declared here 106 | static void bailout(void); | ^~~~~~~ cucipop.c:56:36: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 56 | #define Signal(sig,fn) signal(sig,(void(*)())(fn)) | ^~~~~~~~~~~~~~~ | | | void (*)(void) cucipop.c:122:3: note: in expansion of macro 'Signal' 122 | Signal(SIGPIPE,bailout);Signal(SIGALRM,bailout); | ^~~~~~ /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); | ^~~~~~~~~~~~~ cucipop.c:106:13: note: 'bailout' declared here 106 | static void bailout(void); | ^~~~~~~ cucipop.c:56:36: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 56 | #define Signal(sig,fn) signal(sig,(void(*)())(fn)) | ^~~~~~~~~~~~~~~ | | | void (*)(void) cucipop.c:122:27: note: in expansion of macro 'Signal' 122 | Signal(SIGPIPE,bailout);Signal(SIGALRM,bailout); | ^~~~~~ /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); | ^~~~~~~~~~~~~ cucipop.c:106:13: note: 'bailout' declared here 106 | static void bailout(void); | ^~~~~~~ cucipop.c:56:36: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 56 | #define Signal(sig,fn) signal(sig,(void(*)())(fn)) | ^~~~~~~~~~~~~~~ | | | void (*)(void) cucipop.c:124:3: note: in expansion of macro 'Signal' 124 | Signal(SIGURG,bailout); | ^~~~~~ /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); | ^~~~~~~~~~~~~ cucipop.c:106:13: note: 'bailout' declared here 106 | static void bailout(void); | ^~~~~~~ cucipop.c: In function 'openmailbox': cucipop.c:580:6: error: too many arguments to function 'hsort'; expected 0, have 5 580 | hsort(msgs,msgs_filled,sizeof*msgs,mcmp,mswap); | ^~~~~ ~~~~ In file included from cucipop.c:48: hsort.h:8:6: note: declared here 8 | void hsort Q((void*base,size_t nelem,size_t width, | ^~~~~ cucipop.c: At top level: cucipop.c:640:1: error: return type defaults to 'int' [-Wimplicit-int] 640 | main(int argc,const char*const argv[]) | ^~~~ --- authenticate.o --- *** [authenticate.o] Error code 1 bmake: stopped making "all" in /tmp/work/mail/cucipop/work/cucipop-1.31 --- cucipop.o --- cucipop.c: In function 'main': cucipop.c:720:36: error: too many arguments to function 'auth_finduid'; expected 0, have 2 720 | auth_mailboxname(auth_finduid(getuid(),0)),virtualhostdb, | ^~~~~~~~~~~~ ~~~~~~~~ authenticate.h:17:3: note: declared here 17 | *auth_finduid Q((const uid_t uid,const sock)); | ^~~~~~~~~~~~ *** [cucipop.o] Error code 1 bmake: stopped making "all" in /tmp/work/mail/cucipop/work/cucipop-1.31 bmake: 2 errors bmake: stopped making "all" in /tmp/work/mail/cucipop/work/cucipop-1.31 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/mail/cucipop *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/mail/cucipop