=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/converters/hztty", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for hztty-2.0 --- bsd --- ./miniconf.sh cc -E make -j 2 DEFINES='-DBSD' hztty --- main.o --- --- tty.o --- --- main.o --- cc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DBSD -DHZTTY_GB_BIG5 -DHZTTY_UNICODE_GB -DHZTTY_UNICODE_BIG5 -I. -c main.c --- tty.o --- cc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -DBSD -DHZTTY_GB_BIG5 -DHZTTY_UNICODE_GB -DHZTTY_UNICODE_BIG5 -I. -c tty.c --- main.o --- main.c:96:1: error: return type defaults to 'int' [-Wimplicit-int] 96 | main(argc, argv) | ^~~~ main.c: In function 'main': main.c:96:1: warning: old-style function definition [-Wold-style-definition] main.c:100:14: error: conflicting types for 'getopt'; have 'int(void)' 100 | extern int getopt(); | ^~~~~~ In file included from config.h:16, from main.c:49: /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 *); | ^~~~~~ main.c:106:22: error: too many arguments to function 'getopt'; expected 0, have 3 106 | while ((ch = getopt(argc, argv, "I:O:T:ludh")) != EOF) | ^~~~~~ ~~~~ main.c:100:14: note: declared here 100 | extern int getopt(); | ^~~~~~ main.c:152:9: error: too many arguments to function 'get_term_mode'; expected 0, have 2 152 | get_term_mode(0, &defmode); | ^~~~~~~~~~~~~ ~ main.c:54:13: note: declared here 54 | extern void get_term_mode(); | ^~~~~~~~~~~~~ main.c:153:9: error: too many arguments to function 'make_raw'; expected 0, have 2 153 | make_raw(&defmode, &rawmode); | ^~~~~~~~ ~~~~~~~~ main.c:56:13: note: declared here 56 | extern void make_raw(); | ^~~~~~~~ main.c:154:9: error: too many arguments to function 'set_term_mode'; expected 0, have 2 154 | set_term_mode(0, &rawmode); | ^~~~~~~~~~~~~ ~ main.c:55:13: note: declared here 55 | extern void set_term_mode(); | ^~~~~~~~~~~~~ main.c:157:16: error: implicit declaration of function 'signal'; did you mean 'strsignal'? [-Wimplicit-function-declaration] 157 | (void) signal(SIGCHLD, finish); | ^~~~~~ | strsignal main.c: In function 'doinput': main.c:205:13: error: too many arguments to function 'in_stream_setup'; expected 0, have 1 205 | if (in_stream_setup (i_stream) < 0) | ^~~~~~~~~~~~~~~ ~~~~~~~~ In file included from main.c:50: io.h:30:12: note: declared here 30 | extern int in_stream_setup(), out_stream_setup(); | ^~~~~~~~~~~~~~~ main.c:208:22: error: too many arguments to function 'stream_read'; expected 0, have 3 208 | cc = stream_read(0, ibuf, BUFSIZ); | ^~~~~~~~~~~ ~ io.h:31:12: note: declared here 31 | extern int stream_read(), stream_write(); | ^~~~~~~~~~~ main.c: In function 'dooutput': main.c:223:13: error: too many arguments to function 'out_stream_setup'; expected 0, have 1 223 | if (out_stream_setup (o_stream) < 0) | ^~~~~~~~~~~~~~~~ ~~~~~~~~ io.h:30:31: note: declared here 30 | extern int in_stream_setup(), out_stream_setup(); | ^~~~~~~~~~~~~~~~ main.c:230:24: error: too many arguments to function 'stream_write'; expected 0, have 3 230 | (void) stream_write(1, obuf, cc); | ^~~~~~~~~~~~ ~ io.h:31:27: note: declared here 31 | extern int stream_read(), stream_write(); | ^~~~~~~~~~~~ main.c: In function 'fail': main.c:293:17: error: implicit declaration of function 'kill' [-Wimplicit-function-declaration] 293 | kill (child, SIGTERM); | ^~~~ main.c: In function 'done': main.c:305:25: error: too many arguments to function 'rmutmp'; expected 0, have 1 305 | rmutmp (subchild); | ^~~~~~ ~~~~~~~~ main.c:58:13: note: declared here 58 | extern void rmutmp(); | ^~~~~~ main.c:308:25: error: too many arguments to function 'set_term_mode'; expected 0, have 2 308 | set_term_mode (0, &defmode); | ^~~~~~~~~~~~~ ~ main.c:55:13: note: declared here 55 | extern void set_term_mode(); | ^~~~~~~~~~~~~ main.c: In function 'getmaster': main.c:316:13: error: too many arguments to function 'get_pty'; expected 0, have 1 316 | if (get_pty (&master) != 0) { | ^~~~~~~ ~~~~~~~ main.c:52:12: note: declared here 52 | extern int get_pty(); | ^~~~~~~ main.c: In function 'getslave': main.c:327:13: error: too many arguments to function 'get_tty'; expected 0, have 2 327 | if (get_tty (master, &slave) != 0) { | ^~~~~~~ ~~~~~~ main.c:53:12: note: declared here 53 | extern int get_tty(); | ^~~~~~~ main.c:334:9: error: too many arguments to function 'set_term_mode'; expected 0, have 2 334 | set_term_mode(slave, &defmode); | ^~~~~~~~~~~~~ ~~~~~ main.c:55:13: note: declared here 55 | extern void set_term_mode(); | ^~~~~~~~~~~~~ --- tty.o --- tty.c:36:14: error: conflicting types for 'ptsname'; have 'char *(void)' 36 | extern char *ptsname(); | ^~~~~~~ In file included from config.h:16, from tty.c:15: /usr/include/stdlib.h:239:14: note: previous declaration of 'ptsname' with type 'char *(int)' 239 | extern char *ptsname(int); | ^~~~~~~ tty.c: In function 'get_pty': tty.c:54:5: warning: old-style function definition [-Wold-style-definition] 54 | int get_pty (pty) | ^~~~~~~ tty.c:70:28: error: too many arguments to function 'ptsname'; expected 0, have 1 70 | strcpy(ttydev, ptsname(*pty)); | ^~~~~~~ ~~~~ tty.c:36:14: note: declared here 36 | extern char *ptsname(); | ^~~~~~~ tty.c: In function 'pty_search': tty.c:163:12: warning: old-style function definition [-Wold-style-definition] 163 | static int pty_search(pty) | ^~~~~~~~~~ tty.c: In function 'get_tty': tty.c:237:5: warning: old-style function definition [-Wold-style-definition] 237 | int get_tty (master, tty) | ^~~~~~~ tty.c:253:27: error: too many arguments to function 'ptsname'; expected 0, have 1 253 | if ((*tty = open (ptsname(master), O_RDWR)) < 0) | ^~~~~~~ ~~~~~~ tty.c:36:14: note: declared here 36 | extern char *ptsname(); | ^~~~~~~ tty.c: In function 'get_term_mode': tty.c:314:6: warning: old-style function definition [-Wold-style-definition] 314 | void get_term_mode(tty, termptr) | ^~~~~~~~~~~~~ tty.c: In function 'set_term_mode': tty.c:333:6: warning: old-style function definition [-Wold-style-definition] 333 | void set_term_mode(tty, termptr) | ^~~~~~~~~~~~~ tty.c: In function 'make_raw': tty.c:356:6: warning: old-style function definition [-Wold-style-definition] 356 | void make_raw(oldtermptr, newtermptr) | ^~~~~~~~ tty.c: At top level: tty.c:444:23: error: conflicting types for 'getpwuid'; have 'struct passwd *(void)' 444 | extern struct passwd *getpwuid(); | ^~~~~~~~ In file included from config.h:11: /usr/include/pwd.h:69:23: note: previous declaration of 'getpwuid' with type 'struct passwd *(uid_t)' {aka 'struct passwd *(unsigned int)'} 69 | extern struct passwd *getpwuid(uid_t); /* MT-unsafe */ | ^~~~~~~~ tty.c:447:15: error: conflicting types for 'time'; have 'time_t(void)' {aka 'long int(void)'} 447 | extern time_t time(); | ^~~~ In file included from /usr/include/time.h:40, from /usr/include/sys/time.h:490, from /usr/include/sys/select.h:53, from /usr/include/sys/types.h:687, from config.h:5: /usr/include/iso/time_iso.h:100:15: note: previous declaration of 'time' with type 'time_t(time_t *)' {aka 'long int(long int *)'} 100 | extern time_t time(time_t *); | ^~~~ tty.c: In function 'addutmp': tty.c:477:14: error: too many arguments to function 'getpwuid'; expected 0, have 1 477 | pw = getpwuid(getuid()); | ^~~~~~~~ ~~~~~~~~ tty.c:444:23: note: declared here 444 | extern struct passwd *getpwuid(); | ^~~~~~~~ tty.c:536:24: error: too many arguments to function 'time'; expected 0, have 1 536 | utmp.ut_time = time ((time_t *) 0); | ^~~~ ~~~~~~~~~~~~ tty.c:447:15: note: declared here 447 | extern time_t time(); | ^~~~ tty.c: In function 'rmutmp': tty.c:548:6: warning: old-style function definition [-Wold-style-definition] 548 | void rmutmp(child_pid) | ^~~~~~ tty.c:571:34: error: too many arguments to function 'time'; expected 0, have 1 571 | utptr->ut_time = time ((time_t *) 0); | ^~~~ ~~~~~~~~~~~~ tty.c:447:15: note: declared here 447 | extern time_t time(); | ^~~~ --- main.o --- *** [main.o] Error code 1 make[1]: stopped making "hztty" in /tmp/work/converters/hztty/work/hztty-2.0 --- tty.o --- *** [tty.o] Error code 1 make[1]: stopped making "hztty" in /tmp/work/converters/hztty/work/hztty-2.0 make[1]: 2 errors make[1]: stopped making "hztty" in /tmp/work/converters/hztty/work/hztty-2.0 *** [bsd] Error code 2 bmake: stopped making "bsd" in /tmp/work/converters/hztty/work/hztty-2.0 bmake: 1 error bmake: stopped making "bsd" in /tmp/work/converters/hztty/work/hztty-2.0 *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/converters/hztty *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/converters/hztty