=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/net/batchftp", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for batchftp-1.02nb1 --- batchftp.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -c batchftp.c batchftp.c: In function 'main': batchftp.c:108:1: warning: old-style function definition [-Wold-style-definition] 108 | main (argc, argv) | ^~~~ batchftp.c:156:13: error: too many arguments to function 'assign_args'; expected 0, have 8 156 | if (assign_args(argc, argv, user_name, pass_word, input_file, remote_host,&init_flag,&address_flag) == -1) { | ^~~~~~~~~~~ ~~~~ batchftp.c:85:9: note: declared here 85 | int assign_args (); | ^~~~~~~~~~~ batchftp.c:173:21: error: too many arguments to function 'get_rhost'; expected 0, have 1 173 | if (get_rhost(remote_host) == _NULL) { | ^~~~~~~~~ ~~~~~~~~~~~ batchftp.c:95:10: note: declared here 95 | char *get_rhost (); | ^~~~~~~~~ batchftp.c:192:26: error: too many arguments to function 'remove_white'; expected 0, have 1 192 | bufptr = remove_white(linebuf); | ^~~~~~~~~~~~ ~~~~~~~ batchftp.c:86:10: note: declared here 86 | char *remove_white (); | ^~~~~~~~~~~~ batchftp.c:202:30: error: too many arguments to function 'process_entry'; expected 0, have 7 202 | entry_flag = process_entry(bufptr, local_dir, remote_dir, &fptr, &mptr, &free_flag, &start_flag); | ^~~~~~~~~~~~~ ~~~~~~ batchftp.c:84:9: note: declared here 84 | int process_entry (); | ^~~~~~~~~~~~~ batchftp.c: In function 'get_rhost': batchftp.c:255:10: warning: old-style function definition [-Wold-style-definition] 255 | char *get_rhost (remote_host) | ^~~~~~~~~ batchftp.c:257:1: error: number of arguments doesn't match prototype 257 | { | ^ batchftp.c:95:10: error: prototype declaration 95 | char *get_rhost (); | ^~~~~~~~~ batchftp.c:277:9: error: implicit declaration of function 'bzero' [-Wimplicit-function-declaration] 277 | bzero((char *)&in, sizeof(in)); | ^~~~~ batchftp.c:277:9: warning: incompatible implicit declaration of built-in function 'bzero' [-Wbuiltin-declaration-mismatch] batchftp.c:278:9: error: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 278 | bcopy(hp->h_addr, (char *)&in, hp -> h_length); /* copy Internet address into structure for ASCII conversion */ | ^~~~~ batchftp.c:278:9: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch] batchftp.c: In function 'get_lhost': batchftp.c:298:10: warning: old-style function definition [-Wold-style-definition] 298 | char *get_lhost (local_host) | ^~~~~~~~~ batchftp.c:300:1: error: number of arguments doesn't match prototype 300 | { | ^ batchftp.c:94:10: error: prototype declaration 94 | char *get_lhost (); | ^~~~~~~~~ batchftp.c: In function 'init_fscript': batchftp.c:330:1: warning: old-style function definition [-Wold-style-definition] 330 | init_fscript (remote_host, user_name, pass_word, fptr) | ^~~~~~~~~~~~ batchftp.c: In function 'remove_white': batchftp.c:345:10: warning: old-style function definition [-Wold-style-definition] 345 | char *remove_white (s) | ^~~~~~~~~~~~ batchftp.c:347:1: error: number of arguments doesn't match prototype 347 | { | ^ batchftp.c:86:10: error: prototype declaration 86 | char *remove_white (); | ^~~~~~~~~~~~ batchftp.c: In function 'findword': batchftp.c:358:7: warning: old-style function definition [-Wold-style-definition] 358 | char *findword (s) | ^~~~~~~~ batchftp.c:360:1: error: number of arguments doesn't match prototype 360 | { | ^ batchftp.c:87:10: error: prototype declaration 87 | char *findword (); | ^~~~~~~~ batchftp.c: In function 'init_sh_script': batchftp.c:377:1: warning: old-style function definition [-Wold-style-definition] 377 | init_sh_script(f_stdout, ftp_script, sh_name) | ^~~~~~~~~~~~~~ batchftp.c: In function 'process_entry': batchftp.c:400:6: warning: old-style function definition [-Wold-style-definition] 400 | int process_entry (linebuf,local_dir, remote_dir, fptr, mptr, free_flag, start_flag) | ^~~~~~~~~~~~~ batchftp.c:408:1: error: number of arguments doesn't match prototype 408 | { | ^ batchftp.c:84:9: error: prototype declaration 84 | int process_entry (); | ^~~~~~~~~~~~~ batchftp.c:446:31: error: too many arguments to function 'remove_white'; expected 0, have 1 446 | str = remove_white(str); /* skip any whitespace before option character */ | ^~~~~~~~~~~~ ~~~ batchftp.c:345:10: note: declared here 345 | char *remove_white (s) | ^~~~~~~~~~~~ batchftp.c:465:39: error: too many arguments to function 'findword'; expected 0, have 1 465 | str = findword(str); | ^~~~~~~~ ~~~ batchftp.c:358:7: note: declared here 358 | char *findword (s) | ^~~~~~~~ batchftp.c:466:39: error: too many arguments to function 'remove_white'; expected 0, have 1 466 | str = remove_white(str); | ^~~~~~~~~~~~ ~~~ batchftp.c:345:10: note: declared here 345 | char *remove_white (s) | ^~~~~~~~~~~~ batchftp.c:468:39: error: too many arguments to function 'findword'; expected 0, have 1 468 | str = findword(str); | ^~~~~~~~ ~~~ batchftp.c:358:7: note: declared here 358 | char *findword (s) | ^~~~~~~~ batchftp.c:484:15: error: too many arguments to function 'remove_white'; expected 0, have 1 484 | str = remove_white(str); | ^~~~~~~~~~~~ ~~~ batchftp.c:345:10: note: declared here 345 | char *remove_white (s) | ^~~~~~~~~~~~ batchftp.c:494:15: error: too many arguments to function 'findword'; expected 0, have 1 494 | str = findword(str); /* parse file arguments for regular mode transfers */ | ^~~~~~~~ ~~~ batchftp.c:358:7: note: declared here 358 | char *findword (s) | ^~~~~~~~ batchftp.c:495:15: error: too many arguments to function 'remove_white'; expected 0, have 1 495 | str = remove_white(str); | ^~~~~~~~~~~~ ~~~ batchftp.c:345:10: note: declared here 345 | char *remove_white (s) | ^~~~~~~~~~~~ batchftp.c:497:15: error: too many arguments to function 'findword'; expected 0, have 1 497 | str = findword(str); | ^~~~~~~~ ~~~ batchftp.c:358:7: note: declared here 358 | char *findword (s) | ^~~~~~~~ batchftp.c: In function 'assign_args': batchftp.c:631:9: warning: old-style function definition [-Wold-style-definition] 631 | int assign_args(argc, argv, user_name, pass_word, input_file, remote_host, init_flag, address_flag) | ^~~~~~~~~~~ batchftp.c:640:1: error: number of arguments doesn't match prototype 640 | { | ^ batchftp.c:85:9: error: prototype declaration 85 | int assign_args (); | ^~~~~~~~~~~ batchftp.c:666:22: error: too many arguments to function 'strpos'; expected 0, have 2 666 | *init_flag = strpos(option_string , _NO_INIT); /*set command switch flags */ | ^~~~~~ ~~~~~~~~~~~~~ batchftp.c:82:7: note: declared here 82 | int strpos (); | ^~~~~~ batchftp.c:667:25: error: too many arguments to function 'strpos'; expected 0, have 2 667 | *address_flag = strpos(option_string, _NO_MAP); | ^~~~~~ ~~~~~~~~~~~~~ batchftp.c:82:7: note: declared here 82 | int strpos (); | ^~~~~~ batchftp.c:686:9: error: too many arguments to function 'lower_case'; expected 0, have 1 686 | lower_case(remote_host); | ^~~~~~~~~~ ~~~~~~~~~~~ batchftp.c:88:9: note: declared here 88 | char *lower_case (); | ^~~~~~~~~~ batchftp.c:687:9: error: too many arguments to function 'get_lhost'; expected 0, have 1 687 | get_lhost(local_host); /* get local host information */ | ^~~~~~~~~ ~~~~~~~~~~ batchftp.c:298:10: note: declared here 298 | char *get_lhost (local_host) | ^~~~~~~~~ batchftp.c: In function 'start_ftp': batchftp.c:741:1: warning: old-style function definition [-Wold-style-definition] 741 | start_ftp (mptr, f_stdout, sh_name, alarm_flag, ftp_script) | ^~~~~~~~~ batchftp.c:758:9: error: implicit declaration of function 'sigsetmask'; did you mean 'sigstack'? [-Wimplicit-function-declaration] 758 | sigsetmask(0); /* do not block any signals */ | ^~~~~~~~~~ | sigstack batchftp.c:780:29: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 780 | if (signal(SIGALRM, alarm_handler) == (void *)-1) { | ^~~~~~~~~~~~~ | | | void (*)(void) In file included from /usr/include/signal.h:42, from batchftp.c:65: /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); | ^~~~~~~~~~~~~ batchftp.c:92:10: note: 'alarm_handler' declared here 92 | void alarm_handler (); | ^~~~~~~~~~~~~ batchftp.c:802:32: error: too many arguments to function 'monitor_ftp'; expected 0, have 2 802 | monitor_flag = monitor_ftp(&msg_ptr, f_stdout); | ^~~~~~~~~~~ ~~~~~~~~ batchftp.c:89:9: note: declared here 89 | int monitor_ftp (); | ^~~~~~~~~~~ batchftp.c:806:35: error: too many arguments to function 'setpgrp'; expected 0, have 2 806 | pg_flag = setpgrp(pid, pid); /* make child group leader so that parent won't be killed */ | ^~~~~~~ ~~~ In file included from batchftp.c:71: /usr/include/unistd.h:514:14: note: declared here 514 | extern pid_t setpgrp(void); | ^~~~~~~ batchftp.c: In function 'monitor_ftp': batchftp.c:836:7: warning: old-style function definition [-Wold-style-definition] 836 | int monitor_ftp(mptr, f_stdout) | ^~~~~~~~~~~ batchftp.c:839:1: error: number of arguments doesn't match prototype 839 | { | ^ batchftp.c:89:9: error: prototype declaration 89 | int monitor_ftp (); | ^~~~~~~~~~~ batchftp.c: In function 'lower_case': batchftp.c:861:8: warning: old-style function definition [-Wold-style-definition] 861 | char *lower_case(s) | ^~~~~~~~~~ batchftp.c:863:1: error: number of arguments doesn't match prototype 863 | { | ^ batchftp.c:88:9: error: prototype declaration 88 | char *lower_case (); | ^~~~~~~~~~ batchftp.c: In function 'check_ftp': batchftp.c:882:7: warning: old-style function definition [-Wold-style-definition] 882 | int check_ftp(mptr, f_stdout, msgfile) | ^~~~~~~~~ batchftp.c:886:1: error: number of arguments doesn't match prototype 886 | { | ^ batchftp.c:90:9: error: prototype declaration 90 | int check_ftp (); | ^~~~~~~~~ batchftp.c:898:17: error: too many arguments to function 'lower_case'; expected 0, have 1 898 | lower_case(linebuf); /* convert entire line to lowercase to simplify searching */ | ^~~~~~~~~~ ~~~~~~~ batchftp.c:861:8: note: declared here 861 | char *lower_case(s) | ^~~~~~~~~~ batchftp.c:900:21: error: too many arguments to function 'substr'; expected 0, have 2 900 | if (substr(linebuf, _T_COMPLETE) != _NULL) { | ^~~~~~ ~~~~~~~ batchftp.c:81:8: note: declared here 81 | char *substr (); | ^~~~~~ batchftp.c:905:21: error: too many arguments to function 'substr'; expected 0, have 2 905 | if (substr(linebuf, _UNREACHABLE) != _NULL) { | ^~~~~~ ~~~~~~~ batchftp.c:81:8: note: declared here 81 | char *substr (); | ^~~~~~ batchftp.c:912:21: error: too many arguments to function 'substr'; expected 0, have 2 912 | if (substr(linebuf, _NO_HOST) != _NULL) { | ^~~~~~ ~~~~~~~ batchftp.c:81:8: note: declared here 81 | char *substr (); | ^~~~~~ batchftp.c:919:23: error: too many arguments to function 'substr'; expected 0, have 2 919 | if (((substr(linebuf, _NO_LOGIN) != _NULL) && (transfers == 0)) || ((substr(linebuf, _NO_CONNECT) != _NULL) && (transfers == 0))) { | ^~~~~~ ~~~~~~~ batchftp.c:81:8: note: declared here 81 | char *substr (); | ^~~~~~ batchftp.c:919:86: error: too many arguments to function 'substr'; expected 0, have 2 919 | if (((substr(linebuf, _NO_LOGIN) != _NULL) && (transfers == 0)) || ((substr(linebuf, _NO_CONNECT) != _NULL) && (transfers == 0))) { | ^~~~~~ ~~~~~~~ batchftp.c:81:8: note: declared here 81 | char *substr (); | ^~~~~~ batchftp.c: In function 'connect_delay': batchftp.c:942:15: warning: old-style function definition [-Wold-style-definition] 942 | unsigned connect_delay (sleep_time) | ^~~~~~~~~~~~~ batchftp.c:944:1: error: number of arguments doesn't match prototype 944 | { | ^ batchftp.c:91:10: error: prototype declaration 91 | unsigned connect_delay (); | ^~~~~~~~~~~~~ batchftp.c: In function 'start_session': batchftp.c:970:1: warning: old-style function definition [-Wold-style-definition] 970 | start_session (mptr, f_stdout, sh_name, ftp_script, msgfile) | ^~~~~~~~~~~~~ batchftp.c:987:30: error: too many arguments to function 'connect_delay'; expected 0, have 1 987 | sleep_time = connect_delay(sleep_time); | ^~~~~~~~~~~~~ ~~~~~~~~~~ batchftp.c:942:15: note: declared here 942 | unsigned connect_delay (sleep_time) | ^~~~~~~~~~~~~ batchftp.c:997:40: error: too many arguments to function 'monitor_ftp'; expected 0, have 2 997 | monitor_flag = monitor_ftp(&msg_ptr, f_stdout); | ^~~~~~~~~~~ ~~~~~~~~ batchftp.c:836:7: note: declared here 836 | int monitor_ftp(mptr, f_stdout) | ^~~~~~~~~~~ batchftp.c:1003:30: error: too many arguments to function 'check_ftp'; expected 0, have 3 1003 | check_flag = check_ftp(&msg_ptr, f_stdout, msgfile); | ^~~~~~~~~ ~~~~~~~~ batchftp.c:882:7: note: declared here 882 | int check_ftp(mptr, f_stdout, msgfile) | ^~~~~~~~~ batchftp.c: In function 'substr': batchftp.c:1013:9: warning: old-style function definition [-Wold-style-definition] 1013 | char *substr (s1, s2) | ^~~~~~ batchftp.c:1016:1: error: number of arguments doesn't match prototype 1016 | { | ^ batchftp.c:81:8: error: prototype declaration 81 | char *substr (); | ^~~~~~ batchftp.c: In function 'strpos': batchftp.c:1034:7: warning: old-style function definition [-Wold-style-definition] 1034 | int strpos (s, c) | ^~~~~~ batchftp.c:1037:1: error: number of arguments doesn't match prototype 1037 | { | ^ batchftp.c:82:7: error: prototype declaration 82 | int strpos (); | ^~~~~~ *** [batchftp.o] Error code 1 bmake: stopped making "all" in /tmp/work/net/batchftp/work bmake: 1 error bmake: stopped making "all" in /tmp/work/net/batchftp/work *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/batchftp *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/batchftp