=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for batchftp-1.02nb1
clang -pipe -Os    -c batchftp.c
batchftp.c:156:17: warning: passing arguments to 'assign_args' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        if (assign_args(argc, argv, user_name, pass_word, input_file, remote_host,&init_flag,&address_flag) == -1) {
                       ^
batchftp.c:173:16: warning: passing arguments to 'get_rhost' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                if (get_rhost(remote_host) == _NULL) {
                             ^
batchftp.c:192:24: warning: passing arguments to 'remove_white' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                bufptr = remove_white(linebuf);
                                     ^
batchftp.c:202:29: warning: passing arguments to 'process_entry' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                entry_flag = process_entry(bufptr, local_dir, remote_dir, &fptr, &mptr, &free_flag, &start_flag);
                                          ^
batchftp.c:108:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
main (argc, argv)
^
batchftp.c:255:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
char    *get_rhost (remote_host)
         ^
batchftp.c:95:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
char    *get_rhost ();
         ^
batchftp.c:298:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
char    *get_lhost (local_host)
         ^
batchftp.c:94:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
char    *get_lhost ();
         ^
batchftp.c:330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
init_fscript (remote_host, user_name, pass_word, fptr)
^
batchftp.c:345:10: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
char    *remove_white (s)
         ^
batchftp.c:86:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
char    *remove_white ();
         ^
batchftp.c:358:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
char *findword (s)
      ^
batchftp.c:87:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
char    *findword ();
         ^
batchftp.c:377:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
init_sh_script(f_stdout, ftp_script, sh_name)
^
batchftp.c:400:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int  process_entry (linebuf,local_dir, remote_dir, fptr, mptr, free_flag, start_flag)
     ^
batchftp.c:84:9: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
int     process_entry ();
        ^
batchftp.c:666:21: warning: passing arguments to 'strpos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        *init_flag = strpos(option_string , _NO_INIT);          /*set command switch flags */
                           ^
batchftp.c:667:24: warning: passing arguments to 'strpos' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        *address_flag = strpos(option_string, _NO_MAP);
                              ^
batchftp.c:686:12: warning: passing arguments to 'lower_case' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
        lower_case(remote_host);
                  ^
batchftp.c:631:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int     assign_args(argc, argv, user_name, pass_word, input_file, remote_host, init_flag, address_flag)
        ^
batchftp.c:85:9: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
int     assign_args ();
        ^
batchftp.c:802:29: warning: passing arguments to 'monitor_ftp' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                monitor_flag = monitor_ftp(&msg_ptr, f_stdout);
                                          ^
batchftp.c:806:22: error: too many arguments to function call, expected 0, have 2
                        pg_flag = setpgrp(pid, pid);                      /* make child group leader so that parent won't be killed */
                                  ~~~~~~~ ^~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/unistd.h:588:8: note: 'setpgrp' declared here
pid_t    setpgrp(void) __DARWIN_ALIAS(setpgrp);
         ^
batchftp.c:741:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
start_ftp (mptr, f_stdout, sh_name, alarm_flag, ftp_script)
^
batchftp.c:836:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int   monitor_ftp(mptr, f_stdout)
      ^
batchftp.c:89:9: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
int     monitor_ftp ();
        ^
batchftp.c:861:8: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
char  *lower_case(s)
       ^
batchftp.c:88:9: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
char   *lower_case ();
        ^
batchftp.c:900:13: warning: passing arguments to 'substr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                if (substr(linebuf, _T_COMPLETE) != _NULL) {
                          ^
batchftp.c:905:13: warning: passing arguments to 'substr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                if (substr(linebuf, _UNREACHABLE) != _NULL)   {
                          ^
batchftp.c:912:13: warning: passing arguments to 'substr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                if (substr(linebuf, _NO_HOST) != _NULL) {
                          ^
batchftp.c:919:15: warning: passing arguments to 'substr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                if (((substr(linebuf, _NO_LOGIN) != _NULL) && (transfers == 0)) || ((substr(linebuf, _NO_CONNECT) != _NULL) && (transfers == 0)))  {
                            ^
batchftp.c:919:78: warning: passing arguments to 'substr' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
                if (((substr(linebuf, _NO_LOGIN) != _NULL) && (transfers == 0)) || ((substr(linebuf, _NO_CONNECT) != _NULL) && (transfers == 0)))  {
                                                                                           ^
batchftp.c:882:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int   check_ftp(mptr, f_stdout, msgfile)
      ^
batchftp.c:90:9: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
int     check_ftp ();
        ^
batchftp.c:948:15: warning: call to undeclared function 'time'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
        seed = (int) time(0L);
                     ^
batchftp.c:942:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
unsigned      connect_delay (sleep_time)
              ^
batchftp.c:91:10: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
unsigned connect_delay ();
         ^
batchftp.c:970:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
start_session (mptr, f_stdout, sh_name, ftp_script, msgfile)
^
batchftp.c:1013:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
char   *substr (s1, s2)
        ^
batchftp.c:81:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
char  *substr ();
       ^
batchftp.c:1034:7: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int   strpos (s, c)
      ^
batchftp.c:82:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
int   strpos ();
      ^
43 warnings and 1 error generated.
*** [batchftp.o] Error code 1

bmake: stopped in /Users/pbulk/build/net/batchftp/work
1 error

bmake: stopped in /Users/pbulk/build/net/batchftp/work
*** Error code 2

Stop.
bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/batchftp
*** Error code 1

Stop.
bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/batchftp