+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/llnlxftp-2.1nb4/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/llnlxftp-2.1nb4/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for llnlxftp-2.1nb4
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c abort.c
abort.c:70:1: warning: return type defaults to 'int' [-Wimplicit-int]
   70 | show_abort_dialog()
      | ^~~~~~~~~~~~~~~~~
abort.c: In function 'show_abort_dialog':
abort.c:74:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
   74 |         add_dialog_to_list(w_abortDialog);
      |         ^~~~~~~~~~~~~~~~~~
abort.c:75:9: warning: implicit declaration of function 'force_update' [-Wimplicit-function-declaration]
   75 |         force_update(w_abortDialog);
      |         ^~~~~~~~~~~~
abort.c: At top level:
abort.c:83:1: warning: return type defaults to 'int' [-Wimplicit-int]
   83 | hide_abort_dialog()
      | ^~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c aconnect.c
aconnect.c: In function 'cb_connect_to_anonymous':
aconnect.c:148:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  148 |     int host = (int)client_data;
      |                ^
aconnect.c:151:9: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  151 |         raise_okflag();
      |         ^~~~~~~~~~~~
aconnect.c:155:17: warning: implicit declaration of function 'disconnect' [-Wimplicit-function-declaration]
  155 |                 disconnect(host);
      |                 ^~~~~~~~~~
aconnect.c:159:9: warning: implicit declaration of function 'update_aconnect_dialog'; did you mean 'create_aconnect_dialog'? [-Wimplicit-function-declaration]
  159 |         update_aconnect_dialog(host);
      |         ^~~~~~~~~~~~~~~~~~~~~~
      |         create_aconnect_dialog
aconnect.c:163:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  163 |         add_dialog_to_list(aconnect.w_dialog);
      |         ^~~~~~~~~~~~~~~~~~
aconnect.c: In function 'create_aconnect_dialog':
aconnect.c:234:9: warning: implicit declaration of function 'fix_list_color' [-Wimplicit-function-declaration]
  234 |         fix_list_color(aconnect.w_hostList);
      |         ^~~~~~~~~~~~~~
aconnect.c:332:9: warning: implicit declaration of function 'set_bg_to_sb_trough_color' [-Wimplicit-function-declaration]
  332 |         set_bg_to_sb_trough_color(aconnect.w_hostName,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
aconnect.c: At top level:
aconnect.c:346:1: warning: return type defaults to 'int' [-Wimplicit-int]
  346 | update_aconnect_dialog(host)
      | ^~~~~~~~~~~~~~~~~~~~~~
aconnect.c: In function 'update_aconnect_dialog':
aconnect.c:356:5: warning: implicit declaration of function 'retrieve_hostuser_cache' [-Wimplicit-function-declaration]
  356 |     retrieve_hostuser_cache(&list, sort_caches);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
aconnect.c:359:5: warning: implicit declaration of function 'reset_list' [-Wimplicit-function-declaration]
  359 |     reset_list(aconnect.w_hostList);
      |     ^~~~~~~~~~
aconnect.c:361:21: warning: implicit declaration of function 'parse_hostuser' [-Wimplicit-function-declaration]
  361 |                 if (parse_hostuser(list->entries[i], &host_part, &user_part) == 0) {
      |                     ^~~~~~~~~~~~~~
aconnect.c:373:5: warning: implicit declaration of function 'release_array_list' [-Wimplicit-function-declaration]
  373 |     release_array_list(list);
      |     ^~~~~~~~~~~~~~~~~~
aconnect.c: In function 'cb_aconnect_single_selection':
aconnect.c:425:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  425 |                 fatal_error("Trouble in cb_aconnect_single_selection()");
      |                 ^~~~~~~~~~~
aconnect.c: In function 'cb_aconnect_help':
aconnect.c:444:5: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  444 |     help_dialog(aconnect.w_dialog, True, "Connect to Anonymous", aconnect_help);
      |     ^~~~~~~~~~~
aconnect.c: In function 'cb_aconnect_connect':
aconnect.c:510:9: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  510 |         warning_error("Unable to log onto FTP server.  No user name.");
      |         ^~~~~~~~~~~~~
aconnect.c:516:13: warning: implicit declaration of function 'parse_hostname' [-Wimplicit-function-declaration]
  516 |     switch (parse_hostname(hostname, &host_part, &port_part)) {
      |             ^~~~~~~~~~~~~~
aconnect.c:533:9: warning: implicit declaration of function 'add_to_cache' [-Wimplicit-function-declaration]
  533 |         add_to_cache(USER, hostname, username);
      |         ^~~~~~~~~~~~
aconnect.c:538:26: warning: implicit declaration of function 'do_connect' [-Wimplicit-function-declaration]
  538 |                 retval = do_connect(host, hostname, username, NULL, NULL,
      |                          ^~~~~~~~~~
aconnect.c:557:5: warning: implicit declaration of function 'use_busy_cursor' [-Wimplicit-function-declaration]
  557 |     use_busy_cursor();
      |     ^~~~~~~~~~~~~~~
aconnect.c:560:9: warning: implicit declaration of function 'update_dir_displays' [-Wimplicit-function-declaration]
  560 |     if (update_dir_displays(host, False) < 0) {
      |         ^~~~~~~~~~~~~~~~~~~
aconnect.c:561:9: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  561 |         restore_prev_cursor();
      |         ^~~~~~~~~~~~~~~~~~~
aconnect.c:562:9: warning: implicit declaration of function 'lost_connection'; did you mean 'XtNconnection'? [-Wimplicit-function-declaration]
  562 |         lost_connection(host);
      |         ^~~~~~~~~~~~~~~
      |         XtNconnection
aconnect.c:565:5: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  565 |     update_xfer_controls();
      |     ^~~~~~~~~~~~~~~~~~~~
aconnect.c:566:5: warning: implicit declaration of function 'update_dirname_menu' [-Wimplicit-function-declaration]
  566 |     update_dirname_menu(host);
      |     ^~~~~~~~~~~~~~~~~~~
aconnect.c:567:5: warning: implicit declaration of function 'update_dirpath' [-Wimplicit-function-declaration]
  567 |     update_dirpath(host);
      |     ^~~~~~~~~~~~~~
aconnect.c:568:5: warning: implicit declaration of function 'update_dir_cache' [-Wimplicit-function-declaration]
  568 |     update_dir_cache(host);
      |     ^~~~~~~~~~~~~~~~
aconnect.c:569:5: warning: implicit declaration of function 'update_hostname' [-Wimplicit-function-declaration]
  569 |     update_hostname(host);
      |     ^~~~~~~~~~~~~~~
aconnect.c:570:5: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  570 |     update_host_controls(host);
      |     ^~~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c account.c
account.c: In function 'create_account_dialog':
account.c:106:5: warning: implicit declaration of function 'add_wm_delete_window_cb' [-Wimplicit-function-declaration]
  106 |     add_wm_delete_window_cb(w_accountDialog, cb_account_cancel, NULL);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
account.c: In function 'get_account':
account.c:166:5: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  166 |     add_dialog_to_list(w_accountDialog);
      |     ^~~~~~~~~~~~~~~~~~
account.c:167:5: warning: implicit declaration of function 'use_normal_cursor' [-Wimplicit-function-declaration]
  167 |     use_normal_cursor();
      |     ^~~~~~~~~~~~~~~~~
account.c:172:5: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  172 |     restore_prev_cursor();
      |     ^~~~~~~~~~~~~~~~~~~
account.c: In function 'cb_map_account_dialog':
account.c:196:5: warning: implicit declaration of function 'center_dialog_over_dialog' [-Wimplicit-function-declaration]
  196 |     center_dialog_over_dialog(widget, w_pseudo_parent);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c arconnect.c
arconnect.c:86:1: warning: return type defaults to 'int' [-Wimplicit-int]
   86 | do_connect(host, hostname, username, password, account, w_pseudo_parent)
      | ^~~~~~~~~~
arconnect.c: In function 'do_connect':
arconnect.c:105:9: warning: implicit declaration of function 'use_busy_cursor' [-Wimplicit-function-declaration]
  105 |         use_busy_cursor();
      |         ^~~~~~~~~~~~~~~
arconnect.c:112:13: warning: implicit declaration of function 'parse_hostname' [-Wimplicit-function-declaration]
  112 |         if (parse_hostname(hostname, &host_part, &port_part))
      |             ^~~~~~~~~~~~~~
arconnect.c:113:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  113 |                 fatal_error("Bug in do_connect()");
      |                 ^~~~~~~~~~~
arconnect.c:114:18: warning: implicit declaration of function 'ftp_open' [-Wimplicit-function-declaration]
  114 |         retval = ftp_open(host, host_part, port_part);
      |                  ^~~~~~~~
arconnect.c:117:17: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
  117 |                 sprintf(buf, "Unable to connect to %s", hostname);
      |                 ^~~~~~~
arconnect.c:62:1: note: include '<stdio.h>' or provide a declaration of 'sprintf'
   61 | #include "str.h"
  +++ |+#include <stdio.h>
   62 | 
arconnect.c:117:17: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch]
  117 |                 sprintf(buf, "Unable to connect to %s", hostname);
      |                 ^~~~~~~
arconnect.c:117:17: note: include '<stdio.h>' or provide a declaration of 'sprintf'
arconnect.c:118:17: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  118 |                 warning_error(buf);
      |                 ^~~~~~~~~~~~~
arconnect.c:119:17: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  119 |                 restore_prev_cursor();
      |                 ^~~~~~~~~~~~~~~~~~~
arconnect.c:124:17: warning: implicit declaration of function 'ftp_user' [-Wimplicit-function-declaration]
  124 |         switch (ftp_user(host, username)) {
      |                 ^~~~~~~~
arconnect.c:131:17: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
  131 |                 close(hinfo[host].ctrl_fd);
      |                 ^~~~~
arconnect.c:148:18: warning: implicit declaration of function 'ftp_password'; did you mean 'get_password'? [-Wimplicit-function-declaration]
  148 |         retval = ftp_password(host, passwrd);
      |                  ^~~~~~~~~~~~
      |                  get_password
arconnect.c:177:13: warning: implicit declaration of function 'ftp_account'; did you mean 'get_account'? [-Wimplicit-function-declaration]
  177 |         if (ftp_account(host, acct) < 0) {
      |             ^~~~~~~~~~~
      |             get_account
arconnect.c:190:9: warning: implicit declaration of function 'ftp_system' [-Wimplicit-function-declaration]
  190 |         ftp_system(host, False);
      |         ^~~~~~~~~~
arconnect.c:192:17: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  192 |                 write_log("*** System is ");
      |                 ^~~~~~~~~
arconnect.c:202:17: warning: implicit declaration of function 'retrieve_cache' [-Wimplicit-function-declaration]
  202 |                 retrieve_cache(DIRECTORY, hostname, &list, False);
      |                 ^~~~~~~~~~~~~~
arconnect.c:204:29: warning: implicit declaration of function 'remote_cd' [-Wimplicit-function-declaration]
  204 |                         if (remote_cd(host, list->entries[0], False, True) != 0) {
      |                             ^~~~~~~~~
arconnect.c:205:33: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch]
  205 |                                 sprintf(msg, "Unable to change directory to %s",
      |                                 ^~~~~~~
arconnect.c:205:33: note: include '<stdio.h>' or provide a declaration of 'sprintf'
arconnect.c:210:17: warning: implicit declaration of function 'release_array_list' [-Wimplicit-function-declaration]
  210 |                 release_array_list(list);
      |                 ^~~~~~~~~~~~~~~~~~
arconnect.c:212:13: warning: implicit declaration of function 'remote_pwd' [-Wimplicit-function-declaration]
  212 |         if (remote_pwd(host, &wd) < 0) {
      |             ^~~~~~~~~~
arconnect.c: At top level:
arconnect.c:266:1: warning: return type defaults to 'int' [-Wimplicit-int]
  266 | parse_hostname(hostname, host_part, port_part)
      | ^~~~~~~~~~~~~~
arconnect.c:320:1: warning: return type defaults to 'int' [-Wimplicit-int]
  320 | parse_hostuser(hostuser, host_part, user_part)
      | ^~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c cache.c
cache.c:111:1: warning: return type defaults to 'int' [-Wimplicit-int]
  111 | construct_cache_filename()
      | ^~~~~~~~~~~~~~~~~~~~~~~~
cache.c: In function 'save_cache':
cache.c:133:17: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  133 |                 warning_error("Unable to save cache.");
      |                 ^~~~~~~~~~~~~
cache.c: In function 'read_cache_from_file':
cache.c:170:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  170 |                 fatal_error("Bug in read_cache_from_file()");
      |                 ^~~~~~~~~~~
cache.c:193:49: warning: implicit declaration of function 'add_to_cache' [-Wimplicit-function-declaration]
  193 |                                                 add_to_cache(i, host_name, value);
      |                                                 ^~~~~~~~~~~~
cache.c: At top level:
cache.c:208:1: warning: return type defaults to 'int' [-Wimplicit-int]
  208 | add_to_cache(cache_id, host_name, value)
      | ^~~~~~~~~~~~
cache.c: In function 'retrieve_cache':
cache.c:381:17: warning: implicit declaration of function 'quicksort' [-Wimplicit-function-declaration]
  381 |                 quicksort(values, hptr->cache[cache_id].count, strcmp);
      |                 ^~~~~~~~~
cache.c: At top level:
cache.c:395:1: warning: return type defaults to 'int' [-Wimplicit-int]
  395 | update_dir_cache(host)
      | ^~~~~~~~~~~~~~~~
cache.c:412:1: warning: return type defaults to 'int' [-Wimplicit-int]
  412 | retrieve_hostuser_cache(list, sort)
      | ^~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c changedir.c
changedir.c: In function 'cb_change_dir':
changedir.c:112:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  112 |         int host = (int)client_data;
      |                    ^
changedir.c:116:5: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  116 |     raise_okflag();
      |     ^~~~~~~~~~~~
changedir.c:120:5: warning: implicit declaration of function 'update_changedir_dialog'; did you mean 'create_changedir_dialog'? [-Wimplicit-function-declaration]
  120 |     update_changedir_dialog(host);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
      |     create_changedir_dialog
changedir.c:123:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  123 |         add_dialog_to_list(w_changeDirDialog);
      |         ^~~~~~~~~~~~~~~~~~
changedir.c: In function 'create_changedir_dialog':
changedir.c:155:9: warning: implicit declaration of function 'fix_list_color' [-Wimplicit-function-declaration]
  155 |         fix_list_color(w_list);
      |         ^~~~~~~~~~~~~~
changedir.c:158:9: warning: implicit declaration of function 'set_bg_to_sb_trough_color' [-Wimplicit-function-declaration]
  158 |         set_bg_to_sb_trough_color(
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
changedir.c: At top level:
changedir.c:172:1: warning: return type defaults to 'int' [-Wimplicit-int]
  172 | update_changedir_dialog(host)
      | ^~~~~~~~~~~~~~~~~~~~~~~
changedir.c: In function 'update_changedir_dialog':
changedir.c:181:9: warning: implicit declaration of function 'retrieve_cache' [-Wimplicit-function-declaration]
  181 |         retrieve_cache(DIRECTORY, hinfo[host].hostname, &list, sort_caches);
      |         ^~~~~~~~~~~~~~
changedir.c:196:9: warning: implicit declaration of function 'release_array_list' [-Wimplicit-function-declaration]
  196 |         release_array_list(list);
      |         ^~~~~~~~~~~~~~~~~~
changedir.c: In function 'cb_changedir_ok':
changedir.c:231:5: warning: implicit declaration of function 'clear_selected_entries' [-Wimplicit-function-declaration]
  231 |     clear_selected_entries(host);
      |     ^~~~~~~~~~~~~~~~~~~~~~
changedir.c: In function 'change_directory':
changedir.c:253:5: warning: implicit declaration of function 'use_busy_cursor' [-Wimplicit-function-declaration]
  253 |     use_busy_cursor();
      |     ^~~~~~~~~~~~~~~
changedir.c:258:17: warning: implicit declaration of function 'local_cd' [-Wimplicit-function-declaration]
  258 |             if (local_cd(host, hinfo[host].wd, True) < 0) {
      |                 ^~~~~~~~
changedir.c:259:17: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  259 |                 warning_error("Unable to change directory");
      |                 ^~~~~~~~~~~~~
changedir.c:263:21: warning: implicit declaration of function 'remote_cd' [-Wimplicit-function-declaration]
  263 |             switch (remote_cd(host, hinfo[host].wd, False, True)) {
      |                     ^~~~~~~~~
changedir.c:268:17: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  268 |                 restore_prev_cursor();
      |                 ^~~~~~~~~~~~~~~~~~~
changedir.c:269:17: warning: implicit declaration of function 'lost_connection'; did you mean 'XtNconnection'? [-Wimplicit-function-declaration]
  269 |                 lost_connection(host);
      |                 ^~~~~~~~~~~~~~~
      |                 XtNconnection
changedir.c:282:13: warning: implicit declaration of function 'local_pwd' [-Wimplicit-function-declaration]
  282 |         if (local_pwd(&(hinfo[host].wd)) != 0)
      |             ^~~~~~~~~
changedir.c:283:13: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  283 |             fatal_error("Unable to get local working directory");
      |             ^~~~~~~~~~~
changedir.c:294:13: warning: implicit declaration of function 'remote_pwd' [-Wimplicit-function-declaration]
  294 |         if (remote_pwd(host, &wd) < 0) {
      |             ^~~~~~~~~~
changedir.c:304:9: warning: implicit declaration of function 'update_dir_displays' [-Wimplicit-function-declaration]
  304 |     if (update_dir_displays(host, False) < 0) {
      |         ^~~~~~~~~~~~~~~~~~~
changedir.c:310:5: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  310 |     update_xfer_controls();
      |     ^~~~~~~~~~~~~~~~~~~~
changedir.c:311:5: warning: implicit declaration of function 'update_dirname_menu' [-Wimplicit-function-declaration]
  311 |     update_dirname_menu(host);
      |     ^~~~~~~~~~~~~~~~~~~
changedir.c:312:5: warning: implicit declaration of function 'update_dirpath' [-Wimplicit-function-declaration]
  312 |     update_dirpath(host);
      |     ^~~~~~~~~~~~~~
changedir.c:313:5: warning: implicit declaration of function 'update_dir_cache' [-Wimplicit-function-declaration]
  313 |     update_dir_cache(host);
      |     ^~~~~~~~~~~~~~~~
changedir.c:314:5: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  314 |     update_host_controls(host);
      |     ^~~~~~~~~~~~~~~~~~~~
changedir.c: In function 'cb_changedir_help':
changedir.c:329:5: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  329 |     help_dialog(w_toplev, True, "Change Directory", help_change_dir);
      |     ^~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c cmds.c
cmds.c:77:1: warning: return type defaults to 'int' [-Wimplicit-int]
   77 | ftp_open(host, ip_addr, port)
      | ^~~~~~~~
cmds.c: In function 'ftp_open':
cmds.c:93:21: warning: implicit declaration of function 'inet_addr' [-Wimplicit-function-declaration]
   93 |         if ((temp = inet_addr(ip_addr)) != ~0L)
      |                     ^~~~~~~~~
cmds.c:108:17: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  108 |                 write_log(msg);
      |                 ^~~~~~~~~
cmds.c:113:17: warning: implicit declaration of function 'report_perror' [-Wimplicit-function-declaration]
  113 |                 report_perror(host, "Opening socket stream");
      |                 ^~~~~~~~~~~~~
cmds.c:120:13: warning: implicit declaration of function 'iconnect'; did you mean 'connect'? [-Wimplicit-function-declaration]
  120 |         if (iconnect(ctrl_fd, (struct sockaddr *)&remote,(int)sizeof(remote)) < 0) {
      |             ^~~~~~~~
      |             connect
cmds.c:122:17: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  122 |                 close(ctrl_fd);
      |                 ^~~~~
      |                 pclose
cmds.c:131:17: warning: implicit declaration of function 'get_ftp_reply' [-Wimplicit-function-declaration]
  131 |         scode = get_ftp_reply(host, reply, MAXFTPREPLY, &code, maxt, False);
      |                 ^~~~~~~~~~~~~
cmds.c:134:17: warning: implicit declaration of function 'determine_server_from_open' [-Wimplicit-function-declaration]
  134 |                 determine_server_from_open(host, reply);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
cmds.c:137:17: warning: implicit declaration of function 'report_client_timeout' [-Wimplicit-function-declaration]
  137 |                 report_client_timeout(host);
      |                 ^~~~~~~~~~~~~~~~~~~~~
cmds.c:141:25: warning: implicit declaration of function 'print_ftp_reply' [-Wimplicit-function-declaration]
  141 |                         print_ftp_reply(host, reply);
      |                         ^~~~~~~~~~~~~~~
cmds.c: At top level:
cmds.c:153:1: warning: return type defaults to 'int' [-Wimplicit-int]
  153 | ftp_user(host, username)
      | ^~~~~~~~
cmds.c: In function 'ftp_user':
cmds.c:164:23: warning: implicit declaration of function 'send_ftp_cmd' [-Wimplicit-function-declaration]
  164 |         if ((retval = send_ftp_cmd(host, cmd)) < 0)
      |                       ^~~~~~~~~~~~
cmds.c: At top level:
cmds.c:191:1: warning: return type defaults to 'int' [-Wimplicit-int]
  191 | ftp_password(host, password)
      | ^~~~~~~~~~~~
cmds.c:232:1: warning: return type defaults to 'int' [-Wimplicit-int]
  232 | ftp_account(host, account)
      | ^~~~~~~~~~~
cmds.c:272:1: warning: return type defaults to 'int' [-Wimplicit-int]
  272 | ftp_passive(host, port)
      | ^~~~~~~~~~~
cmds.c:321:1: warning: return type defaults to 'int' [-Wimplicit-int]
  321 | ftp_type(host, mode)
      | ^~~~~~~~
cmds.c:369:1: warning: return type defaults to 'int' [-Wimplicit-int]
  369 | ftp_port(host, hostport)
      | ^~~~~~~~
cmds.c:411:1: warning: return type defaults to 'int' [-Wimplicit-int]
  411 | ftp_system(host, print_error_msg)
      | ^~~~~~~~~~
cmds.c: In function 'ftp_system':
cmds.c:428:17: warning: implicit declaration of function 'determine_server_from_syst' [-Wimplicit-function-declaration]
  428 |                 determine_server_from_syst(host, reply);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
cmds.c: At top level:
cmds.c:448:1: warning: return type defaults to 'int' [-Wimplicit-int]
  448 | ftp_allocate(host, size)
      | ^~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c color.c
color.c:65:1: warning: return type defaults to 'int' [-Wimplicit-int]
   65 | color_display()
      | ^~~~~~~~~~~~~
color.c:132:1: warning: return type defaults to 'int' [-Wimplicit-int]
  132 | fix_horizontal_text_sb_color(widget)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
color.c:150:1: warning: return type defaults to 'int' [-Wimplicit-int]
  150 | fix_vertical_text_sb_color(widget)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c ctrlconn.c
ctrlconn.c:88:1: warning: return type defaults to 'int' [-Wimplicit-int]
   88 | write_tcp(host, fd, buf, n)
      | ^~~~~~~~~
ctrlconn.c: In function 'write_tcp':
ctrlconn.c:100:31: warning: implicit declaration of function 'iwrite'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
  100 |                 if ((nbytes = iwrite(fd, &buf[total_nbytes], n-total_nbytes)) < 0) {
      |                               ^~~~~~
      |                               fwrite
ctrlconn.c:102:25: warning: implicit declaration of function 'report_perror' [-Wimplicit-function-declaration]
  102 |                         report_perror(host, "Writing connection");
      |                         ^~~~~~~~~~~~~
ctrlconn.c: At top level:
ctrlconn.c:123:1: warning: return type defaults to 'int' [-Wimplicit-int]
  123 | read_tcp(host, fd, buf, n, maxtime, process_xevents)
      | ^~~~~~~~
ctrlconn.c: In function 'read_tcp':
ctrlconn.c:137:25: warning: implicit declaration of function 'select_on_read' [-Wimplicit-function-declaration]
  137 |                 switch (select_on_read(fd, maxtime, process_xevents)) {
      |                         ^~~~~~~~~~~~~~
ctrlconn.c:139:35: warning: implicit declaration of function 'iread'; did you mean 'fread'? [-Wimplicit-function-declaration]
  139 |                     if ((nbytes = iread(fd, &buf[total_nbytes], n-total_nbytes)) < 0) {
      |                                   ^~~~~
      |                                   fread
ctrlconn.c: At top level:
ctrlconn.c:169:1: warning: return type defaults to 'int' [-Wimplicit-int]
  169 | select_on_read(fd, maxtime, process_xevents)
      | ^~~~~~~~~~~~~~
ctrlconn.c: In function 'select_on_read':
ctrlconn.c:198:31: warning: implicit declaration of function 'max_fds' [-Wimplicit-function-declaration]
  198 |                 nfds = select(max_fds(), &readfds, NULL, &exceptfds, &timeout);
      |                               ^~~~~~~
ctrlconn.c: At top level:
ctrlconn.c:224:1: warning: return type defaults to 'int' [-Wimplicit-int]
  224 | get_ftp_reply(host, reply, maxreply, code, maxtime, process_xevents)
      | ^~~~~~~~~~~~~
ctrlconn.c: In function 'get_ftp_reply':
ctrlconn.c:246:34: warning: implicit declaration of function 'get_ftp_line' [-Wimplicit-function-declaration]
  246 |                 if ((replycode = get_ftp_line(host, fd, line, MAXFTPLINE, maxtime,
      |                                  ^~~~~~~~~~~~
ctrlconn.c:266:17: warning: implicit declaration of function 'print_ftp_reply'; did you mean 'get_ftp_reply'? [-Wimplicit-function-declaration]
  266 |                 print_ftp_reply(host, reply);
      |                 ^~~~~~~~~~~~~~~
      |                 get_ftp_reply
ctrlconn.c:272:25: warning: implicit declaration of function 'write_log'; did you mean 'write_tcp'? [-Wimplicit-function-declaration]
  272 |                         write_log("*** FTP server on remote host timed out.\n");
      |                         ^~~~~~~~~
      |                         write_tcp
ctrlconn.c: At top level:
ctrlconn.c:300:1: warning: return type defaults to 'int' [-Wimplicit-int]
  300 | get_ftp_line(host, fd, line, maxline, maxtime, process_xevents)
      | ^~~~~~~~~~~~
ctrlconn.c:376:1: warning: return type defaults to 'int' [-Wimplicit-int]
  376 | send_ftp_cmd(host, cmd)
      | ^~~~~~~~~~~~
ctrlconn.c: In function 'send_ftp_cmd':
ctrlconn.c:386:17: warning: implicit declaration of function 'print_ftp_cmd'; did you mean 'send_ftp_cmd'? [-Wimplicit-function-declaration]
  386 |                 print_ftp_cmd(host,cmd);
      |                 ^~~~~~~~~~~~~
      |                 send_ftp_cmd
ctrlconn.c: At top level:
ctrlconn.c:404:1: warning: return type defaults to 'int' [-Wimplicit-int]
  404 | sig_pipe()
      | ^~~~~~~~
ctrlconn.c:417:1: warning: return type defaults to 'int' [-Wimplicit-int]
  417 | urgent_abort(host)
      | ^~~~~~~~~~~~
ctrlconn.c: In function 'urgent_abort':
ctrlconn.c:435:13: warning: implicit declaration of function 'isend'; did you mean 'send'? [-Wimplicit-function-declaration]
  435 |         if (isend(fd, buf, 1, MSG_OOB) != 1)
      |             ^~~~~
      |             send
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c cursor.c
cursor.c:112:1: warning: return type defaults to 'int' [-Wimplicit-int]
  112 | use_busy_cursor()
      | ^~~~~~~~~~~~~~~
cursor.c:121:1: warning: return type defaults to 'int' [-Wimplicit-int]
  121 | use_normal_cursor()
      | ^~~~~~~~~~~~~~~~~
cursor.c: In function 'remove_dialog_from_list':
cursor.c:234:9: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  234 |         fatal_error("Bug in remove_dialog_from_list()");
      |         ^~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c dataconn.c
dataconn.c:70:1: warning: return type defaults to 'int' [-Wimplicit-int]
   70 | init_data_conn(host)
      | ^~~~~~~~~~~~~~
dataconn.c: In function 'init_data_conn':
dataconn.c:84:9: warning: implicit declaration of function 'report_perror' [-Wimplicit-function-declaration]
   84 |         report_perror(host, "Opening stream socket");
      |         ^~~~~~~~~~~~~
dataconn.c:98:17: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
   98 |                 close(sock);
      |                 ^~~~~
      |                 pclose
dataconn.c:131:23: warning: implicit declaration of function 'ftp_port' [-Wimplicit-function-declaration]
  131 |         if ((retval = ftp_port(host, buf)) < 0) {
      |                       ^~~~~~~~
dataconn.c: At top level:
dataconn.c:146:1: warning: return type defaults to 'int' [-Wimplicit-int]
  146 | accept_data_conn(host, data_fd)
      | ^~~~~~~~~~~~~~~~
dataconn.c: In function 'accept_data_conn':
dataconn.c:156:17: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  156 |                 write_log("*** Will try to accept connection\n");
      |                 ^~~~~~~~~
dataconn.c:158:23: warning: implicit declaration of function 'iaccept'; did you mean 'accept'? [-Wimplicit-function-declaration]
  158 |         new_data_fd = iaccept(data_fd, (struct sockaddr *)&remote, &addrlen);
      |                       ^~~~~~~
      |                       accept
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c delete.c
delete.c: In function 'cb_delete':
delete.c:89:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   89 |         int host = (int)client_data;
      |                    ^
delete.c: In function 'cb_rdelete':
delete.c:104:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  104 |         int host = (int)client_data;
      |                    ^
delete.c: In function 'init_delete':
delete.c:123:9: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  123 |         raise_okflag();
      |         ^~~~~~~~~~~~
delete.c:128:34: warning: implicit declaration of function 'verify_selection' [-Wimplicit-function-declaration]
  128 |                         retval = verify_selection(host,
      |                                  ^~~~~~~~~~~~~~~~
delete.c:138:9: warning: implicit declaration of function 'use_busy_cursor' [-Wimplicit-function-declaration]
  138 |         use_busy_cursor();
      |         ^~~~~~~~~~~~~~~
delete.c:141:9: warning: implicit declaration of function 'show_mp_monitor' [-Wimplicit-function-declaration]
  141 |         show_mp_monitor("Now Deleting:");
      |         ^~~~~~~~~~~~~~~
delete.c:142:9: warning: implicit declaration of function 'clear_mp_monitor' [-Wimplicit-function-declaration]
  142 |         clear_mp_monitor();
      |         ^~~~~~~~~~~~~~~~
delete.c:145:9: warning: implicit declaration of function 'enable_controls' [-Wimplicit-function-declaration]
  145 |         enable_controls(False);
      |         ^~~~~~~~~~~~~~~
delete.c:158:9: warning: implicit declaration of function 'strip_off_symbol' [-Wimplicit-function-declaration]
  158 |         strip_off_symbol(hinfo[host].system, hinfo[host].server, ptr->entry);
      |         ^~~~~~~~~~~~~~~~
delete.c: At top level:
delete.c:179:1: warning: return type defaults to 'int' [-Wimplicit-int]
  179 | clean_up_del_ctrl()
      | ^~~~~~~~~~~~~~~~~
delete.c: In function 'clean_up_del_ctrl':
delete.c:194:17: warning: implicit declaration of function 'release_linked_list' [-Wimplicit-function-declaration]
  194 |                 release_linked_list(&del_ctrl.head[i]);
      |                 ^~~~~~~~~~~~~~~~~~~
delete.c: At top level:
delete.c:203:1: warning: return type defaults to 'int' [-Wimplicit-int]
  203 | cb_delete_entries()
      | ^~~~~~~~~~~~~~~~~
delete.c: In function 'cb_delete_entries':
delete.c:223:13: warning: implicit declaration of function 'mp_abort_requested' [-Wimplicit-function-declaration]
  223 |         if (mp_abort_requested())
      |             ^~~~~~~~~~~~~~~~~~
delete.c:242:9: warning: implicit declaration of function 'release_path_links' [-Wimplicit-function-declaration]
  242 |         release_path_links(rel_path_links);
      |         ^~~~~~~~~~~~~~~~~~
delete.c:252:29: warning: implicit declaration of function 'local_cd' [-Wimplicit-function-declaration]
  252 |                         if (local_cd(host, del_ctrl.full_path, False) == 0)
      |                             ^~~~~~~~
delete.c:255:33: warning: implicit declaration of function 'remote_cd' [-Wimplicit-function-declaration]
  255 |                         switch (remote_cd(host, del_ctrl.full_path, True, False)) {
      |                                 ^~~~~~~~~
delete.c:264:37: warning: implicit declaration of function 'local_ls' [-Wimplicit-function-declaration]
  264 |                                 if (local_ls(del_ctrl.full_path, &list, False) != 0) {
      |                                     ^~~~~~~~
delete.c:265:41: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  265 |                                         warning_error("Unable to get directory list");
      |                                         ^~~~~~~~~~~~~
delete.c:269:41: warning: implicit declaration of function 'remote_ls' [-Wimplicit-function-declaration]
  269 |                                 switch (remote_ls(host, del_ctrl.full_path, &list, False)) {
      |                                         ^~~~~~~~~
delete.c:290:25: warning: implicit declaration of function 'release_array_list' [-Wimplicit-function-declaration]
  290 |                         release_array_list(list);
      |                         ^~~~~~~~~~~~~~~~~~
delete.c:298:9: warning: implicit declaration of function 'update_mp_monitor' [-Wimplicit-function-declaration]
  298 |         update_mp_monitor(del_ctrl.rel_path);
      |         ^~~~~~~~~~~~~~~~~
delete.c:300:26: warning: implicit declaration of function 'local_delete'; did you mean 'cb_delete'? [-Wimplicit-function-declaration]
  300 |                 retval = local_delete(host, del_ctrl.full_path);
      |                          ^~~~~~~~~~~~
      |                          cb_delete
delete.c:309:41: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  309 |                                         fatal_error("Trouble in cb_delete_entries()");
      |                                         ^~~~~~~~~~~
delete.c:313:42: warning: implicit declaration of function 'remote_rmdir' [-Wimplicit-function-declaration]
  313 |                                 retval = remote_rmdir(host, temp, True);
      |                                          ^~~~~~~~~~~~
delete.c:325:42: warning: implicit declaration of function 'remote_delete'; did you mean 'init_delete'? [-Wimplicit-function-declaration]
  325 |                                 retval = remote_delete(host, del_ctrl.full_path, True);
      |                                          ^~~~~~~~~~~~~
      |                                          init_delete
delete.c:340:17: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  340 |                 write_log(msg);
      |                 ^~~~~~~~~
delete.c:354:9: warning: implicit declaration of function 'hide_mp_monitor' [-Wimplicit-function-declaration]
  354 |         hide_mp_monitor();
      |         ^~~~~~~~~~~~~~~
delete.c:356:17: warning: implicit declaration of function 'hide_abort_dialog' [-Wimplicit-function-declaration]
  356 |                 hide_abort_dialog();
      |                 ^~~~~~~~~~~~~~~~~
delete.c:358:13: warning: implicit declaration of function 'update_dir_displays' [-Wimplicit-function-declaration]
  358 |         if (update_dir_displays(host, False) < 0)
      |             ^~~~~~~~~~~~~~~~~~~
delete.c:360:9: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  360 |         update_xfer_controls();
      |         ^~~~~~~~~~~~~~~~~~~~
delete.c:361:9: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  361 |         update_host_controls(host);
      |         ^~~~~~~~~~~~~~~~~~~~
delete.c:363:17: warning: implicit declaration of function 'beep' [-Wimplicit-function-declaration]
  363 |                 beep();
      |                 ^~~~
delete.c:364:9: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  364 |         restore_prev_cursor();
      |         ^~~~~~~~~~~~~~~~~~~
delete.c:392:9: warning: implicit declaration of function 'clear_selected_entries'; did you mean 'cb_delete_entries'? [-Wimplicit-function-declaration]
  392 |         clear_selected_entries(host);
      |         ^~~~~~~~~~~~~~~~~~~~~~
      |         cb_delete_entries
delete.c:394:9: warning: implicit declaration of function 'lost_connection'; did you mean 'XtNconnection'? [-Wimplicit-function-declaration]
  394 |         lost_connection(host);
      |         ^~~~~~~~~~~~~~~
      |         XtNconnection
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c destdir.c
destdir.c: In function 'create_destdir_dialog':
destdir.c:212:5: warning: implicit declaration of function 'fix_list_color' [-Wimplicit-function-declaration]
  212 |     fix_list_color(destdir.w_dirList);
      |     ^~~~~~~~~~~~~~
destdir.c: In function 'cb_destdir_set_dir':
destdir.c:243:5: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  243 |     raise_okflag();
      |     ^~~~~~~~~~~~
destdir.c:255:5: warning: implicit declaration of function 'release_path_links' [-Wimplicit-function-declaration]
  255 |     release_path_links(wd_links);
      |     ^~~~~~~~~~~~~~~~~~
destdir.c:258:5: warning: implicit declaration of function 'use_busy_cursor' [-Wimplicit-function-declaration]
  258 |     use_busy_cursor();
      |     ^~~~~~~~~~~~~~~
destdir.c:259:18: warning: implicit declaration of function 'change_destdir_directory' [-Wimplicit-function-declaration]
  259 |         retval = change_destdir_directory(new_wd);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~
destdir.c:260:9: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  260 |         restore_prev_cursor();
      |         ^~~~~~~~~~~~~~~~~~~
destdir.c:264:9: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  264 |         warning_error("Unable to change directory");
      |         ^~~~~~~~~~~~~
destdir.c:268:9: warning: implicit declaration of function 'lost_connection'; did you mean 'XtNconnection'? [-Wimplicit-function-declaration]
  268 |         lost_connection(destdir.host);
      |         ^~~~~~~~~~~~~~~
      |         XtNconnection
destdir.c: In function 'cb_destdir_double_click':
destdir.c:294:9: warning: implicit declaration of function 'strip_off_symbol' [-Wimplicit-function-declaration]
  294 |         strip_off_symbol(destdir.system, destdir.server, entry);
      |         ^~~~~~~~~~~~~~~~
destdir.c: At top level:
destdir.c:319:1: warning: return type defaults to 'int' [-Wimplicit-int]
  319 | update_destdir_dirname_menu()
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
destdir.c:377:1: warning: return type defaults to 'int' [-Wimplicit-int]
  377 | update_destdir_dirlist()
      | ^~~~~~~~~~~~~~~~~~~~~~
destdir.c: In function 'update_destdir_dirlist':
destdir.c:390:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  390 |                 fatal_error("Bug in update_destdir_dirlist()");
      |                 ^~~~~~~~~~~
destdir.c:392:13: warning: implicit declaration of function 'local_ls' [-Wimplicit-function-declaration]
  392 |         if (local_ls(destdir.wd, &dlist, symbol_mode) != 0)
      |             ^~~~~~~~
destdir.c:396:23: warning: implicit declaration of function 'remote_ls' [-Wimplicit-function-declaration]
  396 |         if ((retval = remote_ls(destdir.host, destdir.wd, &dlist,
      |                       ^~~~~~~~~
destdir.c:404:5: warning: implicit declaration of function 'reset_list' [-Wimplicit-function-declaration]
  404 |     reset_list(destdir.w_dirList);
      |     ^~~~~~~~~~
destdir.c:414:5: warning: implicit declaration of function 'release_array_list' [-Wimplicit-function-declaration]
  414 |     release_array_list(dlist);
      |     ^~~~~~~~~~~~~~~~~~
destdir.c: At top level:
destdir.c:426:1: warning: return type defaults to 'int' [-Wimplicit-int]
  426 | change_destdir_directory(new_wd)
      | ^~~~~~~~~~~~~~~~~~~~~~~~
destdir.c: In function 'change_destdir_directory':
destdir.c:434:13: warning: implicit declaration of function 'local_cd' [-Wimplicit-function-declaration]
  434 |         if (local_cd(destdir.host, new_wd, True) < 0)
      |             ^~~~~~~~
destdir.c:438:13: warning: implicit declaration of function 'local_pwd' [-Wimplicit-function-declaration]
  438 |         if (local_pwd(&destdir.wd) != 0)
      |             ^~~~~~~~~
destdir.c:441:31: warning: implicit declaration of function 'remote_cd' [-Wimplicit-function-declaration]
  441 |                 if ((retval = remote_cd(destdir.host, new_wd, False, True)) < 0)
      |                               ^~~~~~~~~
destdir.c:443:13: warning: implicit declaration of function 'remote_pwd' [-Wimplicit-function-declaration]
  443 |         if (remote_pwd(destdir.host, &wd) < 0)
      |             ^~~~~~~~~~
destdir.c: In function 'get_destination_dir':
destdir.c:509:13: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  509 |             add_dialog_to_list(destdir.w_dialog);
      |             ^~~~~~~~~~~~~~~~~~
destdir.c: In function 'cb_map_destdir_dialog':
destdir.c:592:5: warning: implicit declaration of function 'center_dialog_over_dialog' [-Wimplicit-function-declaration]
  592 |     center_dialog_over_dialog(widget, destdir.pseudo_parent);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c dirlist.c
dirlist.c:77:1: warning: return type defaults to 'int' [-Wimplicit-int]
   77 | update_dir_displays(host, preserve)
      | ^~~~~~~~~~~~~~~~~~~
dirlist.c: In function 'update_dir_displays':
dirlist.c:89:9: warning: implicit declaration of function 'use_busy_cursor' [-Wimplicit-function-declaration]
   89 |         use_busy_cursor();
      |         ^~~~~~~~~~~~~~~
dirlist.c:97:21: warning: implicit declaration of function 'local_ls' [-Wimplicit-function-declaration]
   97 |                 if (local_ls(hinfo[host].wd, &dlist, symbol_mode) != 0)
      |                     ^~~~~~~~
dirlist.c:98:25: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
   98 |                         fatal_error("Unable to get local directory list");
      |                         ^~~~~~~~~~~
dirlist.c:101:31: warning: implicit declaration of function 'remote_ls' [-Wimplicit-function-declaration]
  101 |                 if ((retval = remote_ls(host, hinfo[host].wd, &dlist, symbol_mode))) {
      |                               ^~~~~~~~~
dirlist.c:102:25: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  102 |                         restore_prev_cursor();
      |                         ^~~~~~~~~~~~~~~~~~~
dirlist.c:121:9: warning: implicit declaration of function 'update_dirlist'; did you mean 'update_dir_displays'? [-Wimplicit-function-declaration]
  121 |         update_dirlist(host, dlist);
      |         ^~~~~~~~~~~~~~
      |         update_dir_displays
dirlist.c:124:13: warning: implicit declaration of function 'dirtable_in_use' [-Wimplicit-function-declaration]
  124 |         if (dirtable_in_use(host))
      |             ^~~~~~~~~~~~~~~
dirlist.c:125:17: warning: implicit declaration of function 'update_dirtable' [-Wimplicit-function-declaration]
  125 |                 update_dirtable(host, dlist);
      |                 ^~~~~~~~~~~~~~~
dirlist.c:128:9: warning: implicit declaration of function 'release_array_list'; did you mean 'create_null_array_list'? [-Wimplicit-function-declaration]
  128 |         release_array_list(dlist);
      |         ^~~~~~~~~~~~~~~~~~
      |         create_null_array_list
dirlist.c:140:23: warning: implicit declaration of function 'update_dirlong' [-Wimplicit-function-declaration]
  140 |         if ((retval = update_dirlong(host)) < 0) {
      |                       ^~~~~~~~~~~~~~
dirlist.c: At top level:
dirlist.c:154:1: warning: return type defaults to 'int' [-Wimplicit-int]
  154 | update_dirlist(host, dlist)
      | ^~~~~~~~~~~~~~
dirlist.c: In function 'update_dirlist':
dirlist.c:162:9: warning: implicit declaration of function 'reset_list' [-Wimplicit-function-declaration]
  162 |         reset_list(w_dirList[host]);
      |         ^~~~~~~~~~
dirlist.c: At top level:
dirlist.c:177:1: warning: return type defaults to 'int' [-Wimplicit-int]
  177 | reset_list(w_list)
      | ^~~~~~~~~~
dirlist.c: In function 'cb_double_click':
dirlist.c:197:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  197 |         int host = (int)client_data;
      |                    ^
dirlist.c:203:9: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  203 |         raise_okflag();
      |         ^~~~~~~~~~~~
dirlist.c:206:9: warning: implicit declaration of function 'clear_selected_entries' [-Wimplicit-function-declaration]
  206 |         clear_selected_entries(host);
      |         ^~~~~~~~~~~~~~~~~~~~~~
dirlist.c:210:9: warning: implicit declaration of function 'strip_off_symbol' [-Wimplicit-function-declaration]
  210 |         strip_off_symbol(hinfo[host].system, hinfo[host].server, entry);
      |         ^~~~~~~~~~~~~~~~
dirlist.c:217:9: warning: implicit declaration of function 'change_directory' [-Wimplicit-function-declaration]
  217 |         change_directory(host, new_wd);
      |         ^~~~~~~~~~~~~~~~
dirlist.c: In function 'cb_multiple_selection':
dirlist.c:237:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  237 |     int host = (int)client_data;
      |                ^
dirlist.c:246:33: warning: implicit declaration of function 'select_table_entry' [-Wimplicit-function-declaration]
  246 |                                 select_table_entry(host, cbs->item_position-1);
      |                                 ^~~~~~~~~~~~~~~~~~
dirlist.c:250:25: warning: implicit declaration of function 'deselect_table_entry' [-Wimplicit-function-declaration]
  250 |                         deselect_table_entry(host, cbs->item_position-1);
      |                         ^~~~~~~~~~~~~~~~~~~~
dirlist.c:260:5: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  260 |     update_xfer_controls();
      |     ^~~~~~~~~~~~~~~~~~~~
dirlist.c:262:9: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  262 |         update_host_controls(i);
      |         ^~~~~~~~~~~~~~~~~~~~
dirlist.c: At top level:
dirlist.c:270:1: warning: return type defaults to 'int' [-Wimplicit-int]
  270 | clear_selected_entries(host)
      | ^~~~~~~~~~~~~~~~~~~~~~
dirlist.c: In function 'clear_selected_entries':
dirlist.c:277:17: warning: implicit declaration of function 'clear_selected_table_entries'; did you mean 'clear_selected_entries'? [-Wimplicit-function-declaration]
  277 |                 clear_selected_table_entries(host);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 clear_selected_entries
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c dirlong.c
dirlong.c: In function 'cb_display_dir_long':
dirlong.c:121:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  121 |         int host = (int)client_data;
      |                    ^
dirlong.c:124:9: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  124 |         raise_okflag();
      |         ^~~~~~~~~~~~
dirlong.c:129:5: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  129 |     add_dialog_to_list(dirlong[host].w_dialog);
      |     ^~~~~~~~~~~~~~~~~~
dirlong.c:132:9: warning: implicit declaration of function 'update_dir_displays' [-Wimplicit-function-declaration]
  132 |     if (update_dir_displays(host, True) < 0)
      |         ^~~~~~~~~~~~~~~~~~~
dirlong.c:133:9: warning: implicit declaration of function 'lost_connection'; did you mean 'XtNconnection'? [-Wimplicit-function-declaration]
  133 |         lost_connection(host);
      |         ^~~~~~~~~~~~~~~
      |         XtNconnection
dirlong.c: In function 'create_dirlong_dialog':
dirlong.c:176:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  176 |         cb_dirlong_close, (XtPointer)host);
      |                           ^
dirlong.c:192:26: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  192 |         cb_dirlong_help, (XtPointer)host);
      |                          ^
dirlong.c:227:5: warning: implicit declaration of function 'fix_vertical_text_sb_color' [-Wimplicit-function-declaration]
  227 |     fix_vertical_text_sb_color(dirlong[host].w_list);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
dirlong.c:228:5: warning: implicit declaration of function 'fix_horizontal_text_sb_color' [-Wimplicit-function-declaration]
  228 |     fix_horizontal_text_sb_color(dirlong[host].w_list);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
dirlong.c:229:9: warning: implicit declaration of function 'set_bg_to_sb_trough_color' [-Wimplicit-function-declaration]
  229 |         set_bg_to_sb_trough_color(dirlong[host].w_list,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
dirlong.c: In function 'cb_dirlong_close':
dirlong.c:244:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  244 |         int host = (int)client_data;
      |                    ^
dirlong.c: At top level:
dirlong.c:255:1: warning: return type defaults to 'int' [-Wimplicit-int]
  255 | update_dirlong(host)
      | ^~~~~~~~~~~~~~
dirlong.c: In function 'update_dirlong':
dirlong.c:275:13: warning: implicit declaration of function 'local_dir' [-Wimplicit-function-declaration]
  275 |         if (local_dir(hinfo[host].wd, &dlist) != 0)
      |             ^~~~~~~~~
dirlong.c:276:13: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  276 |             fatal_error("Unable to get local directory list");
      |             ^~~~~~~~~~~
dirlong.c:279:23: warning: implicit declaration of function 'remote_dir' [-Wimplicit-function-declaration]
  279 |         if ((retval = remote_dir(host, hinfo[host].wd, &dlist)))
      |                       ^~~~~~~~~~
dirlong.c:300:9: warning: implicit declaration of function 'release_array_list'; did you mean 'create_null_array_list'? [-Wimplicit-function-declaration]
  300 |         release_array_list(dlist);
      |         ^~~~~~~~~~~~~~~~~~
      |         create_null_array_list
dirlong.c: In function 'cb_dirlong_help':
dirlong.c:316:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  316 |         int host = (int)client_data;
      |                    ^
dirlong.c:320:5: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  320 |     help_dialog(dirlong[host].w_dialog, False, text, dirlong_help);
      |     ^~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c dirname.c
dirname.c: In function 'update_dirname_menu':
dirname.c:126:5: warning: implicit declaration of function 'release_path_links' [-Wimplicit-function-declaration]
  126 |     release_path_links(wd_links);
      |     ^~~~~~~~~~~~~~~~~~
dirname.c: In function 'cb_set_dir':
dirname.c:152:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  152 |     int host = (int)client_data;
      |                ^
dirname.c:155:9: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  155 |         raise_okflag();
      |         ^~~~~~~~~~~~
dirname.c:174:9: warning: implicit declaration of function 'change_directory' [-Wimplicit-function-declaration]
  174 |         change_directory(host, new_wd);
      |         ^~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c dirpath.c
dirpath.c: In function 'cb_display_dirpath':
dirpath.c:96:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   96 |         int host = (int)client_data;
      |                    ^
dirpath.c:99:9: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
   99 |         raise_okflag();
      |         ^~~~~~~~~~~~
dirpath.c:106:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  106 |         add_dialog_to_list(dirpath[host].w_dialog);
      |         ^~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c dirtable.c
dirtable.c: In function 'cb_display_dirtable':
dirtable.c:149:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  149 |         int host = (int)client_data;
      |                    ^
dirtable.c:152:9: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  152 |         raise_okflag();
      |         ^~~~~~~~~~~~
dirtable.c:157:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  157 |         add_dialog_to_list(dirtable[host].w_dialog);
      |         ^~~~~~~~~~~~~~~~~~
dirtable.c:158:9: warning: implicit declaration of function 'force_update' [-Wimplicit-function-declaration]
  158 |         force_update(dirtable[host].w_drawingArea);
      |         ^~~~~~~~~~~~
dirtable.c:161:9: warning: implicit declaration of function 'update_dir_displays' [-Wimplicit-function-declaration]
  161 |     if (update_dir_displays(host, True) < 0)
      |         ^~~~~~~~~~~~~~~~~~~
dirtable.c:162:9: warning: implicit declaration of function 'lost_connection'; did you mean 'XtNconnection'? [-Wimplicit-function-declaration]
  162 |         lost_connection(host);
      |         ^~~~~~~~~~~~~~~
      |         XtNconnection
dirtable.c: In function 'create_dirtable_dialog':
dirtable.c:198:9: warning: implicit declaration of function 'add_wm_delete_window_cb' [-Wimplicit-function-declaration]
  198 |         add_wm_delete_window_cb(dirtable[host].w_dialog, cb_dirtable_close,
      |         ^~~~~~~~~~~~~~~~~~~~~~~
dirtable.c:199:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  199 |                 (XtPointer)host);
      |                 ^
dirtable.c:218:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  218 |         (XtPointer)host
      |         ^
dirtable.c:238:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  238 |         (XtPointer)host
      |         ^
dirtable.c:288:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  288 |                 cb_redraw_dirtable, (XtPointer)host);
      |                                     ^
dirtable.c:303:9: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  303 |         fatal_error("Unable to get font");
      |         ^~~~~~~~~~~
dirtable.c: In function 'ResizeDirtable':
dirtable.c:342:9: warning: implicit declaration of function 'calc_dirtable_geometry' [-Wimplicit-function-declaration]
  342 |         calc_dirtable_geometry(host);
      |         ^~~~~~~~~~~~~~~~~~~~~~
dirtable.c: In function 'DirtableMouse':
dirtable.c:377:16: warning: implicit declaration of function 'entry_index' [-Wimplicit-function-declaration]
  377 |         indx = entry_index(host, event->x, event->y);
      |                ^~~~~~~~~~~
dirtable.c:381:36: warning: implicit declaration of function 'point_in_clipwindow' [-Wimplicit-function-declaration]
  381 |                 if (indx == -1 || !point_in_clipwindow(host, event->x, event->y))
      |                                    ^~~~~~~~~~~~~~~~~~~
dirtable.c:384:25: warning: implicit declaration of function 'toggle_table_entry' [-Wimplicit-function-declaration]
  384 |                         toggle_table_entry(host, indx);
      |                         ^~~~~~~~~~~~~~~~~~
dirtable.c:408:9: warning: implicit declaration of function 'clear_selected_entries' [-Wimplicit-function-declaration]
  408 |         clear_selected_entries(host);
      |         ^~~~~~~~~~~~~~~~~~~~~~
dirtable.c:412:9: warning: implicit declaration of function 'strip_off_symbol' [-Wimplicit-function-declaration]
  412 |         strip_off_symbol(hinfo[host].system, hinfo[host].server, entry);
      |         ^~~~~~~~~~~~~~~~
dirtable.c:419:5: warning: implicit declaration of function 'change_directory' [-Wimplicit-function-declaration]
  419 |     change_directory(host, new_wd);
      |     ^~~~~~~~~~~~~~~~
dirtable.c: At top level:
dirtable.c:431:1: warning: return type defaults to 'int' [-Wimplicit-int]
  431 | update_dirtable(host, dlist)
      | ^~~~~~~~~~~~~~~
dirtable.c: In function 'update_dirtable':
dirtable.c:439:9: warning: implicit declaration of function 'delete_dirtable_entries' [-Wimplicit-function-declaration]
  439 |         delete_dirtable_entries(host);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
dirtable.c: In function 'cb_dirtable_close':
dirtable.c:479:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  479 |         int host = (int)client_data;
      |                    ^
dirtable.c: In function 'cb_dirtable_help':
dirtable.c:497:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  497 |         int host = (int)client_data;
      |                    ^
dirtable.c:501:5: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  501 |     help_dialog(dirtable[host].w_dialog, False, text, dirtable_help);
      |     ^~~~~~~~~~~
dirtable.c: At top level:
dirtable.c:509:1: warning: return type defaults to 'int' [-Wimplicit-int]
  509 | delete_dirtable_entries(host)
      | ^~~~~~~~~~~~~~~~~~~~~~~
dirtable.c:528:1: warning: return type defaults to 'int' [-Wimplicit-int]
  528 | select_table_entry(host, indx)
      | ^~~~~~~~~~~~~~~~~~
dirtable.c: In function 'select_table_entry':
dirtable.c:533:9: warning: implicit declaration of function 'draw_entry' [-Wimplicit-function-declaration]
  533 |         draw_entry(host, indx);
      |         ^~~~~~~~~~
dirtable.c: At top level:
dirtable.c:541:1: warning: return type defaults to 'int' [-Wimplicit-int]
  541 | deselect_table_entry(host, indx)
      | ^~~~~~~~~~~~~~~~~~~~
dirtable.c:555:1: warning: return type defaults to 'int' [-Wimplicit-int]
  555 | toggle_table_entry(host, indx)
      | ^~~~~~~~~~~~~~~~~~
dirtable.c: In function 'toggle_table_entry':
dirtable.c:581:9: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  581 |         update_xfer_controls();
      |         ^~~~~~~~~~~~~~~~~~~~
dirtable.c:583:9: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  583 |         update_host_controls(i);
      |         ^~~~~~~~~~~~~~~~~~~~
dirtable.c: At top level:
dirtable.c:591:1: warning: return type defaults to 'int' [-Wimplicit-int]
  591 | dirtable_in_use(host)
      | ^~~~~~~~~~~~~~~
dirtable.c:605:1: warning: return type defaults to 'int' [-Wimplicit-int]
  605 | clear_selected_table_entries(host)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
dirtable.c: In function 'cb_redraw_dirtable':
dirtable.c:626:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  626 |         int host = (int)client_data;
      |                    ^
dirtable.c: At top level:
dirtable.c:669:1: warning: return type defaults to 'int' [-Wimplicit-int]
  669 | calc_dirtable_geometry(host)
      | ^~~~~~~~~~~~~~~~~~~~~~
dirtable.c:730:1: warning: return type defaults to 'int' [-Wimplicit-int]
  730 | draw_entry(host, indx)
      | ^~~~~~~~~~
dirtable.c:762:1: warning: return type defaults to 'int' [-Wimplicit-int]
  762 | entry_index(host, x, y)
      | ^~~~~~~~~~~
dirtable.c:810:1: warning: return type defaults to 'int' [-Wimplicit-int]
  810 | point_in_clipwindow(host, x, y)
      | ^~~~~~~~~~~~~~~~~~~
dirtable.c:854:1: warning: return type defaults to 'int' [-Wimplicit-int]
  854 | enable_dirtable(host, enable)
      | ^~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c fallbacks.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c flag.c
flag.c:71:1: warning: return type defaults to 'int' [-Wimplicit-int]
   71 | init_result_flag()
      | ^~~~~~~~~~~~~~~~
flag.c:89:1: warning: return type defaults to 'int' [-Wimplicit-int]
   89 | raise_okflag()
      | ^~~~~~~~~~~~
flag.c:108:1: warning: return type defaults to 'int' [-Wimplicit-int]
  108 | raise_errorflag()
      | ^~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c force.c
force.c:31:1: warning: return type defaults to 'int' [-Wimplicit-int]
   31 | force_update(w)
      | ^~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c get.c
get.c:83:1: warning: return type defaults to 'int' [-Wimplicit-int]
   83 | init_get()
      | ^~~~~~~~
get.c: In function 'init_get':
get.c:107:9: warning: implicit declaration of function 'snk_paths_of_xfer_node' [-Wimplicit-function-declaration]
  107 |         snk_paths_of_xfer_node(xc.current_node, NULL, &tmp_snk_path);
      |         ^~~~~~~~~~~~~~~~~~~~~~
get.c:125:17: warning: implicit declaration of function 'parse_path' [-Wimplicit-function-declaration]
  125 |                 parse_path(SYS_UNIX, snk_path, &dir, NULL);
      |                 ^~~~~~~~~~
get.c:126:26: warning: implicit declaration of function 'local_mkdir' [-Wimplicit-function-declaration]
  126 |                 retval = local_mkdir(xc.snk_host, dir, 0700);
      |                          ^~~~~~~~~~~
get.c:133:14: warning: implicit declaration of function 'can_create_sinkfile' [-Wimplicit-function-declaration]
  133 |         if (!can_create_sinkfile(xc.snk_host, snk_path))
      |              ^~~~~~~~~~~~~~~~~~~
get.c:137:9: warning: implicit declaration of function 'src_paths_of_xfer_node' [-Wimplicit-function-declaration]
  137 |         src_paths_of_xfer_node(xc.current_node, NULL, &full_path);
      |         ^~~~~~~~~~~~~~~~~~~~~~
get.c:140:14: warning: implicit declaration of function 'remote_cd' [-Wimplicit-function-declaration]
  140 |     retval = remote_cd(xc.src_host, src_dir, True, True);
      |              ^~~~~~~~~
get.c:154:21: warning: implicit declaration of function 'init_data_conn' [-Wimplicit-function-declaration]
  154 |         if ((sock = init_data_conn(xc.src_host)) < 0) {
      |                     ^~~~~~~~~~~~~~
get.c:162:23: warning: implicit declaration of function 'send_ftp_cmd' [-Wimplicit-function-declaration]
  162 |         if ((retval = send_ftp_cmd(xc.src_host, cmd)) < 0) {
      |                       ^~~~~~~~~~~~
get.c:168:17: warning: implicit declaration of function 'get_ftp_reply' [-Wimplicit-function-declaration]
  168 |         scode = get_ftp_reply(xc.src_host, reply, MAXFTPREPLY, &code, maxt, True);
      |                 ^~~~~~~~~~~~~
get.c:175:25: warning: implicit declaration of function 'print_ftp_reply' [-Wimplicit-function-declaration]
  175 |                         print_ftp_reply(xc.src_host, reply);
      |                         ^~~~~~~~~~~~~~~
get.c:182:17: warning: implicit declaration of function 'report_client_timeout' [-Wimplicit-function-declaration]
  182 |                 report_client_timeout(xc.src_host);
      |                 ^~~~~~~~~~~~~~~~~~~~~
get.c:191:19: warning: implicit declaration of function 'accept_data_conn' [-Wimplicit-function-declaration]
  191 |         data_fd = accept_data_conn(xc.src_host, sock);
      |                   ^~~~~~~~~~~~~~~~
get.c:210:17: warning: implicit declaration of function 'report_perror' [-Wimplicit-function-declaration]
  210 |                 report_perror(xc.snk_host, snk_path);
      |                 ^~~~~~~~~~~~~
get.c:211:24: warning: implicit declaration of function 'abort_get' [-Wimplicit-function-declaration]
  211 |                 return abort_get();
      |                        ^~~~~~~~~
get.c:216:9: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  216 |         fatal_error("Programming bug in init_get() involving tcpbuf");
      |         ^~~~~~~~~~~
get.c: At top level:
get.c:234:1: warning: return type defaults to 'int' [-Wimplicit-int]
  234 | do_get()
      | ^~~~~~
get.c: In function 'do_get':
get.c:246:34: warning: implicit declaration of function 'read_tcp' [-Wimplicit-function-declaration]
  246 |                 switch (nbytes = read_tcp(xc.src_host, xc.data_fd, tcpbuf,
      |                                  ^~~~~~~~
get.c:296:29: warning: implicit declaration of function 'iwrite'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
  296 |                         if (iwrite(fileno(xc.snk_fp), tcpbuf, nbytes) != nbytes) {
      |                             ^~~~~~
      |                             fwrite
get.c: At top level:
get.c:343:1: warning: return type defaults to 'int' [-Wimplicit-int]
  343 | abort_get()
      | ^~~~~~~~~
get.c: In function 'abort_get':
get.c:354:9: warning: implicit declaration of function 'urgent_abort' [-Wimplicit-function-declaration]
  354 |         urgent_abort(xc.src_host);
      |         ^~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c goto.c
goto.c: In function 'cb_goto_prev_dir':
goto.c:79:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   79 |         int host = (int)client_data;
      |                    ^
goto.c:82:9: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
   82 |         raise_okflag();
      |         ^~~~~~~~~~~~
goto.c:89:9: warning: implicit declaration of function 'change_directory' [-Wimplicit-function-declaration]
   89 |         change_directory(host, new_wd);
      |         ^~~~~~~~~~~~~~~~
goto.c: At top level:
goto.c:98:1: warning: return type defaults to 'int' [-Wimplicit-int]
   98 | initialize_goto_menu(host)
      | ^~~~~~~~~~~~~~~~~~~~
goto.c: In function 'initialize_goto_menu':
goto.c:119:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  119 |             cb_goto_prev_dir, (XtPointer)host);
      |                               ^
goto.c: In function 'update_goto_menu':
goto.c:144:5: warning: implicit declaration of function 'retrieve_cache' [-Wimplicit-function-declaration]
  144 |     retrieve_cache(DIRECTORY, hinfo[host].hostname, &list, sort_caches);
      |     ^~~~~~~~~~~~~~
goto.c:156:9: warning: implicit declaration of function 'release_array_list' [-Wimplicit-function-declaration]
  156 |         release_array_list(list);
      |         ^~~~~~~~~~~~~~~~~~
goto.c: In function 'cb_dir_menu':
goto.c:170:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  170 |         int host = (int)client_data;
      |                    ^
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c help.c
help.c: In function 'cb_contextual_help':
help.c:102:5: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  102 |     raise_okflag();
      |     ^~~~~~~~~~~~
help.c: At top level:
help.c:119:1: warning: return type defaults to 'int' [-Wimplicit-int]
  119 | help_dialog(w_parent, modal, topic, text)
      | ^~~~~~~~~~~
help.c: In function 'help_dialog':
help.c:140:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  140 |         add_dialog_to_list(current_help->w_dialog);
      |         ^~~~~~~~~~~~~~~~~~
help.c: In function 'create_help_dialog':
help.c:193:9: warning: implicit declaration of function 'add_wm_delete_window_cb' [-Wimplicit-function-declaration]
  193 |         add_wm_delete_window_cb(help->w_dialog, cb_help_close, NULL);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
help.c:253:9: warning: implicit declaration of function 'fix_vertical_text_sb_color' [-Wimplicit-function-declaration]
  253 |         fix_vertical_text_sb_color(help->w_text);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
help.c:254:9: warning: implicit declaration of function 'set_bg_to_sb_trough_color' [-Wimplicit-function-declaration]
  254 |         set_bg_to_sb_trough_color(help->w_text,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
help.c: In function 'cb_help_close':
help.c:317:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  317 |                 fatal_error("*** Bug in cb_help_close()");
      |                 ^~~~~~~~~~~
help.c: In function 'cb_help_destroy':
help.c:332:17: warning: implicit declaration of function 'remove_dialog_from_list' [-Wimplicit-function-declaration]
  332 |                 remove_dialog_from_list(old_help->w_dialog);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c host.c
host.c:78:1: warning: return type defaults to 'int' [-Wimplicit-int]
   78 | update_hostname(host)
      | ^~~~~~~~~~~~~~~
host.c: In function 'lost_connection':
host.c:116:9: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
  116 |         close(hinfo[host].ctrl_fd);
      |         ^~~~~
host.c:120:9: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
  120 |         sprintf(msg, "Lost connection to \"%s\" host.  Do you wish to reconnect?\n(If so, you might need to resubmit your last command.)",
      |         ^~~~~~~
host.c:56:1: note: include '<stdio.h>' or provide a declaration of 'sprintf'
   55 | #include "xftp.h"
  +++ |+#include <stdio.h>
   56 | 
host.c:120:9: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch]
  120 |         sprintf(msg, "Lost connection to \"%s\" host.  Do you wish to reconnect?\n(If so, you might need to resubmit your last command.)",
      |         ^~~~~~~
host.c:120:9: note: include '<stdio.h>' or provide a declaration of 'sprintf'
host.c:122:9: warning: implicit declaration of function 'use_normal_cursor' [-Wimplicit-function-declaration]
  122 |         use_normal_cursor();
      |         ^~~~~~~~~~~~~~~~~
host.c:123:13: warning: implicit declaration of function 'question_dialog' [-Wimplicit-function-declaration]
  123 |         if (question_dialog(msg) == False) {
      |             ^~~~~~~~~~~~~~~
host.c:124:21: warning: implicit declaration of function 'update_dir_displays' [-Wimplicit-function-declaration]
  124 |                 if (update_dir_displays(host, False) < 0)
      |                     ^~~~~~~~~~~~~~~~~~~
host.c:125:25: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  125 |                         fatal_error("Programming bug in lost_connection()");
      |                         ^~~~~~~~~~~
host.c:126:17: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  126 |                 update_xfer_controls();
      |                 ^~~~~~~~~~~~~~~~~~~~
host.c:127:17: warning: implicit declaration of function 'update_dirname_menu' [-Wimplicit-function-declaration]
  127 |                 update_dirname_menu(host);
      |                 ^~~~~~~~~~~~~~~~~~~
host.c:128:17: warning: implicit declaration of function 'update_dirpath' [-Wimplicit-function-declaration]
  128 |                 update_dirpath(host);
      |                 ^~~~~~~~~~~~~~
host.c:130:17: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  130 |                 update_host_controls(host);
      |                 ^~~~~~~~~~~~~~~~~~~~
host.c:131:17: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  131 |                 restore_prev_cursor();
      |                 ^~~~~~~~~~~~~~~~~~~
host.c:137:9: warning: implicit declaration of function 'use_busy_cursor' [-Wimplicit-function-declaration]
  137 |         use_busy_cursor();
      |         ^~~~~~~~~~~~~~~
host.c:158:18: warning: implicit declaration of function 'do_connect' [-Wimplicit-function-declaration]
  158 |         retval = do_connect(host, hostname, username, password, account, NULL);
      |                  ^~~~~~~~~~
host.c:164:20: warning: implicit declaration of function 'remote_cd' [-Wimplicit-function-declaration]
  164 |                 || remote_cd(host, wd, False, True) < 0
      |                    ^~~~~~~~~
host.c:165:20: warning: implicit declaration of function 'remote_pwd' [-Wimplicit-function-declaration]
  165 |                 || remote_pwd(host, &current_wd) < 0) {
      |                    ^~~~~~~~~~
host.c:187:17: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  187 |                 warning_error("Unable to reconnect to remote host");
      |                 ^~~~~~~~~~~~~
host.c:194:25: warning: implicit declaration of function 'XmListSelectItem' [-Wimplicit-function-declaration]
  194 |                         XmListSelectItem(w_dirList[host], sitems[i], True);
      |                         ^~~~~~~~~~~~~~~~
host.c: At top level:
host.c:220:1: warning: return type defaults to 'int' [-Wimplicit-int]
  220 | update_host_controls(host)
      | ^~~~~~~~~~~~~~~~~~~~
host.c: In function 'update_host_controls':
host.c:235:23: warning: implicit declaration of function 'host_selected'; did you mean 'HostDelete'? [-Wimplicit-function-declaration]
  235 |         sensitivity = host_selected(host);
      |                       ^~~~~~~~~~~~~
      |                       HostDelete
host.c: At top level:
host.c:259:1: warning: return type defaults to 'int' [-Wimplicit-int]
  259 | host_selected(host)
      | ^~~~~~~~~~~~~
host.c: In function 'host_selected':
host.c:262:9: warning: implicit declaration of function 'selection_count' [-Wimplicit-function-declaration]
  262 |     if (selection_count(host))
      |         ^~~~~~~~~~~~~~~
host.c: At top level:
host.c:273:1: warning: return type defaults to 'int' [-Wimplicit-int]
  273 | selection_count(host)
      | ^~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c lconnect.c
lconnect.c:79:1: warning: return type defaults to 'int' [-Wimplicit-int]
   79 | connect_to_local(host)
      | ^~~~~~~~~~~~~~~~
lconnect.c: In function 'connect_to_local':
lconnect.c:109:17: warning: implicit declaration of function 'retrieve_cache' [-Wimplicit-function-declaration]
  109 |                 retrieve_cache(DIRECTORY, hinfo[host].hostname, &list, False);
      |                 ^~~~~~~~~~~~~~
lconnect.c:111:29: warning: implicit declaration of function 'local_cd' [-Wimplicit-function-declaration]
  111 |                         if (local_cd(host, list->entries[0], True) == 0)
      |                             ^~~~~~~~
lconnect.c:116:33: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  116 |                                 warning_error(msg);
      |                                 ^~~~~~~~~~~~~
lconnect.c:121:17: warning: implicit declaration of function 'release_array_list' [-Wimplicit-function-declaration]
  121 |                 release_array_list(list);
      |                 ^~~~~~~~~~~~~~~~~~
lconnect.c:132:9: warning: implicit declaration of function 'update_dir_displays' [-Wimplicit-function-declaration]
  132 |     if (update_dir_displays(host, False) < 0)
      |         ^~~~~~~~~~~~~~~~~~~
lconnect.c:133:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  133 |                 fatal_error("*** Bug in connect_to_local()");
      |                 ^~~~~~~~~~~
lconnect.c:134:9: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  134 |         update_xfer_controls();
      |         ^~~~~~~~~~~~~~~~~~~~
lconnect.c:135:5: warning: implicit declaration of function 'update_dirname_menu' [-Wimplicit-function-declaration]
  135 |     update_dirname_menu(host);
      |     ^~~~~~~~~~~~~~~~~~~
lconnect.c:136:9: warning: implicit declaration of function 'update_dirpath' [-Wimplicit-function-declaration]
  136 |         update_dirpath(host);
      |         ^~~~~~~~~~~~~~
lconnect.c:137:9: warning: implicit declaration of function 'update_dir_cache' [-Wimplicit-function-declaration]
  137 |         update_dir_cache(host);
      |         ^~~~~~~~~~~~~~~~
lconnect.c:138:5: warning: implicit declaration of function 'update_hostname' [-Wimplicit-function-declaration]
  138 |     update_hostname(host);
      |     ^~~~~~~~~~~~~~~
lconnect.c:139:5: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  139 |     update_host_controls(host);
      |     ^~~~~~~~~~~~~~~~~~~~
lconnect.c: In function 'cb_connect_to_local':
lconnect.c:152:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  152 |         int     host = (int)client_data;
      |                        ^
lconnect.c:155:9: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  155 |         raise_okflag();
      |         ^~~~~~~~~~~~
lconnect.c:159:9: warning: implicit declaration of function 'disconnect' [-Wimplicit-function-declaration]
  159 |         disconnect(host);
      |         ^~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c lcopy.c
lcopy.c:74:1: warning: return type defaults to 'int' [-Wimplicit-int]
   74 | init_local_copy()
      | ^~~~~~~~~~~~~~~
lcopy.c: In function 'init_local_copy':
lcopy.c:89:9: warning: implicit declaration of function 'snk_paths_of_xfer_node' [-Wimplicit-function-declaration]
   89 |         snk_paths_of_xfer_node(xc.current_node, NULL, &tmp_snk_file);
      |         ^~~~~~~~~~~~~~~~~~~~~~
lcopy.c:90:9: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
   90 |         strcpy(snk_file, tmp_snk_file);
      |         ^~~~~~
lcopy.c:60:1: note: include '<string.h>' or provide a declaration of 'strcpy'
   59 | #include "xfer.h"
  +++ |+#include <string.h>
   60 | 
lcopy.c:90:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch]
   90 |         strcpy(snk_file, tmp_snk_file);
      |         ^~~~~~
lcopy.c:90:9: note: include '<string.h>' or provide a declaration of 'strcpy'
lcopy.c:91:9: warning: implicit declaration of function 'XtFree' [-Wimplicit-function-declaration]
   91 |         XtFree(tmp_snk_file);
      |         ^~~~~~
lcopy.c:103:9: warning: implicit declaration of function 'parse_path' [-Wimplicit-function-declaration]
  103 |         parse_path(SYS_UNIX, snk_path, &dir, NULL);
      |         ^~~~~~~~~~
lcopy.c:105:18: warning: implicit declaration of function 'local_mkdir' [-Wimplicit-function-declaration]
  105 |         retval = local_mkdir(xc.snk_host, dir, 0700);
      |                  ^~~~~~~~~~~
lcopy.c:112:10: warning: implicit declaration of function 'can_create_sinkfile' [-Wimplicit-function-declaration]
  112 |     if (!can_create_sinkfile(xc.snk_host, snk_file))
      |          ^~~~~~~~~~~~~~~~~~~
lcopy.c:116:9: warning: implicit declaration of function 'src_paths_of_xfer_node' [-Wimplicit-function-declaration]
  116 |         src_paths_of_xfer_node(xc.current_node, NULL, &src_file);
      |         ^~~~~~~~~~~~~~~~~~~~~~
lcopy.c:117:24: warning: implicit declaration of function 'iopen2'; did you mean 'popen'? [-Wimplicit-function-declaration]
  117 |     if ((src_file_fd = iopen2(src_file, O_RDONLY)) < 0) {
      |                        ^~~~~~
      |                        popen
lcopy.c:118:9: warning: implicit declaration of function 'report_perror' [-Wimplicit-function-declaration]
  118 |         report_perror(xc.src_host, src_file);
      |         ^~~~~~~~~~~~~
lcopy.c:124:17: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  124 |                 warning_error(msg);
      |                 ^~~~~~~~~~~~~
lcopy.c:125:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  125 |         close(src_file_fd);
      |         ^~~~~
      |         pclose
lcopy.c:135:13: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration]
  135 |         if (unlink(snk_file) == -1)
      |             ^~~~~~
lcopy.c:141:28: warning: implicit declaration of function 'iopen3'; did you mean 'popen'? [-Wimplicit-function-declaration]
  141 |         if ((snk_file_fd = iopen3(snk_file, O_CREAT|O_WRONLY, 0644)) < 0) {
      |                            ^~~~~~
      |                            popen
lcopy.c: At top level:
lcopy.c:162:1: warning: return type defaults to 'int' [-Wimplicit-int]
  162 | do_local_copy()
      | ^~~~~~~~~~~~~
lcopy.c: In function 'do_local_copy':
lcopy.c:171:21: warning: implicit declaration of function 'iread'; did you mean 'fread'? [-Wimplicit-function-declaration]
  171 |                 if (iread(xc.src_file_fd, filebuf, nbytes) != nbytes) {
      |                     ^~~~~
      |                     fread
lcopy.c:179:21: warning: implicit declaration of function 'iwrite'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
  179 |                 if (iwrite(xc.snk_file_fd, filebuf, nbytes) != nbytes) {
      |                     ^~~~~~
      |                     fwrite
lcopy.c: At top level:
lcopy.c:206:1: warning: return type defaults to 'int' [-Wimplicit-int]
  206 | abort_local_copy()
      | ^~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c list.c
list.c:62:1: warning: return type defaults to 'int' [-Wimplicit-int]
   62 | add_to_linked_list(head, string)
      | ^~~~~~~~~~~~~~~~~~
list.c:79:1: warning: return type defaults to 'int' [-Wimplicit-int]
   79 | release_linked_list(head)
      | ^~~~~~~~~~~~~~~~~~~
list.c:157:1: warning: return type defaults to 'int' [-Wimplicit-int]
  157 | release_array_list(list)
      | ^~~~~~~~~~~~~~~~~~
list.c:173:1: warning: return type defaults to 'int' [-Wimplicit-int]
  173 | add_to_array_list(list, string)
      | ^~~~~~~~~~~~~~~~~
list.c:206:1: warning: return type defaults to 'int' [-Wimplicit-int]
  206 | delete_from_array_list(list, n)
      | ^~~~~~~~~~~~~~~~~~~~~~
list.c: In function 'delete_from_array_list':
list.c:214:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  214 |                 fatal_error("Trouble in add_to_array_list()");
      |                 ^~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c local.c
local.c:78:1: warning: return type defaults to 'int' [-Wimplicit-int]
   78 | local_cd(host, directory, print_error_msg)
      | ^~~~~~~~
local.c: In function 'local_cd':
local.c:87:25: warning: implicit declaration of function 'report_perror' [-Wimplicit-function-declaration]
   87 |                         report_perror(host, directory);
      |                         ^~~~~~~~~~~~~
local.c: At top level:
local.c:100:1: warning: return type defaults to 'int' [-Wimplicit-int]
  100 | local_pwd(name)
      | ^~~~~~~~~
local.c:132:1: warning: return type defaults to 'int' [-Wimplicit-int]
  132 | local_mkdir(host, directory, mode)
      | ^~~~~~~~~~~
local.c: In function 'local_mkdir':
local.c:139:23: warning: implicit declaration of function 'mkdir' [-Wimplicit-function-declaration]
  139 |         if ((retval = mkdir(directory, mode)) != 0)
      |                       ^~~~~
local.c: At top level:
local.c:151:1: warning: return type defaults to 'int' [-Wimplicit-int]
  151 | local_delete(host, path)
      | ^~~~~~~~~~~~
local.c: In function 'local_delete':
local.c:162:17: warning: implicit declaration of function 'parse_path' [-Wimplicit-function-declaration]
  162 |                 parse_path(SYS_UNIX, path, &dir, &entry);
      |                 ^~~~~~~~~~
local.c: At top level:
local.c:180:1: warning: return type defaults to 'int' [-Wimplicit-int]
  180 | local_rename(host, old_path, new_path)
      | ^~~~~~~~~~~~
local.c:197:1: warning: return type defaults to 'int' [-Wimplicit-int]
  197 | max_fds()
      | ^~~~~~~
local.c: In function 'max_fds':
local.c:203:9: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  203 |         fatal_error("Trouble in max_fds() - sysconf() failed");
      |         ^~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c log.c
log.c:100:1: warning: return type defaults to 'int' [-Wimplicit-int]
  100 | write_log(msg)
      | ^~~~~~~~~
log.c: In function 'cb_clear_log':
log.c:119:9: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  119 |         raise_okflag();
      |         ^~~~~~~~~~~~
log.c: At top level:
log.c:129:1: warning: return type defaults to 'int' [-Wimplicit-int]
  129 | report_perror(host, msg)
      | ^~~~~~~~~~~~~
log.c:163:1: warning: return type defaults to 'int' [-Wimplicit-int]
  163 | print_ftp_reply(host, reply)
      | ^~~~~~~~~~~~~~~
log.c:181:1: warning: return type defaults to 'int' [-Wimplicit-int]
  181 | print_ftp_cmd(host, cmd)
      | ^~~~~~~~~~~~~
log.c: In function 'cb_save_log':
log.c:224:5: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  224 |     add_dialog_to_list(w_saveLogDialog);
      |     ^~~~~~~~~~~~~~~~~~
log.c: In function 'cb_save_log_ok':
log.c:287:17: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  287 |                 warning_error(msg);
      |                 ^~~~~~~~~~~~~
log.c: In function 'cb_help_save_diagnostics_log':
log.c:314:5: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  314 |     help_dialog(w_saveLogDialog, False, "Save Diagnostics Log",
      |     ^~~~~~~~~~~
log.c: At top level:
log.c:322:1: warning: return type defaults to 'int' [-Wimplicit-int]
  322 | show_top_of_log()
      | ^~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c ls.c
ls.c:109:1: warning: return type defaults to 'int' [-Wimplicit-int]
  109 | local_ls(directory, dlist, sym_mode)
      | ^~~~~~~~
ls.c: In function 'local_ls':
ls.c:123:25: warning: implicit declaration of function 'add_to_linked_list' [-Wimplicit-function-declaration]
  123 |                         add_to_linked_list(&head, ".unreadable");
      |                         ^~~~~~~~~~~~~~~~~~
ls.c:130:26: warning: implicit declaration of function 'chdir' [-Wimplicit-function-declaration]
  130 |                 retval = chdir(directory);
      |                          ^~~~~
ls.c:161:17: warning: implicit declaration of function 'quicksort' [-Wimplicit-function-declaration]
  161 |                 quicksort((*dlist)->entries, (*dlist)->nentries, cmp_symbol_entries);
      |                 ^~~~~~~~~
ls.c: At top level:
ls.c:174:1: warning: return type defaults to 'int' [-Wimplicit-int]
  174 | local_dir(directory, dlist)
      | ^~~~~~~~~
ls.c: In function 'local_dir':
ls.c:189:9: warning: implicit declaration of function 'save_sigcld_handler' [-Wimplicit-function-declaration]
  189 |         save_sigcld_handler();
      |         ^~~~~~~~~~~~~~~~~~~
ls.c:191:17: warning: implicit declaration of function 'restore_sigcld_handler' [-Wimplicit-function-declaration]
  191 |                 restore_sigcld_handler();
      |                 ^~~~~~~~~~~~~~~~~~~~~~
ls.c:211:17: warning: implicit declaration of function 'release_linked_list' [-Wimplicit-function-declaration]
  211 |                 release_linked_list(&head);
      |                 ^~~~~~~~~~~~~~~~~~~
ls.c: At top level:
ls.c:233:1: warning: return type defaults to 'int' [-Wimplicit-int]
  233 | remote_dirlist(host, directory, cmd, dlist)
      | ^~~~~~~~~~~~~~
ls.c: In function 'remote_dirlist':
ls.c:270:19: warning: implicit declaration of function 'remote_cd' [-Wimplicit-function-declaration]
  270 |     if ((retval = remote_cd(host, directory, False, True)) < 0)
      |                   ^~~~~~~~~
ls.c:274:17: warning: implicit declaration of function 'init_data_conn' [-Wimplicit-function-declaration]
  274 |     if ((sock = init_data_conn(host)) < 0)
      |                 ^~~~~~~~~~~~~~
ls.c:278:19: warning: implicit declaration of function 'send_ftp_cmd' [-Wimplicit-function-declaration]
  278 |     if ((retval = send_ftp_cmd(host, cmd)) < 0) {
      |                   ^~~~~~~~~~~~
ls.c:279:9: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  279 |         close(sock);
      |         ^~~~~
      |         pclose
ls.c:284:17: warning: implicit declaration of function 'get_ftp_reply' [-Wimplicit-function-declaration]
  284 |         scode = get_ftp_reply(host, reply, MAXFTPREPLY, &code, maxt, False);
      |                 ^~~~~~~~~~~~~
ls.c:292:17: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  292 |                 write_log("*** Directory list failed.  Will retry.\n");
      |                 ^~~~~~~~~
ls.c:296:25: warning: implicit declaration of function 'print_ftp_reply' [-Wimplicit-function-declaration]
  296 |                         print_ftp_reply(host, reply);
      |                         ^~~~~~~~~~~~~~~
ls.c:311:17: warning: implicit declaration of function 'report_client_timeout' [-Wimplicit-function-declaration]
  311 |                 report_client_timeout(host);
      |                 ^~~~~~~~~~~~~~~~~~~~~
ls.c:320:15: warning: implicit declaration of function 'accept_data_conn' [-Wimplicit-function-declaration]
  320 |     data_fd = accept_data_conn(host, sock);
      |               ^~~~~~~~~~~~~~~~
ls.c:331:34: warning: implicit declaration of function 'read_tcp' [-Wimplicit-function-declaration]
  331 |                         nbytes = read_tcp(host, data_fd, tcpbuf, MAXTCPBUF, maxt, False);
      |                                  ^~~~~~~~
ls.c:411:5: warning: implicit declaration of function 'urgent_abort' [-Wimplicit-function-declaration]
  411 |     urgent_abort(host);
      |     ^~~~~~~~~~~~
ls.c: At top level:
ls.c:439:1: warning: return type defaults to 'int' [-Wimplicit-int]
  439 | remote_ls(host, directory, dlist, sym_mode)
      | ^~~~~~~~~
ls.c: In function 'remote_ls':
ls.c:488:41: warning: implicit declaration of function 'delete_from_array_list' [-Wimplicit-function-declaration]
  488 |                                         delete_from_array_list(dlist, i);
      |                                         ^~~~~~~~~~~~~~~~~~~~~~
ls.c: At top level:
ls.c:517:1: warning: return type defaults to 'int' [-Wimplicit-int]
  517 | remote_dir(host, directory, dlist)
      | ^~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c mainhelp.c
mainhelp.c:542:1: warning: return type defaults to 'int' [-Wimplicit-int]
  542 | cb_help_file_menu(widget, client_data, call_data)
      | ^~~~~~~~~~~~~~~~~
mainhelp.c: In function 'cb_help_file_menu':
mainhelp.c:547:9: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  547 |         help_dialog(w_toplev, False, "File Menu", help_file_menu);
      |         ^~~~~~~~~~~
mainhelp.c: In function 'cb_help_connect_menu':
mainhelp.c:586:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  586 |         int host = (int)client_data;
      |                    ^
mainhelp.c: In function 'cb_help_dir_menu':
mainhelp.c:604:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  604 |         int host = (int)client_data;
      |                    ^
mainhelp.c: In function 'cb_help_select_menu':
mainhelp.c:622:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  622 |         int host = (int)client_data;
      |                    ^
mainhelp.c: In function 'cb_help_ops_menu':
mainhelp.c:640:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  640 |         int host = (int)client_data;
      |                    ^
mainhelp.c: In function 'cb_help_dirname':
mainhelp.c:659:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  659 |         int host = (int)client_data;
      |                    ^
mainhelp.c: In function 'cb_help_dirlist':
mainhelp.c:678:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  678 |         int host = (int)client_data;
      |                    ^
mainhelp.c: In function 'cb_help_hostname':
mainhelp.c:697:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  697 |         int host = (int)client_data;
      |                    ^
mainhelp.c: At top level:
mainhelp.c:794:1: warning: return type defaults to 'int' [-Wimplicit-int]
  794 | cb_xftp_overview(widget, client_data, call_data)
      | ^~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c match.c
match.c:64:1: warning: return type defaults to 'int' [-Wimplicit-int]
   64 | match(string, pattern)
      | ^~~~~
match.c: In function 'match':
match.c:71:16: warning: implicit declaration of function 'simple_match' [-Wimplicit-function-declaration]
   71 |         return simple_match(string, pattern);
      |                ^~~~~~~~~~~~
match.c: At top level:
match.c:81:1: warning: return type defaults to 'int' [-Wimplicit-int]
   81 | simple_match(string, pattern)
      | ^~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c misc.c
misc.c: In function 'cb_disconnect':
misc.c:127:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  127 |         int host = (int)client_data;
      |                    ^
misc.c:130:5: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  130 |     raise_okflag();
      |     ^~~~~~~~~~~~
misc.c: In function 'disconnect':
misc.c:154:9: warning: implicit declaration of function 'update_dir_displays' [-Wimplicit-function-declaration]
  154 |     if (update_dir_displays(host, False) < 0)
      |         ^~~~~~~~~~~~~~~~~~~
misc.c:155:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  155 |                 fatal_error("Unexpected error disconnecting from host");
      |                 ^~~~~~~~~~~
misc.c:156:9: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  156 |         update_xfer_controls();
      |         ^~~~~~~~~~~~~~~~~~~~
misc.c:157:5: warning: implicit declaration of function 'update_dirname_menu' [-Wimplicit-function-declaration]
  157 |     update_dirname_menu(host);
      |     ^~~~~~~~~~~~~~~~~~~
misc.c:158:9: warning: implicit declaration of function 'update_dirpath' [-Wimplicit-function-declaration]
  158 |         update_dirpath(host);
      |         ^~~~~~~~~~~~~~
misc.c:159:5: warning: implicit declaration of function 'update_hostname' [-Wimplicit-function-declaration]
  159 |     update_hostname(host);
      |     ^~~~~~~~~~~~~~~
misc.c:160:5: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  160 |     update_host_controls(host);
      |     ^~~~~~~~~~~~~~~~~~~~
misc.c: At top level:
misc.c:167:1: warning: return type defaults to 'int' [-Wimplicit-int]
  167 | beep()
      | ^~~~
misc.c: In function 'cb_quit':
misc.c:184:25: warning: implicit declaration of function 'question_dialog' [-Wimplicit-function-declaration]
  184 |                         question_dialog("Do you want to save the user preferences?")) {
      |                         ^~~~~~~~~~~~~~~
misc.c:185:43: warning: implicit declaration of function 'save_prefs' [-Wimplicit-function-declaration]
  185 |                 if (need_to_save_prefs && save_prefs())
      |                                           ^~~~~~~~~~
misc.c:186:25: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  186 |                         warning_error("Unable to save user preferences.");
      |                         ^~~~~~~~~~~~~
misc.c:187:47: warning: implicit declaration of function 'save_viewprefs' [-Wimplicit-function-declaration]
  187 |                 if (need_to_save_viewprefs && save_viewprefs())
      |                                               ^~~~~~~~~~~~~~
misc.c:192:9: warning: implicit declaration of function 'delete_all_viewer_dirs' [-Wimplicit-function-declaration]
  192 |         delete_all_viewer_dirs();
      |         ^~~~~~~~~~~~~~~~~~~~~~
misc.c:194:9: warning: implicit declaration of function 'save_cache' [-Wimplicit-function-declaration]
  194 |         save_cache();
      |         ^~~~~~~~~~
misc.c: At top level:
misc.c:203:1: warning: return type defaults to 'int' [-Wimplicit-int]
  203 | report_client_timeout(host)
      | ^~~~~~~~~~~~~~~~~~~~~
misc.c: In function 'report_client_timeout':
misc.c:208:25: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  208 |                         write_log("Left host: ");
      |                         ^~~~~~~~~
misc.c: At top level:
misc.c:221:1: warning: return type defaults to 'int' [-Wimplicit-int]
  221 | can_create_sinkfile(host, snk_path)
      | ^~~~~~~~~~~~~~~~~~~
misc.c: In function 'can_create_sinkfile':
misc.c:227:5: warning: implicit declaration of function 'parse_path' [-Wimplicit-function-declaration]
  227 |     parse_path(SYS_UNIX, snk_path, &snk_dir, NULL);
      |     ^~~~~~~~~~
misc.c:231:17: warning: implicit declaration of function 'report_perror' [-Wimplicit-function-declaration]
  231 |                 report_perror(host, snk_path);
      |                 ^~~~~~~~~~~~~
misc.c:241:17: warning: implicit declaration of function 'chmod' [-Wimplicit-function-declaration]
  241 |             if (chmod(snk_path, 0600) < 0) {
      |                 ^~~~~
misc.c: At top level:
misc.c:266:1: warning: return type defaults to 'int' [-Wimplicit-int]
  266 | strip_off_symbol(system, server, string)
      | ^~~~~~~~~~~~~~~~
misc.c:299:1: warning: return type defaults to 'int' [-Wimplicit-int]
  299 | enable_controls(enable)
      | ^~~~~~~~~~~~~~~
misc.c: In function 'enable_controls':
misc.c:313:21: warning: implicit declaration of function 'dirtable_in_use' [-Wimplicit-function-declaration]
  313 |                 if (dirtable_in_use(i))
      |                     ^~~~~~~~~~~~~~~
misc.c:314:25: warning: implicit declaration of function 'enable_dirtable' [-Wimplicit-function-declaration]
  314 |                         enable_dirtable(i, enable);
      |                         ^~~~~~~~~~~~~~~
misc.c: At top level:
misc.c:420:1: warning: return type defaults to 'int' [-Wimplicit-int]
  420 | add_wm_delete_window_cb(widget, callback, client_data)
      | ^~~~~~~~~~~~~~~~~~~~~~~
misc.c:446:1: warning: return type defaults to 'int' [-Wimplicit-int]
  446 | center_dialog_over_dialog(w_top_dialog, w_bottom_dialog)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~
misc.c:508:1: warning: return type defaults to 'int' [-Wimplicit-int]
  508 | update_xfer_controls()
      | ^~~~~~~~~~~~~~~~~~~~
misc.c: In function 'update_xfer_controls':
misc.c:521:13: warning: implicit declaration of function 'host_selected'; did you mean 'HostDelete'? [-Wimplicit-function-declaration]
  521 |         if (host_selected(LEFT)) {
      |             ^~~~~~~~~~~~~
      |             HostDelete
misc.c:553:14: warning: implicit declaration of function 'selection_count' [-Wimplicit-function-declaration]
  553 |         if ((selection_count(LEFT) == 1) || (selection_count(RIGHT) == 1))
      |              ^~~~~~~~~~~~~~~
misc.c: At top level:
misc.c:631:1: warning: return type defaults to 'int' [-Wimplicit-int]
  631 | cmp_symbol_entries(string1, string2)
      | ^~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c mkdir.c
mkdir.c: In function 'cb_make_dir':
mkdir.c:95:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   95 |         int host = (int)client_data;
      |                    ^
mkdir.c:99:5: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
   99 |     raise_okflag();
      |     ^~~~~~~~~~~~
mkdir.c:115:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  115 |         add_dialog_to_list(w_mkdirDialog);
      |         ^~~~~~~~~~~~~~~~~~
mkdir.c: In function 'cb_mkdir_ok':
mkdir.c:162:9: warning: implicit declaration of function 'use_busy_cursor' [-Wimplicit-function-declaration]
  162 |         use_busy_cursor();
      |         ^~~~~~~~~~~~~~~
mkdir.c:175:33: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  175 |                                 warning_error("Unable to make directory");
      |                                 ^~~~~~~~~~~~~
mkdir.c:176:33: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  176 |                                 restore_prev_cursor();
      |                                 ^~~~~~~~~~~~~~~~~~~
mkdir.c:198:13: warning: implicit declaration of function 'local_mkdir' [-Wimplicit-function-declaration]
  198 |         if (local_mkdir(host, new_dir, 0777) < 0) {
      |             ^~~~~~~~~~~
mkdir.c:205:17: warning: implicit declaration of function 'remote_mkdir' [-Wimplicit-function-declaration]
  205 |         switch (remote_mkdir(host, new_dir)) {
      |                 ^~~~~~~~~~~~
mkdir.c:213:13: warning: implicit declaration of function 'lost_connection'; did you mean 'XtNconnection'? [-Wimplicit-function-declaration]
  213 |             lost_connection(host);
      |             ^~~~~~~~~~~~~~~
      |             XtNconnection
mkdir.c:221:17: warning: implicit declaration of function 'change_directory' [-Wimplicit-function-declaration]
  221 |                 change_directory(host, new_dir);
      |                 ^~~~~~~~~~~~~~~~
mkdir.c:225:21: warning: implicit declaration of function 'update_dir_displays' [-Wimplicit-function-declaration]
  225 |                 if (update_dir_displays(host, False) < 0) {
      |                     ^~~~~~~~~~~~~~~~~~~
mkdir.c:230:17: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  230 |                 update_xfer_controls();
      |                 ^~~~~~~~~~~~~~~~~~~~
mkdir.c:231:17: warning: implicit declaration of function 'update_dirname_menu' [-Wimplicit-function-declaration]
  231 |                 update_dirname_menu(host);
      |                 ^~~~~~~~~~~~~~~~~~~
mkdir.c:232:17: warning: implicit declaration of function 'update_dirpath' [-Wimplicit-function-declaration]
  232 |                 update_dirpath(host);
      |                 ^~~~~~~~~~~~~~
mkdir.c:233:17: warning: implicit declaration of function 'update_dir_cache' [-Wimplicit-function-declaration]
  233 |                 update_dir_cache(host);
      |                 ^~~~~~~~~~~~~~~~
mkdir.c:234:17: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  234 |                 update_host_controls(host);
      |                 ^~~~~~~~~~~~~~~~~~~~
mkdir.c: In function 'cb_mkdir_help':
mkdir.c:252:9: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  252 |         help_dialog(w_mkdirDialog, True, "Make Directory", help_make_dir);
      |         ^~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c move.c
move.c: In function 'cb_move_selected_entries':
move.c:87:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   87 |         int host = (int)client_data;
      |                    ^
move.c:96:5: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
   96 |     raise_okflag();
      |     ^~~~~~~~~~~~
move.c:100:22: warning: implicit declaration of function 'verify_selection' [-Wimplicit-function-declaration]
  100 |                 if (!verify_selection(host, "Do you really want to move these items?"))
      |                      ^~~~~~~~~~~~~~~~
move.c:117:17: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  117 |                 warning_error("Source and destination directories are the same");
      |                 ^~~~~~~~~~~~~
move.c:122:9: warning: implicit declaration of function 'use_busy_cursor' [-Wimplicit-function-declaration]
  122 |         use_busy_cursor();
      |         ^~~~~~~~~~~~~~~
move.c:125:9: warning: implicit declaration of function 'show_mp_monitor' [-Wimplicit-function-declaration]
  125 |         show_mp_monitor("Now Moving:");
      |         ^~~~~~~~~~~~~~~
move.c:126:9: warning: implicit declaration of function 'clear_mp_monitor' [-Wimplicit-function-declaration]
  126 |         clear_mp_monitor();
      |         ^~~~~~~~~~~~~~~~
move.c:129:9: warning: implicit declaration of function 'enable_controls' [-Wimplicit-function-declaration]
  129 |         enable_controls(False);
      |         ^~~~~~~~~~~~~~~
move.c:142:9: warning: implicit declaration of function 'strip_off_symbol' [-Wimplicit-function-declaration]
  142 |         strip_off_symbol(hinfo[host].system, hinfo[host].server, ptr->entry);
      |         ^~~~~~~~~~~~~~~~
move.c: At top level:
move.c:159:1: warning: return type defaults to 'int' [-Wimplicit-int]
  159 | cb_move_entries()
      | ^~~~~~~~~~~~~~~
move.c: In function 'cb_move_entries':
move.c:173:13: warning: implicit declaration of function 'mp_abort_requested' [-Wimplicit-function-declaration]
  173 |         if (mp_abort_requested()) {
      |             ^~~~~~~~~~~~~~~~~~
move.c:174:17: warning: implicit declaration of function 'hide_abort_dialog' [-Wimplicit-function-declaration]
  174 |                 hide_abort_dialog();
      |                 ^~~~~~~~~~~~~~~~~
move.c:180:9: warning: implicit declaration of function 'update_mp_monitor' [-Wimplicit-function-declaration]
  180 |         update_mp_monitor(move_ctrl.head->entry);
      |         ^~~~~~~~~~~~~~~~~
move.c:194:26: warning: implicit declaration of function 'local_rename' [-Wimplicit-function-declaration]
  194 |                 retval = local_rename(move_ctrl.host, src_path, snk_path);
      |                          ^~~~~~~~~~~~
move.c:196:26: warning: implicit declaration of function 'remote_rename' [-Wimplicit-function-declaration]
  196 |                 retval = remote_rename(move_ctrl.host, src_path, snk_path);
      |                          ^~~~~~~~~~~~~
move.c:209:25: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  209 |                         write_log(msg);
      |                         ^~~~~~~~~
move.c:220:9: warning: implicit declaration of function 'release_linked_list' [-Wimplicit-function-declaration]
  220 |         release_linked_list(&move_ctrl.head);
      |         ^~~~~~~~~~~~~~~~~~~
move.c:221:9: warning: implicit declaration of function 'hide_mp_monitor' [-Wimplicit-function-declaration]
  221 |         hide_mp_monitor();
      |         ^~~~~~~~~~~~~~~
move.c:225:9: warning: implicit declaration of function 'update_dir_displays' [-Wimplicit-function-declaration]
  225 |     if (update_dir_displays(move_ctrl.host, False) < 0)
      |         ^~~~~~~~~~~~~~~~~~~
move.c:227:5: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  227 |     update_xfer_controls();
      |     ^~~~~~~~~~~~~~~~~~~~
move.c:228:5: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  228 |     update_host_controls(move_ctrl.host);
      |     ^~~~~~~~~~~~~~~~~~~~
move.c:230:9: warning: implicit declaration of function 'beep' [-Wimplicit-function-declaration]
  230 |         beep();
      |         ^~~~
move.c:231:5: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  231 |     restore_prev_cursor();
      |     ^~~~~~~~~~~~~~~~~~~
move.c:241:5: warning: implicit declaration of function 'clear_selected_entries'; did you mean 'cb_move_selected_entries'? [-Wimplicit-function-declaration]
  241 |     clear_selected_entries(move_ctrl.host);
      |     ^~~~~~~~~~~~~~~~~~~~~~
      |     cb_move_selected_entries
move.c:243:5: warning: implicit declaration of function 'lost_connection'; did you mean 'XtNconnection'? [-Wimplicit-function-declaration]
  243 |     lost_connection(move_ctrl.host);
      |     ^~~~~~~~~~~~~~~
      |     XtNconnection
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c mpmonitor.c
mpmonitor.c:83:1: warning: return type defaults to 'int' [-Wimplicit-int]
   83 | show_mp_monitor(path_label)
      | ^~~~~~~~~~~~~~~
mpmonitor.c: In function 'show_mp_monitor':
mpmonitor.c:100:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  100 |         add_dialog_to_list(mp_monitor.w_dialog);
      |         ^~~~~~~~~~~~~~~~~~
mpmonitor.c:101:9: warning: implicit declaration of function 'force_update' [-Wimplicit-function-declaration]
  101 |         force_update(mp_monitor.w_dialog);
      |         ^~~~~~~~~~~~
mpmonitor.c: In function 'create_mp_monitor_dialog':
mpmonitor.c:134:9: warning: implicit declaration of function 'add_wm_delete_window_cb' [-Wimplicit-function-declaration]
  134 |         add_wm_delete_window_cb(mp_monitor.w_dialog, cb_mp_monitor_close, NULL);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
mpmonitor.c: At top level:
mpmonitor.c:198:1: warning: return type defaults to 'int' [-Wimplicit-int]
  198 | update_mp_monitor(path)
      | ^~~~~~~~~~~~~~~~~
mpmonitor.c:210:1: warning: return type defaults to 'int' [-Wimplicit-int]
  210 | clear_mp_monitor()
      | ^~~~~~~~~~~~~~~~
mpmonitor.c:221:1: warning: return type defaults to 'int' [-Wimplicit-int]
  221 | hide_mp_monitor()
      | ^~~~~~~~~~~~~~~
mpmonitor.c: In function 'cb_mp_monitor_abort':
mpmonitor.c:237:9: warning: implicit declaration of function 'show_abort_dialog' [-Wimplicit-function-declaration]
  237 |         show_abort_dialog();
      |         ^~~~~~~~~~~~~~~~~
mpmonitor.c: In function 'cb_mp_monitor_close':
mpmonitor.c:251:9: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  251 |         warning_error("Can't close monitor while operation is in progress.");
      |         ^~~~~~~~~~~~~
mpmonitor.c: At top level:
mpmonitor.c:259:1: warning: return type defaults to 'int' [-Wimplicit-int]
  259 | mp_abort_requested()
      | ^~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c password.c
password.c: In function 'encrypt_password':
password.c:108:35: warning: implicit declaration of function 'rand' [-Wimplicit-function-declaration]
  108 |                         key1[i] = rand()&0xff;
      |                                   ^~~~
password.c: In function 'create_password_dialog':
password.c:192:5: warning: implicit declaration of function 'add_wm_delete_window_cb' [-Wimplicit-function-declaration]
  192 |     add_wm_delete_window_cb(w_passwordDialog, cb_password_cancel, NULL);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
password.c: In function 'get_password':
password.c:287:5: warning: implicit declaration of function 'use_normal_cursor' [-Wimplicit-function-declaration]
  287 |     use_normal_cursor();
      |     ^~~~~~~~~~~~~~~~~
password.c:288:5: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  288 |     add_dialog_to_list(w_passwordDialog);
      |     ^~~~~~~~~~~~~~~~~~
password.c:293:5: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  293 |     restore_prev_cursor();
      |     ^~~~~~~~~~~~~~~~~~~
password.c: In function 'cb_map_password_dialog':
password.c:319:9: warning: implicit declaration of function 'center_dialog_over_dialog' [-Wimplicit-function-declaration]
  319 |         center_dialog_over_dialog(widget, w_pseudo_parent);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c path.c
path.c: In function 'unix_path_to_links':
path.c:78:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
   78 |                 fatal_error("Trouble in unix_path_to_links()");
      |                 ^~~~~~~~~~~
path.c: At top level:
path.c:323:1: warning: return type defaults to 'int' [-Wimplicit-int]
  323 | reverse_link_order(links)
      | ^~~~~~~~~~~~~~~~~~
path.c:655:1: warning: return type defaults to 'int' [-Wimplicit-int]
  655 | parse_path(system, path, dir, entry)
      | ^~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c pixmaps.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c prefs.c
prefs.c:386:1: warning: return type defaults to 'int' [-Wimplicit-int]
  386 | initialize_prefs()
      | ^~~~~~~~~~~~~~~~
prefs.c: In function 'initialize_prefs':
prefs.c:400:33: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  400 |                                 fatal_error("Programming bug in initialize_prefs()");
      |                                 ^~~~~~~~~~~
prefs.c: In function 'cb_preferences':
prefs.c:435:5: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  435 |     raise_okflag();
      |     ^~~~~~~~~~~~
prefs.c:440:9: warning: implicit declaration of function 'display_current_prefs' [-Wimplicit-function-declaration]
  440 |         display_current_prefs();
      |         ^~~~~~~~~~~~~~~~~~~~~
prefs.c:442:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  442 |         add_dialog_to_list(pref.w_dialog);
      |         ^~~~~~~~~~~~~~~~~~
prefs.c: In function 'create_prefs_dialog':
prefs.c:481:9: warning: implicit declaration of function 'add_wm_delete_window_cb' [-Wimplicit-function-declaration]
  481 |         add_wm_delete_window_cb(pref.w_dialog, cb_prefs_cancel, NULL);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
prefs.c:652:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  652 |                         (XtPointer)indx);
      |                         ^
prefs.c:669:25: warning: implicit declaration of function 'set_bg_to_sb_trough_color' [-Wimplicit-function-declaration]
  669 |                         set_bg_to_sb_trough_color(prefs[indx].widget,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
prefs.c: At top level:
prefs.c:757:1: warning: return type defaults to 'int' [-Wimplicit-int]
  757 | construct_prefs_filename()
      | ^~~~~~~~~~~~~~~~~~~~~~~~
prefs.c:772:1: warning: return type defaults to 'int' [-Wimplicit-int]
  772 | read_prefs_from_file()
      | ^~~~~~~~~~~~~~~~~~~~
prefs.c: In function 'read_prefs_from_file':
prefs.c:877:26: warning: implicit declaration of function 'save_prefs' [-Wimplicit-function-declaration]
  877 |         if (new_prefs && save_prefs())
      |                          ^~~~~~~~~~
prefs.c: At top level:
prefs.c:885:1: warning: return type defaults to 'int' [-Wimplicit-int]
  885 | display_current_prefs()
      | ^~~~~~~~~~~~~~~~~~~~~
prefs.c:924:1: warning: return type defaults to 'int' [-Wimplicit-int]
  924 | save_prefs()
      | ^~~~~~~~~~
prefs.c:969:1: warning: return type defaults to 'int' [-Wimplicit-int]
  969 | apply()
      | ^~~~~
prefs.c: In function 'apply':
prefs.c:1002:17: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
 1002 |                 update_host_controls(i);
      |                 ^~~~~~~~~~~~~~~~~~~~
prefs.c: In function 'cb_save_prefs':
prefs.c:1063:17: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
 1063 |                 warning_error("Unable to save user preferences.");
      |                 ^~~~~~~~~~~~~
prefs.c:1065:13: warning: implicit declaration of function 'save_viewprefs'; did you mean 'save_prefs'? [-Wimplicit-function-declaration]
 1065 |         if (save_viewprefs())
      |             ^~~~~~~~~~~~~~
      |             save_prefs
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c prefshelp.c
prefshelp.c: In function 'cb_prefs_item_help':
prefshelp.c:334:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  334 |     int indx = (int)client_data;
      |                ^
prefshelp.c:344:9: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  344 |         help_dialog(widget, False, label, prefs[indx].help_text);
      |         ^~~~~~~~~~~
prefshelp.c: At top level:
prefshelp.c:353:1: warning: return type defaults to 'int' [-Wimplicit-int]
  353 | cb_prefs_help(widget, client_data, call_data)
      | ^~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c pulldown.c
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c put.c
put.c:82:1: warning: return type defaults to 'int' [-Wimplicit-int]
   82 | init_put()
      | ^~~~~~~~
put.c: In function 'init_put':
put.c:108:9: warning: implicit declaration of function 'src_paths_of_xfer_node' [-Wimplicit-function-declaration]
  108 |         src_paths_of_xfer_node(xc.current_node, NULL, &src_path);
      |         ^~~~~~~~~~~~~~~~~~~~~~
put.c:109:24: warning: implicit declaration of function 'iopen2'; did you mean 'popen'? [-Wimplicit-function-declaration]
  109 |         if ((file_fd = iopen2(src_path, O_RDONLY)) < 0) {
      |                        ^~~~~~
      |                        popen
put.c:110:17: warning: implicit declaration of function 'report_perror' [-Wimplicit-function-declaration]
  110 |                 report_perror(xc.src_host, src_path);
      |                 ^~~~~~~~~~~~~
put.c:117:17: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  117 |                 warning_error(msg);
      |                 ^~~~~~~~~~~~~
put.c:118:17: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  118 |                 close(file_fd);
      |                 ^~~~~
      |                 pclose
put.c:127:9: warning: implicit declaration of function 'snk_paths_of_xfer_node' [-Wimplicit-function-declaration]
  127 |         snk_paths_of_xfer_node(xc.current_node, NULL, &snk_path);
      |         ^~~~~~~~~~~~~~~~~~~~~~
put.c:128:9: warning: implicit declaration of function 'parse_path' [-Wimplicit-function-declaration]
  128 |         parse_path(xc.snk_host_system, snk_path, &snk_dir, &snk_file);
      |         ^~~~~~~~~~
put.c:130:18: warning: implicit declaration of function 'remote_cd' [-Wimplicit-function-declaration]
  130 |         retval = remote_cd(xc.snk_host, snk_dir, True, True);
      |                  ^~~~~~~~~
put.c:146:21: warning: implicit declaration of function 'init_data_conn' [-Wimplicit-function-declaration]
  146 |         if ((sock = init_data_conn(xc.snk_host)) < 0) {
      |                     ^~~~~~~~~~~~~~
put.c:159:31: warning: implicit declaration of function 'ftp_allocate' [-Wimplicit-function-declaration]
  159 |                 if ((retval = ftp_allocate(xc.snk_host, file_len)) < 0) {
      |                               ^~~~~~~~~~~~
put.c:175:23: warning: implicit declaration of function 'send_ftp_cmd' [-Wimplicit-function-declaration]
  175 |         if ((retval = send_ftp_cmd(xc.snk_host, cmd)) < 0) {
      |                       ^~~~~~~~~~~~
put.c:185:17: warning: implicit declaration of function 'get_ftp_reply' [-Wimplicit-function-declaration]
  185 |         scode = get_ftp_reply(xc.snk_host, reply, MAXFTPREPLY, &code, maxt, True);
      |                 ^~~~~~~~~~~~~
put.c:194:17: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  194 |                 write_log("*** Unable to initialize put.  Will retry.\n");
      |                 ^~~~~~~~~
put.c:198:25: warning: implicit declaration of function 'print_ftp_reply' [-Wimplicit-function-declaration]
  198 |                         print_ftp_reply(xc.snk_host, reply);
      |                         ^~~~~~~~~~~~~~~
put.c:205:17: warning: implicit declaration of function 'report_client_timeout' [-Wimplicit-function-declaration]
  205 |                 report_client_timeout(xc.snk_host);
      |                 ^~~~~~~~~~~~~~~~~~~~~
put.c:215:19: warning: implicit declaration of function 'accept_data_conn' [-Wimplicit-function-declaration]
  215 |         data_fd = accept_data_conn(xc.snk_host, sock);
      |                   ^~~~~~~~~~~~~~~~
put.c:236:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  236 |                 fatal_error("Programming bug in init_put() involving tcpbuf");
      |                 ^~~~~~~~~~~
put.c: At top level:
put.c:258:1: warning: return type defaults to 'int' [-Wimplicit-int]
  258 | do_put()
      | ^~~~~~
put.c: In function 'do_put':
put.c:271:29: warning: implicit declaration of function 'iread'; did you mean 'fread'? [-Wimplicit-function-declaration]
  271 |                         if (iread(xc.src_file_fd, filebuf, nbytes) != nbytes) {
      |                             ^~~~~
      |                             fread
put.c:273:40: warning: implicit declaration of function 'abort_put' [-Wimplicit-function-declaration]
  273 |                                 return abort_put();
      |                                        ^~~~~~~~~
put.c:278:58: warning: implicit declaration of function 'write_tcp' [-Wimplicit-function-declaration]
  278 |                                                 retval = write_tcp(xc.snk_host, xc.data_fd, tcpbuf,
      |                                                          ^~~~~~~~~
put.c: At top level:
put.c:397:1: warning: return type defaults to 'int' [-Wimplicit-int]
  397 | abort_put()
      | ^~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c qidialogs.c
qidialogs.c:81:1: warning: return type defaults to 'int' [-Wimplicit-int]
   81 | question_dialog(question)
      | ^~~~~~~~~~~~~~~
qidialogs.c: In function 'question_dialog':
qidialogs.c:95:9: warning: implicit declaration of function 'use_normal_cursor' [-Wimplicit-function-declaration]
   95 |         use_normal_cursor();
      |         ^~~~~~~~~~~~~~~~~
qidialogs.c:98:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
   98 |         add_dialog_to_list(w_question);
      |         ^~~~~~~~~~~~~~~~~~
qidialogs.c:101:9: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  101 |         restore_prev_cursor();
      |         ^~~~~~~~~~~~~~~~~~~
qidialogs.c: In function 'create_question_dialog':
qidialogs.c:130:9: warning: implicit declaration of function 'add_wm_delete_window_cb' [-Wimplicit-function-declaration]
  130 |         add_wm_delete_window_cb(w_question, cb_question_no, NULL);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
qidialogs.c: At top level:
qidialogs.c:173:1: warning: return type defaults to 'int' [-Wimplicit-int]
  173 | info_dialog(information)
      | ^~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c qsort.c
qsort.c:85:1: warning: return type defaults to 'int' [-Wimplicit-int]
   85 | quicksort(s, n, compare)
      | ^~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c quote.c
quote.c: In function 'cb_send_quoted_command':
quote.c:161:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  161 |         int host = (int)client_data;
      |                    ^
quote.c:166:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  166 |                 fatal_error("Bug in cb_send_quoted_command()");
      |                 ^~~~~~~~~~~
quote.c:169:5: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  169 |     raise_okflag();
      |     ^~~~~~~~~~~~
quote.c:175:9: warning: implicit declaration of function 'use_busy_cursor' [-Wimplicit-function-declaration]
  175 |         use_busy_cursor();
      |         ^~~~~~~~~~~~~~~
quote.c:176:18: warning: implicit declaration of function 'remote_cd' [-Wimplicit-function-declaration]
  176 |         retval = remote_cd(host, hinfo[host].wd, False, True);
      |                  ^~~~~~~~~
quote.c:177:9: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  177 |         restore_prev_cursor();
      |         ^~~~~~~~~~~~~~~~~~~
quote.c:180:9: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  180 |         warning_error("Problems setting up Quote mode -- Try again.");
      |         ^~~~~~~~~~~~~
quote.c:183:9: warning: implicit declaration of function 'lost_connection'; did you mean 'XtNconnection'? [-Wimplicit-function-declaration]
  183 |         lost_connection(host);
      |         ^~~~~~~~~~~~~~~
      |         XtNconnection
quote.c:187:5: warning: implicit declaration of function 'update_quote_dialog'; did you mean 'create_quote_dialog'? [-Wimplicit-function-declaration]
  187 |     update_quote_dialog(host);
      |     ^~~~~~~~~~~~~~~~~~~
      |     create_quote_dialog
quote.c:190:5: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  190 |     add_dialog_to_list(quote.w_dialog);
      |     ^~~~~~~~~~~~~~~~~~
quote.c: In function 'create_quote_dialog':
quote.c:260:9: warning: implicit declaration of function 'fix_list_color' [-Wimplicit-function-declaration]
  260 |         fix_list_color(quote.w_list);
      |         ^~~~~~~~~~~~~~
quote.c:305:9: warning: implicit declaration of function 'set_bg_to_sb_trough_color' [-Wimplicit-function-declaration]
  305 |         set_bg_to_sb_trough_color(quote.w_text,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
quote.c:306:17: warning: implicit declaration of function 'vertical_sb' [-Wimplicit-function-declaration]
  306 |                 vertical_sb(XtParent(quote.w_list)));
      |                 ^~~~~~~~~~~
quote.c: In function 'cb_quote_ok':
quote.c:405:9: warning: implicit declaration of function 'add_to_cache' [-Wimplicit-function-declaration]
  405 |         add_to_cache(QUOTE, hinfo[host].hostname, command);
      |         ^~~~~~~~~~~~
quote.c:419:42: warning: implicit declaration of function 'verify_selection' [-Wimplicit-function-declaration]
  419 |                 if (inquire_on_quote && !verify_selection(host,
      |                                          ^~~~~~~~~~~~~~~~
quote.c:443:17: warning: implicit declaration of function 'strip_off_symbol' [-Wimplicit-function-declaration]
  443 |                 strip_off_symbol(hinfo[host].system, hinfo[host].server, entry);
      |                 ^~~~~~~~~~~~~~~~
quote.c:467:5: warning: implicit declaration of function 'show_mp_monitor' [-Wimplicit-function-declaration]
  467 |     show_mp_monitor("Now Issuing:");
      |     ^~~~~~~~~~~~~~~
quote.c:468:5: warning: implicit declaration of function 'clear_mp_monitor' [-Wimplicit-function-declaration]
  468 |     clear_mp_monitor();
      |     ^~~~~~~~~~~~~~~~
quote.c:471:5: warning: implicit declaration of function 'enable_controls' [-Wimplicit-function-declaration]
  471 |     enable_controls(False);
      |     ^~~~~~~~~~~~~~~
quote.c: At top level:
quote.c:485:1: warning: return type defaults to 'int' [-Wimplicit-int]
  485 | update_quote_dialog(host)
      | ^~~~~~~~~~~~~~~~~~~
quote.c: In function 'update_quote_dialog':
quote.c:493:9: warning: implicit declaration of function 'retrieve_cache' [-Wimplicit-function-declaration]
  493 |         retrieve_cache(QUOTE, hinfo[host].hostname, &list, sort_caches);
      |         ^~~~~~~~~~~~~~
quote.c:494:9: warning: implicit declaration of function 'reset_list' [-Wimplicit-function-declaration]
  494 |         reset_list(quote.w_list);
      |         ^~~~~~~~~~
quote.c:500:5: warning: implicit declaration of function 'release_array_list' [-Wimplicit-function-declaration]
  500 |     release_array_list(list);
      |     ^~~~~~~~~~~~~~~~~~
quote.c: At top level:
quote.c:552:1: warning: return type defaults to 'int' [-Wimplicit-int]
  552 | cb_quote_send_commands()
      | ^~~~~~~~~~~~~~~~~~~~~~
quote.c: In function 'cb_quote_send_commands':
quote.c:562:9: warning: implicit declaration of function 'mp_abort_requested' [-Wimplicit-function-declaration]
  562 |     if (mp_abort_requested()) {
      |         ^~~~~~~~~~~~~~~~~~
quote.c:563:9: warning: implicit declaration of function 'hide_abort_dialog' [-Wimplicit-function-declaration]
  563 |         hide_abort_dialog();
      |         ^~~~~~~~~~~~~~~~~
quote.c:569:5: warning: implicit declaration of function 'update_mp_monitor' [-Wimplicit-function-declaration]
  569 |     update_mp_monitor(quote_ctrl.head->entry);
      |     ^~~~~~~~~~~~~~~~~
quote.c:572:17: warning: implicit declaration of function 'quote_cmd' [-Wimplicit-function-declaration]
  572 |         switch (quote_cmd(quote_ctrl.host, quote_ctrl.head->entry)) {
      |                 ^~~~~~~~~
quote.c:576:9: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
  576 |         sprintf(msg, "Unable to issue quoted command: '%s'",
      |         ^~~~~~~
quote.c:65:1: note: include '<stdio.h>' or provide a declaration of 'sprintf'
   64 | #include "str.h"
  +++ |+#include <stdio.h>
   65 | 
quote.c:576:9: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch]
  576 |         sprintf(msg, "Unable to issue quoted command: '%s'",
      |         ^~~~~~~
quote.c:576:9: note: include '<stdio.h>' or provide a declaration of 'sprintf'
quote.c:588:5: warning: implicit declaration of function 'release_linked_list' [-Wimplicit-function-declaration]
  588 |     release_linked_list(&quote_ctrl.head);
      |     ^~~~~~~~~~~~~~~~~~~
quote.c:589:5: warning: implicit declaration of function 'hide_mp_monitor' [-Wimplicit-function-declaration]
  589 |     hide_mp_monitor();
      |     ^~~~~~~~~~~~~~~
quote.c:593:9: warning: implicit declaration of function 'clear_selected_entries' [-Wimplicit-function-declaration]
  593 |         clear_selected_entries(quote_ctrl.host);
      |         ^~~~~~~~~~~~~~~~~~~~~~
quote.c:594:5: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  594 |     update_xfer_controls();
      |     ^~~~~~~~~~~~~~~~~~~~
quote.c:595:5: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  595 |     update_host_controls(quote_ctrl.host);
      |     ^~~~~~~~~~~~~~~~~~~~
quote.c:597:9: warning: implicit declaration of function 'beep' [-Wimplicit-function-declaration]
  597 |         beep();
      |         ^~~~
quote.c: In function 'cb_quote_help':
quote.c:627:5: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  627 |     help_dialog(quote.w_dialog, True, "Send Quote Command", quote_help);
      |     ^~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c rconnect.c
rconnect.c: In function 'cb_connect_to_remote':
rconnect.c:135:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  135 |     int host = (int)client_data;
      |                ^
rconnect.c:138:9: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  138 |         raise_okflag();
      |         ^~~~~~~~~~~~
rconnect.c:142:17: warning: implicit declaration of function 'disconnect' [-Wimplicit-function-declaration]
  142 |                 disconnect(host);
      |                 ^~~~~~~~~~
rconnect.c:146:9: warning: implicit declaration of function 'update_rconnect_dialog'; did you mean 'create_rconnect_dialog'? [-Wimplicit-function-declaration]
  146 |         update_rconnect_dialog(host);
      |         ^~~~~~~~~~~~~~~~~~~~~~
      |         create_rconnect_dialog
rconnect.c:150:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  150 |         add_dialog_to_list(rconnect.w_dialog);
      |         ^~~~~~~~~~~~~~~~~~
rconnect.c: In function 'create_rconnect_dialog':
rconnect.c:221:9: warning: implicit declaration of function 'fix_list_color' [-Wimplicit-function-declaration]
  221 |         fix_list_color(rconnect.w_hostList);
      |         ^~~~~~~~~~~~~~
rconnect.c:293:9: warning: implicit declaration of function 'set_bg_to_sb_trough_color' [-Wimplicit-function-declaration]
  293 |         set_bg_to_sb_trough_color(rconnect.w_hostName,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
rconnect.c: At top level:
rconnect.c:305:1: warning: return type defaults to 'int' [-Wimplicit-int]
  305 | update_rconnect_dialog(host)
      | ^~~~~~~~~~~~~~~~~~~~~~
rconnect.c: In function 'update_rconnect_dialog':
rconnect.c:316:5: warning: implicit declaration of function 'retrieve_hostuser_cache' [-Wimplicit-function-declaration]
  316 |     retrieve_hostuser_cache(&list, sort_caches);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
rconnect.c:319:5: warning: implicit declaration of function 'reset_list' [-Wimplicit-function-declaration]
  319 |     reset_list(rconnect.w_hostList);
      |     ^~~~~~~~~~
rconnect.c:321:21: warning: implicit declaration of function 'parse_hostuser' [-Wimplicit-function-declaration]
  321 |                 if (parse_hostuser(list->entries[i], &host_part, &user_part) == 0) {
      |                     ^~~~~~~~~~~~~~
rconnect.c:333:5: warning: implicit declaration of function 'release_array_list' [-Wimplicit-function-declaration]
  333 |     release_array_list(list);
      |     ^~~~~~~~~~~~~~~~~~
rconnect.c: In function 'cb_rconnect_single_selection':
rconnect.c:385:9: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  385 |         fatal_error("Trouble in cb_rconnect_single_selection()");
      |         ^~~~~~~~~~~
rconnect.c: In function 'cb_rconnect_help':
rconnect.c:404:5: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  404 |     help_dialog(rconnect.w_dialog, True, "Connect to Remote Host", rconnect_help);
      |     ^~~~~~~~~~~
rconnect.c: In function 'cb_rconnect_connect':
rconnect.c:467:9: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  467 |         warning_error("Unable to log onto FTP server.  No user name.");
      |         ^~~~~~~~~~~~~
rconnect.c:473:13: warning: implicit declaration of function 'parse_hostname' [-Wimplicit-function-declaration]
  473 |     switch (parse_hostname(hostname, &host_part, &port_part)) {
      |             ^~~~~~~~~~~~~~
rconnect.c:490:9: warning: implicit declaration of function 'add_to_cache' [-Wimplicit-function-declaration]
  490 |         add_to_cache(USER, hostname, username);
      |         ^~~~~~~~~~~~
rconnect.c:493:14: warning: implicit declaration of function 'do_connect' [-Wimplicit-function-declaration]
  493 |     retval = do_connect(host, hostname, username, NULL, NULL,rconnect.w_dialog);
      |              ^~~~~~~~~~
rconnect.c:504:5: warning: implicit declaration of function 'use_busy_cursor' [-Wimplicit-function-declaration]
  504 |     use_busy_cursor();
      |     ^~~~~~~~~~~~~~~
rconnect.c:507:9: warning: implicit declaration of function 'update_dir_displays' [-Wimplicit-function-declaration]
  507 |     if (update_dir_displays(host, False) < 0) {
      |         ^~~~~~~~~~~~~~~~~~~
rconnect.c:508:9: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  508 |         restore_prev_cursor();
      |         ^~~~~~~~~~~~~~~~~~~
rconnect.c:509:9: warning: implicit declaration of function 'lost_connection'; did you mean 'XtNconnection'? [-Wimplicit-function-declaration]
  509 |         lost_connection(host);
      |         ^~~~~~~~~~~~~~~
      |         XtNconnection
rconnect.c:512:5: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  512 |     update_xfer_controls();
      |     ^~~~~~~~~~~~~~~~~~~~
rconnect.c:513:5: warning: implicit declaration of function 'update_dirname_menu' [-Wimplicit-function-declaration]
  513 |     update_dirname_menu(host);
      |     ^~~~~~~~~~~~~~~~~~~
rconnect.c:514:5: warning: implicit declaration of function 'update_dirpath' [-Wimplicit-function-declaration]
  514 |     update_dirpath(host);
      |     ^~~~~~~~~~~~~~
rconnect.c:515:5: warning: implicit declaration of function 'update_dir_cache' [-Wimplicit-function-declaration]
  515 |     update_dir_cache(host);
      |     ^~~~~~~~~~~~~~~~
rconnect.c:516:5: warning: implicit declaration of function 'update_hostname' [-Wimplicit-function-declaration]
  516 |     update_hostname(host);
      |     ^~~~~~~~~~~~~~~
rconnect.c:517:5: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  517 |     update_host_controls(host);
      |     ^~~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c rcopy.c
rcopy.c:78:1: warning: return type defaults to 'int' [-Wimplicit-int]
   78 | init_remote_copy()
      | ^~~~~~~~~~~~~~~~
rcopy.c: In function 'init_remote_copy':
rcopy.c:98:9: warning: implicit declaration of function 'src_paths_of_xfer_node' [-Wimplicit-function-declaration]
   98 |         src_paths_of_xfer_node(xc.current_node, NULL, &src_path);
      |         ^~~~~~~~~~~~~~~~~~~~~~
rcopy.c:99:5: warning: implicit declaration of function 'parse_path' [-Wimplicit-function-declaration]
   99 |     parse_path(xc.src_host_system, src_path, &src_dir, &src_file);
      |     ^~~~~~~~~~
rcopy.c:101:14: warning: implicit declaration of function 'remote_cd' [-Wimplicit-function-declaration]
  101 |     retval = remote_cd(xc.src_host, src_dir, True, True);
      |              ^~~~~~~~~
rcopy.c:115:9: warning: implicit declaration of function 'snk_paths_of_xfer_node' [-Wimplicit-function-declaration]
  115 |         snk_paths_of_xfer_node(xc.current_node, NULL, &snk_path);
      |         ^~~~~~~~~~~~~~~~~~~~~~
rcopy.c:140:35: warning: implicit declaration of function 'ftp_passive' [-Wimplicit-function-declaration]
  140 |                         (retval = ftp_passive(xc.snk_host, &port)) == 0) {
      |                                   ^~~~~~~~~~~
rcopy.c:142:31: warning: implicit declaration of function 'ftp_port' [-Wimplicit-function-declaration]
  142 |                 if ((retval = ftp_port(xc.src_host, port)) < 0) {
      |                               ^~~~~~~~
rcopy.c:182:25: warning: implicit declaration of function 'send_ftp_cmd' [-Wimplicit-function-declaration]
  182 |                 switch (send_ftp_cmd(xc.snk_host, cmd)) {
      |                         ^~~~~~~~~~~~
rcopy.c:192:29: warning: implicit declaration of function 'get_ftp_reply' [-Wimplicit-function-declaration]
  192 |                 snk_scode = get_ftp_reply(xc.snk_host, reply, MAXFTPREPLY, &code, maxt,
      |                             ^~~~~~~~~~~~~
rcopy.c:201:25: warning: implicit declaration of function 'report_client_timeout' [-Wimplicit-function-declaration]
  201 |                         report_client_timeout(xc.snk_host);
      |                         ^~~~~~~~~~~~~~~~~~~~~
rcopy.c:204:33: warning: implicit declaration of function 'print_ftp_reply' [-Wimplicit-function-declaration]
  204 |                                 print_ftp_reply(xc.snk_host, reply);
      |                                 ^~~~~~~~~~~~~~~
rcopy.c:214:32: warning: implicit declaration of function 'abort_rcopy' [-Wimplicit-function-declaration]
  214 |                         return abort_rcopy(False, True);
      |                                ^~~~~~~~~~~
rcopy.c: At top level:
rcopy.c:324:1: warning: return type defaults to 'int' [-Wimplicit-int]
  324 | do_remote_copy()
      | ^~~~~~~~~~~~~~
rcopy.c:379:1: warning: return type defaults to 'int' [-Wimplicit-int]
  379 | abort_remote_copy()
      | ^~~~~~~~~~~~~~~~~
rcopy.c:394:1: warning: return type defaults to 'int' [-Wimplicit-int]
  394 | abort_rcopy(abort_src, abort_snk)
      | ^~~~~~~~~~~
rcopy.c: In function 'abort_rcopy':
rcopy.c:437:17: warning: implicit declaration of function 'urgent_abort' [-Wimplicit-function-declaration]
  437 |                 urgent_abort(xc.src_host);
      |                 ^~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c remote.c
remote.c:80:1: warning: return type defaults to 'int' [-Wimplicit-int]
   80 | remote_cd(host, directory, process_xevents, print_error_msg)
      | ^~~~~~~~~
remote.c: In function 'remote_cd':
remote.c:97:23: warning: implicit declaration of function 'send_ftp_cmd' [-Wimplicit-function-declaration]
   97 |         if ((retval = send_ftp_cmd(host, cmd)) < 0)
      |                       ^~~~~~~~~~~~
remote.c:101:17: warning: implicit declaration of function 'get_ftp_reply' [-Wimplicit-function-declaration]
  101 |         scode = get_ftp_reply(host, reply, MAXFTPREPLY, &code,maxt,process_xevents);
      |                 ^~~~~~~~~~~~~
remote.c:108:33: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  108 |                                 write_log("*** Change directory failed.  Will retry.\n");
      |                                 ^~~~~~~~~
remote.c:112:25: warning: implicit declaration of function 'print_ftp_reply' [-Wimplicit-function-declaration]
  112 |                         print_ftp_reply(host, reply);
      |                         ^~~~~~~~~~~~~~~
remote.c:117:17: warning: implicit declaration of function 'report_client_timeout' [-Wimplicit-function-declaration]
  117 |                 report_client_timeout(host);
      |                 ^~~~~~~~~~~~~~~~~~~~~
remote.c: At top level:
remote.c:131:1: warning: return type defaults to 'int' [-Wimplicit-int]
  131 | remote_mkdir(host, path)
      | ^~~~~~~~~~~~
remote.c: In function 'remote_mkdir':
remote.c:147:5: warning: implicit declaration of function 'parse_path' [-Wimplicit-function-declaration]
  147 |     parse_path(hinfo[host].system, path, &dir, &entry);
      |     ^~~~~~~~~~
remote.c: At top level:
remote.c:204:1: warning: return type defaults to 'int' [-Wimplicit-int]
  204 | remote_delete(host, path, process_xevents)
      | ^~~~~~~~~~~~~
remote.c:274:1: warning: return type defaults to 'int' [-Wimplicit-int]
  274 | remote_rmdir(host, path, process_xevents)
      | ^~~~~~~~~~~~
remote.c:345:1: warning: return type defaults to 'int' [-Wimplicit-int]
  345 | remote_pwd(host, name)
      | ^~~~~~~~~~
remote.c:426:1: warning: return type defaults to 'int' [-Wimplicit-int]
  426 | remote_rename(host, old_path, new_path)
      | ^~~~~~~~~~~~~
remote.c:542:1: warning: return type defaults to 'int' [-Wimplicit-int]
  542 | quote_cmd(host, cmd)
      | ^~~~~~~~~
remote.c:583:1: warning: return type defaults to 'int' [-Wimplicit-int]
  583 | stage_unitree_file(host, path)
      | ^~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c rename.c
rename.c: In function 'cb_rename_selected_entries':
rename.c:116:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  116 |         int host = (int)client_data;
      |                    ^
rename.c:131:5: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  131 |     raise_okflag();
      |     ^~~~~~~~~~~~
rename.c:138:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  138 |         add_dialog_to_list(renam.w_dialog);
      |         ^~~~~~~~~~~~~~~~~~
rename.c:151:17: warning: implicit declaration of function 'strip_off_symbol' [-Wimplicit-function-declaration]
  151 |                 strip_off_symbol(hinfo[host].system, hinfo[host].server, old_name);
      |                 ^~~~~~~~~~~~~~~~
rename.c:168:33: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
  168 |                                 sprintf(msg, "Unable to rename %s", old_name);
      |                                 ^~~~~~~
rename.c:60:1: note: include '<stdio.h>' or provide a declaration of 'sprintf'
   59 | #include "xftp.h"
  +++ |+#include <stdio.h>
   60 | 
rename.c:168:33: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch]
  168 |                                 sprintf(msg, "Unable to rename %s", old_name);
      |                                 ^~~~~~~
rename.c:168:33: note: include '<stdio.h>' or provide a declaration of 'sprintf'
rename.c:169:33: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  169 |                                 warning_error(msg);
      |                                 ^~~~~~~~~~~~~
rename.c:182:33: warning: implicit declaration of function 'use_busy_cursor' [-Wimplicit-function-declaration]
  182 |                                 use_busy_cursor();
      |                                 ^~~~~~~~~~~~~~~
rename.c:184:42: warning: implicit declaration of function 'local_rename' [-Wimplicit-function-declaration]
  184 |                                 retval = local_rename(host, src_path, snk_path);
      |                                          ^~~~~~~~~~~~
rename.c:186:42: warning: implicit declaration of function 'remote_rename' [-Wimplicit-function-declaration]
  186 |                                 retval = remote_rename(host, src_path, snk_path);
      |                                          ^~~~~~~~~~~~~
rename.c:187:33: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  187 |                                 restore_prev_cursor();
      |                                 ^~~~~~~~~~~~~~~~~~~
rename.c:195:33: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch]
  195 |                                 sprintf(msg, "Unable to rename %s", old_name);
      |                                 ^~~~~~~
rename.c:195:33: note: include '<stdio.h>' or provide a declaration of 'sprintf'
rename.c:201:37: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  201 |                                     write_log(msg);
      |                                     ^~~~~~~~~
rename.c:222:13: warning: implicit declaration of function 'update_dir_displays' [-Wimplicit-function-declaration]
  222 |         if (update_dir_displays(host, False) < 0)
      |             ^~~~~~~~~~~~~~~~~~~
rename.c:224:5: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  224 |     update_xfer_controls();
      |     ^~~~~~~~~~~~~~~~~~~~
rename.c:225:5: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  225 |     update_host_controls(host);
      |     ^~~~~~~~~~~~~~~~~~~~
rename.c:231:9: warning: implicit declaration of function 'lost_connection'; did you mean 'XtNconnection'? [-Wimplicit-function-declaration]
  231 |         lost_connection(host);
      |         ^~~~~~~~~~~~~~~
      |         XtNconnection
rename.c: In function 'create_rename_dialog':
rename.c:276:9: warning: implicit declaration of function 'add_wm_delete_window_cb' [-Wimplicit-function-declaration]
  276 |         add_wm_delete_window_cb(renam.w_dialog, cb_rename_cancel, NULL);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
rename.c: In function 'cb_rename_help':
rename.c:395:5: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  395 |     help_dialog(renam.w_dialog, True, "Rename", rename_help);
      |     ^~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c select.c
select.c: In function 'cb_select_all_entries':
select.c:142:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  142 |     int host = (int)client_data;
      |                ^
select.c:147:9: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  147 |         raise_okflag();
      |         ^~~~~~~~~~~~
select.c:150:9: warning: implicit declaration of function 'clear_selected_entries' [-Wimplicit-function-declaration]
  150 |         clear_selected_entries(LEFT);
      |         ^~~~~~~~~~~~~~~~~~~~~~
select.c:163:13: warning: implicit declaration of function 'dirtable_in_use' [-Wimplicit-function-declaration]
  163 |         if (dirtable_in_use(host))
      |             ^~~~~~~~~~~~~~~
select.c:165:25: warning: implicit declaration of function 'select_table_entry' [-Wimplicit-function-declaration]
  165 |                         select_table_entry(host, i);
      |                         ^~~~~~~~~~~~~~~~~~
select.c:168:5: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  168 |     update_xfer_controls();
      |     ^~~~~~~~~~~~~~~~~~~~
select.c:170:9: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  170 |         update_host_controls(i);
      |         ^~~~~~~~~~~~~~~~~~~~
select.c: In function 'cb_deselect_all_entries':
select.c:183:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  183 |     int host = (int)client_data;
      |                ^
select.c: In function 'cb_use_wildcard':
select.c:206:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  206 |         int host = (int)client_data;
      |                    ^
select.c:213:9: warning: implicit declaration of function 'update_wildcard_dialog'; did you mean 'create_wildcard_dialog'? [-Wimplicit-function-declaration]
  213 |         update_wildcard_dialog(host);
      |         ^~~~~~~~~~~~~~~~~~~~~~
      |         create_wildcard_dialog
select.c:216:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  216 |         add_dialog_to_list(wildcard.w_dialog);
      |         ^~~~~~~~~~~~~~~~~~
select.c: In function 'create_wildcard_dialog':
select.c:286:9: warning: implicit declaration of function 'fix_list_color' [-Wimplicit-function-declaration]
  286 |         fix_list_color(wildcard.w_list);
      |         ^~~~~~~~~~~~~~
select.c:331:9: warning: implicit declaration of function 'set_bg_to_sb_trough_color' [-Wimplicit-function-declaration]
  331 |         set_bg_to_sb_trough_color(wildcard.w_text,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
select.c:332:17: warning: implicit declaration of function 'vertical_sb' [-Wimplicit-function-declaration]
  332 |                 vertical_sb(XtParent(wildcard.w_list)));
      |                 ^~~~~~~~~~~
select.c: In function 'cb_wildcard_ok':
select.c:418:25: warning: implicit declaration of function 'add_to_cache' [-Wimplicit-function-declaration]
  418 |                         add_to_cache(WILDCARD, hinfo[host].hostname, ptr);
      |                         ^~~~~~~~~~~~
select.c:444:17: warning: implicit declaration of function 'strip_off_symbol' [-Wimplicit-function-declaration]
  444 |                 strip_off_symbol(hinfo[host].system, hinfo[host].server, citem);
      |                 ^~~~~~~~~~~~~~~~
select.c:445:21: warning: implicit declaration of function 'match' [-Wimplicit-function-declaration]
  445 |                 if (match(citem, expression)) {
      |                     ^~~~~
select.c:459:17: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  459 |                 warning_error("No match.");
      |                 ^~~~~~~~~~~~~
select.c: At top level:
select.c:475:1: warning: return type defaults to 'int' [-Wimplicit-int]
  475 | update_wildcard_dialog(host)
      | ^~~~~~~~~~~~~~~~~~~~~~
select.c: In function 'update_wildcard_dialog':
select.c:483:9: warning: implicit declaration of function 'retrieve_cache' [-Wimplicit-function-declaration]
  483 |         retrieve_cache(WILDCARD, hinfo[host].hostname, &list, sort_caches);
      |         ^~~~~~~~~~~~~~
select.c:484:9: warning: implicit declaration of function 'reset_list' [-Wimplicit-function-declaration]
  484 |         reset_list(wildcard.w_list);
      |         ^~~~~~~~~~
select.c:490:5: warning: implicit declaration of function 'release_array_list' [-Wimplicit-function-declaration]
  490 |     release_array_list(list);
      |     ^~~~~~~~~~~~~~~~~~
select.c: In function 'cb_wildcard_help':
select.c:547:9: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  547 |         help_dialog(wildcard.w_dialog, True, "Wildcard", wildcard_help);
      |         ^~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c server.c
server.c: In function 'system_name':
server.c:180:9: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  180 |         fatal_error("Bug in system_name()");
      |         ^~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c startup.c
startup.c: In function 'create_startup_pixmap':
startup.c:233:25: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  233 |                         fatal_error("Unable to get font for startup dialog");
      |                         ^~~~~~~~~~~
startup.c: At top level:
startup.c:369:1: warning: return type defaults to 'int' [-Wimplicit-int]
  369 | display_startup_dialog()
      | ^~~~~~~~~~~~~~~~~~~~~~
startup.c:466:1: warning: return type defaults to 'int' [-Wimplicit-int]
  466 | close_startup_dialog()
      | ^~~~~~~~~~~~~~~~~~~~
startup.c: In function 'close_startup_dialog':
startup.c:481:17: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration]
  481 |                 sleep(1);
      |                 ^~~~~
startup.c: At top level:
startup.c:493:1: warning: return type defaults to 'int' [-Wimplicit-int]
  493 | write_copyright()
      | ^~~~~~~~~~~~~~~
startup.c: In function 'write_copyright':
startup.c:495:5: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  495 |     write_log("LLNL XFTP ");
      |     ^~~~~~~~~
startup.c:499:9: warning: implicit declaration of function 'show_top_of_log' [-Wimplicit-function-declaration]
  499 |         show_top_of_log();
      |         ^~~~~~~~~~~~~~~
startup.c: In function 'cb_about_xftp':
startup.c:513:5: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  513 |     raise_okflag();
      |     ^~~~~~~~~~~~
startup.c:516:5: warning: implicit declaration of function 'create_about_dialog' [-Wimplicit-function-declaration]
  516 |     create_about_dialog();
      |     ^~~~~~~~~~~~~~~~~~~
startup.c: At top level:
startup.c:525:1: warning: return type defaults to 'int' [-Wimplicit-int]
  525 | create_about_dialog()
      | ^~~~~~~~~~~~~~~~~~~
startup.c: In function 'create_about_dialog':
startup.c:543:5: warning: implicit declaration of function 'add_wm_delete_window_cb' [-Wimplicit-function-declaration]
  543 |     add_wm_delete_window_cb(about.w_dialog, cb_about_close, NULL);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
startup.c: In function 'cb_about_close':
startup.c:590:5: warning: implicit declaration of function 'close_about' [-Wimplicit-function-declaration]
  590 |     close_about();
      |     ^~~~~~~~~~~
startup.c: In function 'cb_about_help':
startup.c:604:5: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  604 |     help_dialog(w_toplev, False, "About LLNL XFTP", about_xftp);
      |     ^~~~~~~~~~~
startup.c: At top level:
startup.c:611:1: warning: return type defaults to 'int' [-Wimplicit-int]
  611 | close_about()
      | ^~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c system.c
system.c:66:1: warning: return type defaults to 'int' [-Wimplicit-int]
   66 | iaccept(s, addr, addrlen)
      | ^~~~~~~
system.c:91:1: warning: return type defaults to 'int' [-Wimplicit-int]
   91 | iconnect(s, name, namelen)
      | ^~~~~~~~
system.c:112:1: warning: return type defaults to 'int' [-Wimplicit-int]
  112 | iopen2(path, flags)
      | ^~~~~~
system.c: In function 'iopen2':
system.c:119:23: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration]
  119 |                 ret = open(path, flags);
      |                       ^~~~
      |                       popen
system.c: At top level:
system.c:132:1: warning: return type defaults to 'int' [-Wimplicit-int]
  132 | iopen3(path, flags, mode)
      | ^~~~~~
system.c:153:1: warning: return type defaults to 'int' [-Wimplicit-int]
  153 | iread(fd, buf, nbyte)
      | ^~~~~
system.c: In function 'iread':
system.c:161:23: warning: implicit declaration of function 'read'; did you mean 'iread'? [-Wimplicit-function-declaration]
  161 |                 ret = read(fd, buf, nbyte);
      |                       ^~~~
      |                       iread
system.c: At top level:
system.c:174:1: warning: return type defaults to 'int' [-Wimplicit-int]
  174 | isend(s, msg, len, flags)
      | ^~~~~
system.c:196:1: warning: return type defaults to 'int' [-Wimplicit-int]
  196 | iwrite(fd, buf, nbyte)
      | ^~~~~~
system.c: In function 'iwrite':
system.c:204:23: warning: implicit declaration of function 'write'; did you mean 'iwrite'? [-Wimplicit-function-declaration]
  204 |                 ret = write(fd, buf, nbyte);
      |                       ^~~~~
      |                       iwrite
system.c: At top level:
system.c:217:1: warning: return type defaults to 'int' [-Wimplicit-int]
  217 | iwait(status)
      | ^~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c toplev.c
toplev.c:413:1: warning: return type defaults to 'int' [-Wimplicit-int]
  413 | create_main_window()
      | ^~~~~~~~~~~~~~~~~~
toplev.c: In function 'create_main_window':
toplev.c:449:9: warning: implicit declaration of function 'CreateHostGUI' [-Wimplicit-function-declaration]
  449 |         CreateHostGUI(LEFT, w_topForm);
      |         ^~~~~~~~~~~~~
toplev.c:531:9: warning: implicit declaration of function 'XmToggleButtonSetState'; did you mean 'XmToggleButtonGadgetSetState'? [-Wimplicit-function-declaration]
  531 |         XmToggleButtonSetState(w_ascii, True, True);
      |         ^~~~~~~~~~~~~~~~~~~~~~
      |         XmToggleButtonGadgetSetState
toplev.c:667:9: warning: implicit declaration of function 'init_result_flag'; did you mean 'cb_help_result_flag'? [-Wimplicit-function-declaration]
  667 |         init_result_flag();
      |         ^~~~~~~~~~~~~~~~
      |         cb_help_result_flag
toplev.c:685:9: warning: implicit declaration of function 'fix_vertical_text_sb_color' [-Wimplicit-function-declaration]
  685 |         fix_vertical_text_sb_color(w_log);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~
toplev.c:686:9: warning: implicit declaration of function 'fix_horizontal_text_sb_color' [-Wimplicit-function-declaration]
  686 |         fix_horizontal_text_sb_color(w_log);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
toplev.c:688:9: warning: implicit declaration of function 'set_bg_to_sb_trough_color' [-Wimplicit-function-declaration]
  688 |         set_bg_to_sb_trough_color(w_log, widget);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
toplev.c: At top level:
toplev.c:704:1: warning: return type defaults to 'int' [-Wimplicit-int]
  704 | CreateHostGUI(host, parent)
      | ^~~~~~~~~~~~~
toplev.c: In function 'CreateHostGUI':
toplev.c:733:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  733 |                 (XtPointer)host);
      |                 ^
toplev.c:743:43: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  743 |                 NULL, connect_menu[host], (XtPointer)host);
      |                                           ^
toplev.c:745:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  745 |                 (XtPointer)host);
      |                 ^
toplev.c:747:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  747 |                 dir_menu[host], (XtPointer)host);
      |                                 ^
toplev.c:749:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  749 |                 (XtPointer)host);
      |                 ^
toplev.c:752:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  752 |                 (XtPointer)host);
      |                 ^
toplev.c:753:9: warning: implicit declaration of function 'initialize_goto_menu' [-Wimplicit-function-declaration]
  753 |         initialize_goto_menu(host);
      |         ^~~~~~~~~~~~~~~~~~~~
toplev.c:755:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  755 |                 NULL, select_menu[host], (XtPointer)host);
      |                                          ^
toplev.c:757:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  757 |                 (XtPointer)host);
      |                 ^
toplev.c:759:33: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  759 |                 ops_menu[host], (XtPointer)host);
      |                                 ^
toplev.c:761:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  761 |                 (XtPointer)host);
      |                 ^
toplev.c:790:37: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  790 |                         cb_set_dir, (XtPointer)host);
      |                                     ^
toplev.c:801:65: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  801 |         XtAddCallback(widget, XmNhelpCallback, cb_help_dirname, (XtPointer)host);
      |                                                                 ^
toplev.c:803:9: warning: implicit declaration of function 'update_dirname_menu' [-Wimplicit-function-declaration]
  803 |         update_dirname_menu(host);
      |         ^~~~~~~~~~~~~~~~~~~
toplev.c:821:9: warning: implicit declaration of function 'fix_list_color' [-Wimplicit-function-declaration]
  821 |         fix_list_color(w_dirList[host]);
      |         ^~~~~~~~~~~~~~
toplev.c:825:17: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  825 |                 (XtPointer)host);
      |                 ^
toplev.c:827:63: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  827 |         XtAddCallback(w_sb, XmNhelpCallback, cb_help_dirlist, (XtPointer)host);
      |                                                               ^
toplev.c:829:63: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  829 |         XtAddCallback(w_sb, XmNhelpCallback, cb_help_dirlist, (XtPointer)host);
      |                                                               ^
toplev.c:833:32: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  833 |         cb_multiple_selection, (XtPointer)host);
      |                                ^
toplev.c:837:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
  837 |         (XtPointer)host);
      |         ^
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c verify.c
verify.c:89:1: warning: return type defaults to 'int' [-Wimplicit-int]
   89 | verify_selection(host, question)
      | ^~~~~~~~~~~~~~~~
verify.c: In function 'verify_selection':
verify.c:121:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  121 |         add_dialog_to_list(verif.w_dialog);
      |         ^~~~~~~~~~~~~~~~~~
verify.c: In function 'create_verify_dialog':
verify.c:153:9: warning: implicit declaration of function 'add_wm_delete_window_cb' [-Wimplicit-function-declaration]
  153 |         add_wm_delete_window_cb(verif.w_dialog, cb_verify_cancel, NULL);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
verify.c:199:9: warning: implicit declaration of function 'fix_list_color' [-Wimplicit-function-declaration]
  199 |         fix_list_color(verif.w_list);
      |         ^~~~~~~~~~~~~~
verify.c: In function 'cb_verify_multiple_selection':
verify.c:262:9: warning: implicit declaration of function 'beep' [-Wimplicit-function-declaration]
  262 |         beep();
      |         ^~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c view1.c
view1.c: In function 'cb_view_selected_file':
view1.c:103:9: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  103 |         raise_okflag();
      |         ^~~~~~~~~~~~
view1.c:106:13: warning: implicit declaration of function 'host_selected'; did you mean 'HostDelete'? [-Wimplicit-function-declaration]
  106 |         if (host_selected(LEFT))
      |             ^~~~~~~~~~~~~
      |             HostDelete
view1.c:115:9: warning: implicit declaration of function 'use_busy_cursor' [-Wimplicit-function-declaration]
  115 |         use_busy_cursor();
      |         ^~~~~~~~~~~~~~~
view1.c:123:21: warning: implicit declaration of function 'ftp_type' [-Wimplicit-function-declaration]
  123 |                 if (ftp_type(src_host, xfer_mode) < 0) {
      |                     ^~~~~~~~
view1.c:124:25: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  124 |                         restore_prev_cursor();
      |                         ^~~~~~~~~~~~~~~~~~~
view1.c:125:25: warning: implicit declaration of function 'lost_connection'; did you mean 'XtNconnection'? [-Wimplicit-function-declaration]
  125 |                         lost_connection(src_host);
      |                         ^~~~~~~~~~~~~~~
      |                         XtNconnection
view1.c:130:9: warning: implicit declaration of function 'enable_controls' [-Wimplicit-function-declaration]
  130 |         enable_controls(False);
      |         ^~~~~~~~~~~~~~~
view1.c:140:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  140 |                 fatal_error("Bug in cb_view_selected_file()");  /* Sanity check */
      |                 ^~~~~~~~~~~
view1.c:148:9: warning: implicit declaration of function 'strip_off_symbol' [-Wimplicit-function-declaration]
  148 |         strip_off_symbol(hinfo[src_host].system, hinfo[src_host].server,ptr->entry);
      |         ^~~~~~~~~~~~~~~~
view1.c:178:9: warning: implicit declaration of function 'show_xfermon' [-Wimplicit-function-declaration]
  178 |         show_xfermon();
      |         ^~~~~~~~~~~~
view1.c:179:9: warning: implicit declaration of function 'set_xfermon_status' [-Wimplicit-function-declaration]
  179 |         set_xfermon_status(STATUS_PASS1);
      |         ^~~~~~~~~~~~~~~~~~
view1.c:180:9: warning: implicit declaration of function 'set_xfermon_name_label' [-Wimplicit-function-declaration]
  180 |         set_xfermon_name_label("File Name:");
      |         ^~~~~~~~~~~~~~~~~~~~~~
view1.c:181:9: warning: implicit declaration of function 'set_xfermon_progress' [-Wimplicit-function-declaration]
  181 |         set_xfermon_progress((long)-1, (long)-1);
      |         ^~~~~~~~~~~~~~~~~~~~
view1.c: At top level:
view1.c:189:1: warning: return type defaults to 'int' [-Wimplicit-int]
  189 | cb_view_xfer_file()
      | ^~~~~~~~~~~~~~~~~
view1.c: In function 'cb_view_xfer_file':
view1.c:206:21: warning: implicit declaration of function 'xfer_abort_requested' [-Wimplicit-function-declaration]
  206 |                 if (xfer_abort_requested()) {
      |                     ^~~~~~~~~~~~~~~~~~~~
view1.c:207:25: warning: implicit declaration of function 'xfer_done' [-Wimplicit-function-declaration]
  207 |                         xfer_done(False, False);
      |                         ^~~~~~~~~
view1.c:211:25: warning: implicit declaration of function 'src_paths_of_xfer_node' [-Wimplicit-function-declaration]
  211 |                         src_paths_of_xfer_node(xc.staged_file[0].node, &rel_path, NULL);
      |                         ^~~~~~~~~~~~~~~~~~~~~~
view1.c:213:25: warning: implicit declaration of function 'set_xfermon_name' [-Wimplicit-function-declaration]
  213 |                         set_xfermon_name(rel_path);
      |                         ^~~~~~~~~~~~~~~~
view1.c:217:40: warning: implicit declaration of function 'time_of_day' [-Wimplicit-function-declaration]
  217 |                         current_time = time_of_day();
      |                                        ^~~~~~~~~~~
view1.c:219:33: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration]
  219 |                                 sleep(DELTA);
      |                                 ^~~~~
view1.c:223:34: warning: implicit declaration of function 'stage_unitree_file' [-Wimplicit-function-declaration]
  223 |                         retval = stage_unitree_file(xc.src_host, full_path);
      |                                  ^~~~~~~~~~~~~~~~~~
view1.c:233:33: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  233 |                                 warning_error(msg);
      |                                 ^~~~~~~~~~~~~
view1.c:341:25: warning: implicit declaration of function 'snk_paths_of_xfer_node' [-Wimplicit-function-declaration]
  341 |                         snk_paths_of_xfer_node(xc.current_node, NULL, &snk_path);
      |                         ^~~~~~~~~~~~~~~~~~~~~~
view1.c:342:25: warning: implicit declaration of function 'delete_file_and_its_dir' [-Wimplicit-function-declaration]
  342 |                         delete_file_and_its_dir(snk_path);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~
view1.c:360:25: warning: implicit declaration of function 'start_timer'; did you mean 'stop_timer'? [-Wimplicit-function-declaration]
  360 |                         start_timer();
      |                         ^~~~~~~~~~~
      |                         stop_timer
view1.c:367:25: warning: implicit declaration of function 'xfer_abort' [-Wimplicit-function-declaration]
  367 |                         xfer_abort();
      |                         ^~~~~~~~~~
view1.c:399:33: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  399 |                                 write_log(msg);
      |                                 ^~~~~~~~~
view1.c:401:33: warning: implicit declaration of function 'print_xfer_stats' [-Wimplicit-function-declaration]
  401 |                                 print_xfer_stats(ftime, xc.file_len);
      |                                 ^~~~~~~~~~~~~~~~
view1.c:408:25: warning: implicit declaration of function 'view_file' [-Wimplicit-function-declaration]
  408 |                         view_file(xc.src_host, snk_path);
      |                         ^~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c view2.c
view2.c:108:8: warning: type defaults to 'int' in declaration of 'ndecompressor_mappings' [-Wimplicit-int]
  108 | static ndecompressor_mappings = XtNumber(decompressor_mappings);
      |        ^~~~~~~~~~~~~~~~~~~~~~
view2.c: In function 'create_internal_viewer_dialog':
view2.c:178:9: warning: implicit declaration of function 'add_wm_delete_window_cb' [-Wimplicit-function-declaration]
  178 |         add_wm_delete_window_cb(view->w_dialog, cb_internal_viewer_close,
      |         ^~~~~~~~~~~~~~~~~~~~~~~
view2.c:262:5: warning: implicit declaration of function 'fix_vertical_text_sb_color' [-Wimplicit-function-declaration]
  262 |     fix_vertical_text_sb_color(view->w_text);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
view2.c:263:5: warning: implicit declaration of function 'fix_horizontal_text_sb_color' [-Wimplicit-function-declaration]
  263 |     fix_horizontal_text_sb_color(view->w_text);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
view2.c:264:9: warning: implicit declaration of function 'set_bg_to_sb_trough_color' [-Wimplicit-function-declaration]
  264 |         set_bg_to_sb_trough_color(view->w_text,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
view2.c: In function 'cb_internal_viewer_save':
view2.c:349:17: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  349 |                 warning_error("Viewer not present.  Unable to save file.");
      |                 ^~~~~~~~~~~~~
view2.c:355:9: warning: implicit declaration of function 'parse_path' [-Wimplicit-function-declaration]
  355 |         parse_path(SYS_UNIX, src_file, NULL, &filename);
      |         ^~~~~~~~~~
view2.c:359:28: warning: implicit declaration of function 'iopen2'; did you mean 'open'? [-Wimplicit-function-declaration]
  359 |         if ((src_file_fd = iopen2(src_file, O_RDONLY)) < 0) {
      |                            ^~~~~~
      |                            open
view2.c:360:17: warning: implicit declaration of function 'report_perror' [-Wimplicit-function-declaration]
  360 |                 report_perror(LOCAL_HOST, src_file);
      |                 ^~~~~~~~~~~~~
view2.c:367:17: warning: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration]
  367 |                 close(src_file_fd);
      |                 ^~~~~
      |                 pclose
view2.c:373:9: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration]
  373 |     if (unlink(snk_file) == -1)
      |         ^~~~~~
view2.c:379:24: warning: implicit declaration of function 'iopen3'; did you mean 'open'? [-Wimplicit-function-declaration]
  379 |     if ((snk_file_fd = iopen3(snk_file, O_CREAT|O_WRONLY, 0644)) < 0) {
      |                        ^~~~~~
      |                        open
view2.c:389:21: warning: implicit declaration of function 'iread'; did you mean 'fread'? [-Wimplicit-function-declaration]
  389 |                 if (iread(src_file_fd, buf, nbytes) != nbytes) {
      |                     ^~~~~
      |                     fread
view2.c:396:21: warning: implicit declaration of function 'iwrite'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
  396 |                 if (iwrite(snk_file_fd, buf, nbytes) != nbytes) {
      |                     ^~~~~~
      |                     fwrite
view2.c:410:9: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  410 |         write_log("*** Successfully saved file: ");
      |         ^~~~~~~~~
view2.c: In function 'cb_internal_viewer_help':
view2.c:454:5: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  454 |     help_dialog(view->w_dialog, False, "Built-in Viewer", view_help);
      |     ^~~~~~~~~~~
view2.c: In function 'delete_viewer_dir':
view2.c:497:13: warning: implicit declaration of function 'local_ls' [-Wimplicit-function-declaration]
  497 |         if (local_ls(dir, &dlist, False) == 0) {
      |             ^~~~~~~~
view2.c:503:17: warning: implicit declaration of function 'release_array_list' [-Wimplicit-function-declaration]
  503 |                 release_array_list(dlist);
      |                 ^~~~~~~~~~~~~~~~~~
view2.c:507:9: warning: implicit declaration of function 'rmdir' [-Wimplicit-function-declaration]
  507 |         rmdir(dir);
      |         ^~~~~
view2.c: At top level:
view2.c:516:1: warning: return type defaults to 'int' [-Wimplicit-int]
  516 | delete_all_viewer_dirs()
      | ^~~~~~~~~~~~~~~~~~~~~~
view2.c:550:1: warning: return type defaults to 'int' [-Wimplicit-int]
  550 | use_internal_viewer(host, file)
      | ^~~~~~~~~~~~~~~~~~~
view2.c: In function 'use_internal_viewer':
view2.c:625:5: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  625 |     add_dialog_to_list(view->w_dialog);
      |     ^~~~~~~~~~~~~~~~~~
view2.c: At top level:
view2.c:638:1: warning: return type defaults to 'int' [-Wimplicit-int]
  638 | view_file(host, file)
      | ^~~~~~~~~
view2.c: In function 'view_file':
view2.c:693:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  693 |                 fatal_error("Trouble in view_file.");
      |                 ^~~~~~~~~~~
view2.c:699:28: warning: implicit declaration of function 'use_external_viewer'; did you mean 'use_internal_viewer'? [-Wimplicit-function-declaration]
  699 |                 ptr->pid = use_external_viewer(host, command_line, viewable_file);
      |                            ^~~~~~~~~~~~~~~~~~~
      |                            use_internal_viewer
view2.c: In function 'decompress_file':
view2.c:768:18: warning: implicit declaration of function 'system_with_preserve_sigcld' [-Wimplicit-function-declaration]
  768 |         retval = system_with_preserve_sigcld(command_line);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
view2.c: At top level:
view2.c:813:1: warning: return type defaults to 'int' [-Wimplicit-int]
  813 | delete_file_and_its_dir(file)
      | ^~~~~~~~~~~~~~~~~~~~~~~
view2.c:839:1: warning: return type defaults to 'int' [-Wimplicit-int]
  839 | use_external_viewer(host, command_line, file)
      | ^~~~~~~~~~~~~~~~~~~
view2.c: In function 'use_external_viewer':
view2.c:888:17: warning: implicit declaration of function 'set_view_dir_remover_timer'; did you mean 'cb_view_dir_remover'? [-Wimplicit-function-declaration]
  888 |                 set_view_dir_remover_timer();
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 cb_view_dir_remover
view2.c:893:16: warning: implicit declaration of function 'fork' [-Wimplicit-function-declaration]
  893 |     if ((pid = fork()) == 0)
      |                ^~~~
view2.c:894:13: warning: implicit declaration of function 'execvp' [-Wimplicit-function-declaration]
  894 |         if (execvp(argv[0], argv) == -1) {
      |             ^~~~~~
view2.c: At top level:
view2.c:962:1: warning: return type defaults to 'int' [-Wimplicit-int]
  962 | set_view_dir_remover_timer()
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c viewprefs.c
viewprefs.c:161:8: warning: type defaults to 'int' in declaration of 'ndefault_mappings' [-Wimplicit-int]
  161 | static ndefault_mappings = XtNumber(default_mappings);
      |        ^~~~~~~~~~~~~~~~~
viewprefs.c: In function 'cb_viewer_preferences':
viewprefs.c:195:5: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
  195 |     raise_okflag();
      |     ^~~~~~~~~~~~
viewprefs.c:208:9: warning: implicit declaration of function 'display_viewprefs' [-Wimplicit-function-declaration]
  208 |         display_viewprefs(viewer_mappings);
      |         ^~~~~~~~~~~~~~~~~
viewprefs.c:216:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  216 |         add_dialog_to_list(viewprefs.w_dialog);
      |         ^~~~~~~~~~~~~~~~~~
viewprefs.c: In function 'create_viewprefs_dialog':
viewprefs.c:261:9: warning: implicit declaration of function 'add_wm_delete_window_cb' [-Wimplicit-function-declaration]
  261 |         add_wm_delete_window_cb(viewprefs.w_dialog, cb_viewprefs_cancel, NULL);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
viewprefs.c:425:5: warning: implicit declaration of function 'fix_list_color' [-Wimplicit-function-declaration]
  425 |     fix_list_color(viewprefs.w_list);
      |     ^~~~~~~~~~~~~~
viewprefs.c:470:5: warning: implicit declaration of function 'set_bg_to_sb_trough_color' [-Wimplicit-function-declaration]
  470 |     set_bg_to_sb_trough_color(viewprefs.w_extension,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~
viewprefs.c:471:9: warning: implicit declaration of function 'vertical_sb' [-Wimplicit-function-declaration]
  471 |         vertical_sb(XtParent(viewprefs.w_list)));
      |         ^~~~~~~~~~~
viewprefs.c: In function 'cb_viewprefs_ok':
viewprefs.c:494:9: warning: implicit declaration of function 'apply_viewer_prefs' [-Wimplicit-function-declaration]
  494 |         apply_viewer_prefs();
      |         ^~~~~~~~~~~~~~~~~~
viewprefs.c:495:9: warning: implicit declaration of function 'release_array_list'; did you mean 'create_array_list'? [-Wimplicit-function-declaration]
  495 |         release_array_list(temp_viewer_mappings);
      |         ^~~~~~~~~~~~~~~~~~
      |         create_array_list
viewprefs.c: In function 'cb_viewprefs_help':
viewprefs.c:549:9: warning: implicit declaration of function 'help_dialog' [-Wimplicit-function-declaration]
  549 |         help_dialog(viewprefs.w_dialog, False, "Viewer Preferences",
      |         ^~~~~~~~~~~
viewprefs.c: At top level:
viewprefs.c:558:1: warning: return type defaults to 'int' [-Wimplicit-int]
  558 | add_to_list()
      | ^~~~~~~~~~~
viewprefs.c: In function 'add_to_list':
viewprefs.c:569:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  569 |                 fatal_error("Trouble in cb_viewprefs_add()");
      |                 ^~~~~~~~~~~
viewprefs.c:586:13: warning: implicit declaration of function 'delete_from_array_list' [-Wimplicit-function-declaration]
  586 |             delete_from_array_list(&temp_viewer_mappings, i);
      |             ^~~~~~~~~~~~~~~~~~~~~~
viewprefs.c:589:5: warning: implicit declaration of function 'add_to_array_list'; did you mean 'create_array_list'? [-Wimplicit-function-declaration]
  589 |     add_to_array_list(&temp_viewer_mappings, ext_command);
      |     ^~~~~~~~~~~~~~~~~
      |     create_array_list
viewprefs.c:593:9: warning: implicit declaration of function 'quicksort' [-Wimplicit-function-declaration]
  593 |         quicksort(temp_viewer_mappings->entries, temp_viewer_mappings->nentries,
      |         ^~~~~~~~~
viewprefs.c: In function 'cb_viewprefs_delete':
viewprefs.c:659:17: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  659 |                 warning_error("Can't delete \"OTHERS\" - Use \"Add\" to replace.");
      |                 ^~~~~~~~~~~~~
viewprefs.c: At top level:
viewprefs.c:681:1: warning: return type defaults to 'int' [-Wimplicit-int]
  681 | apply_viewer_prefs()
      | ^~~~~~~~~~~~~~~~~~
viewprefs.c:695:1: warning: return type defaults to 'int' [-Wimplicit-int]
  695 | construct_viewprefs_filename()
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
viewprefs.c:804:1: warning: return type defaults to 'int' [-Wimplicit-int]
  804 | compare_first_token(string1, string2)
      | ^~~~~~~~~~~~~~~~~~~
viewprefs.c:832:1: warning: return type defaults to 'int' [-Wimplicit-int]
  832 | save_viewprefs()
      | ^~~~~~~~~~~~~~
viewprefs.c:853:1: warning: return type defaults to 'int' [-Wimplicit-int]
  853 | display_viewprefs(mappings)
      | ^~~~~~~~~~~~~~~~~
viewprefs.c: In function 'display_viewprefs':
viewprefs.c:862:9: warning: implicit declaration of function 'reset_list' [-Wimplicit-function-declaration]
  862 |         reset_list(viewprefs.w_list);
      |         ^~~~~~~~~~
viewprefs.c: In function 'did_user_forget':
viewprefs.c:1049:37: warning: implicit declaration of function 'question_dialog' [-Wimplicit-function-declaration]
 1049 |                                 if (question_dialog(question))
      |                                     ^~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c xfer1.c
xfer1.c: In function 'cb_copy':
xfer1.c:85:25: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
   85 |         int operation = (int)client_data;
      |                         ^
xfer1.c:98:9: warning: implicit declaration of function 'raise_okflag' [-Wimplicit-function-declaration]
   98 |         raise_okflag();
      |         ^~~~~~~~~~~~
xfer1.c:101:13: warning: implicit declaration of function 'host_selected'; did you mean 'HostDelete'? [-Wimplicit-function-declaration]
  101 |         if (host_selected(LEFT)) {
      |             ^~~~~~~~~~~~~
      |             HostDelete
xfer1.c:108:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  108 |                 fatal_error("Bug in cb_copy() - Contact programmer");
      |                 ^~~~~~~~~~~
xfer1.c:114:22: warning: implicit declaration of function 'verify_selection' [-Wimplicit-function-declaration]
  114 |             retval = verify_selection(src_host,
      |                      ^~~~~~~~~~~~~~~~
xfer1.c:126:9: warning: implicit declaration of function 'use_busy_cursor' [-Wimplicit-function-declaration]
  126 |         use_busy_cursor();
      |         ^~~~~~~~~~~~~~~
xfer1.c:134:21: warning: implicit declaration of function 'ftp_type' [-Wimplicit-function-declaration]
  134 |                 if (ftp_type(src_host, xfer_mode) < 0) {
      |                     ^~~~~~~~
xfer1.c:135:25: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  135 |                         restore_prev_cursor();
      |                         ^~~~~~~~~~~~~~~~~~~
xfer1.c:136:25: warning: implicit declaration of function 'lost_connection'; did you mean 'XtNconnection'? [-Wimplicit-function-declaration]
  136 |                         lost_connection(src_host);
      |                         ^~~~~~~~~~~~~~~
      |                         XtNconnection
xfer1.c:147:9: warning: implicit declaration of function 'enable_controls' [-Wimplicit-function-declaration]
  147 |         enable_controls(False);
      |         ^~~~~~~~~~~~~~~
xfer1.c:164:17: warning: implicit declaration of function 'strip_off_symbol' [-Wimplicit-function-declaration]
  164 |                 strip_off_symbol(hinfo[src_host].system, hinfo[src_host].server,
      |                 ^~~~~~~~~~~~~~~~
xfer1.c:207:9: warning: implicit declaration of function 'show_xfermon' [-Wimplicit-function-declaration]
  207 |         show_xfermon();
      |         ^~~~~~~~~~~~
xfer1.c:211:9: warning: implicit declaration of function 'set_xfermon_status' [-Wimplicit-function-declaration]
  211 |         set_xfermon_status(STATUS_PASS1);
      |         ^~~~~~~~~~~~~~~~~~
xfer1.c:212:9: warning: implicit declaration of function 'set_xfermon_name_label' [-Wimplicit-function-declaration]
  212 |         set_xfermon_name_label("Directory:");
      |         ^~~~~~~~~~~~~~~~~~~~~~
xfer1.c:213:9: warning: implicit declaration of function 'set_xfermon_progress' [-Wimplicit-function-declaration]
  213 |         set_xfermon_progress((long)-1, (long)-1);
      |         ^~~~~~~~~~~~~~~~~~~~
xfer1.c: At top level:
xfer1.c:222:1: warning: return type defaults to 'int' [-Wimplicit-int]
  222 | test_for_dir(host, path)
      | ^~~~~~~~~~~~
xfer1.c: In function 'test_for_dir':
xfer1.c:227:21: warning: implicit declaration of function 'local_cd' [-Wimplicit-function-declaration]
  227 |                 if (local_cd(host, path, False) == 0)
      |                     ^~~~~~~~
xfer1.c:230:25: warning: implicit declaration of function 'remote_cd' [-Wimplicit-function-declaration]
  230 |                 switch (remote_cd(host, path, True, False)) {
      |                         ^~~~~~~~~
xfer1.c: In function 'rel_path_of_xfer_node':
xfer1.c:288:9: warning: implicit declaration of function 'release_path_links' [-Wimplicit-function-declaration]
  288 |         release_path_links(links);
      |         ^~~~~~~~~~~~~~~~~~
xfer1.c: At top level:
xfer1.c:301:1: warning: return type defaults to 'int' [-Wimplicit-int]
  301 | src_paths_of_xfer_node(node, rel_path, full_path)
      | ^~~~~~~~~~~~~~~~~~~~~~
xfer1.c:336:1: warning: return type defaults to 'int' [-Wimplicit-int]
  336 | snk_paths_of_xfer_node(node, rel_path, full_path)
      | ^~~~~~~~~~~~~~~~~~~~~~
xfer1.c:407:1: warning: return type defaults to 'int' [-Wimplicit-int]
  407 | release_xfer_forest()
      | ^~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c xfer2.c
xfer2.c:73:1: warning: return type defaults to 'int' [-Wimplicit-int]
   73 | cb_examine_src_forest()
      | ^~~~~~~~~~~~~~~~~~~~~
xfer2.c: In function 'cb_examine_src_forest':
xfer2.c:89:29: warning: implicit declaration of function 'xfer_abort_requested' [-Wimplicit-function-declaration]
   89 |                         if (xfer_abort_requested()) {
      |                             ^~~~~~~~~~~~~~~~~~~~
xfer2.c:90:33: warning: implicit declaration of function 'xfer_done' [-Wimplicit-function-declaration]
   90 |                                 xfer_done(False, False);
      |                                 ^~~~~~~~~
xfer2.c:95:41: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
   95 |                                         fatal_error("Bug in cb_examine_src_forest()");
      |                                         ^~~~~~~~~~~
xfer2.c:97:41: warning: implicit declaration of function 'src_paths_of_xfer_node' [-Wimplicit-function-declaration]
   97 |                                         src_paths_of_xfer_node(xc.s0ptr->parent, &rel_path_parent,
      |                                         ^~~~~~~~~~~~~~~~~~~~~~
xfer2.c:101:33: warning: implicit declaration of function 'set_xfermon_name' [-Wimplicit-function-declaration]
  101 |                                 set_xfermon_name(rel_path_parent);
      |                                 ^~~~~~~~~~~~~~~~
xfer2.c:104:42: warning: implicit declaration of function 'test_for_dir' [-Wimplicit-function-declaration]
  104 |                                 retval = test_for_dir(xc.src_host, full_path);
      |                                          ^~~~~~~~~~~~
xfer2.c:133:37: warning: implicit declaration of function 'dir_in_xfer_forest' [-Wimplicit-function-declaration]
  133 |                                 if (dir_in_xfer_forest()) {
      |                                     ^~~~~~~~~~~~~~~~~~
xfer2.c:135:49: warning: implicit declaration of function 'set_xfermon_status' [-Wimplicit-function-declaration]
  135 |                                                 set_xfermon_status(STATUS_PASS3);
      |                                                 ^~~~~~~~~~~~~~~~~~
xfer2.c:144:41: warning: implicit declaration of function 'show_xfermon' [-Wimplicit-function-declaration]
  144 |                                         show_xfermon();
      |                                         ^~~~~~~~~~~~
xfer2.c:150:41: warning: implicit declaration of function 'set_xfermon_name_label' [-Wimplicit-function-declaration]
  150 |                                         set_xfermon_name_label("File Name:");
      |                                         ^~~~~~~~~~~~~~~~~~~~~~
xfer2.c:160:33: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  160 |                                 warning_error( "File transfer recurses too deeply - aborted.");
      |                                 ^~~~~~~~~~~~~
xfer2.c:168:42: warning: implicit declaration of function 'local_ls' [-Wimplicit-function-declaration]
  168 |                                 retval = local_ls(full_path, &list, False);
      |                                          ^~~~~~~~
xfer2.c:170:42: warning: implicit declaration of function 'remote_ls' [-Wimplicit-function-declaration]
  170 |                                 retval = remote_ls(xc.src_host, full_path, &list, False);
      |                                          ^~~~~~~~~
xfer2.c:206:25: warning: implicit declaration of function 'release_array_list' [-Wimplicit-function-declaration]
  206 |                         release_array_list(list);
      |                         ^~~~~~~~~~~~~~~~~~
xfer2.c: At top level:
xfer2.c:224:1: warning: return type defaults to 'int' [-Wimplicit-int]
  224 | dir_in_xfer_forest()
      | ^~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c xfer3.c
xfer3.c:74:1: warning: return type defaults to 'int' [-Wimplicit-int]
   74 | cb_examine_snk_forest()
      | ^~~~~~~~~~~~~~~~~~~~~
xfer3.c: In function 'cb_examine_snk_forest':
xfer3.c:82:21: warning: implicit declaration of function 'xfer_abort_requested' [-Wimplicit-function-declaration]
   82 |                 if (xfer_abort_requested()) {
      |                     ^~~~~~~~~~~~~~~~~~~~
xfer3.c:83:25: warning: implicit declaration of function 'xfer_done' [-Wimplicit-function-declaration]
   83 |                         xfer_done(False, False);
      |                         ^~~~~~~~~
xfer3.c:91:33: warning: implicit declaration of function 'set_xfermon_status' [-Wimplicit-function-declaration]
   91 |                                 set_xfermon_status(STATUS_PASS3);
      |                                 ^~~~~~~~~~~~~~~~~~
xfer3.c:101:33: warning: implicit declaration of function 'snk_paths_of_xfer_node' [-Wimplicit-function-declaration]
  101 |                                 snk_paths_of_xfer_node(xc.node[xc.level], &rel_path,&full_path);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~
xfer3.c:102:33: warning: implicit declaration of function 'set_xfermon_name' [-Wimplicit-function-declaration]
  102 |                                 set_xfermon_name(rel_path);
      |                                 ^~~~~~~~~~~~~~~~
xfer3.c:103:42: warning: implicit declaration of function 'test_for_dir' [-Wimplicit-function-declaration]
  103 |                                 retval = test_for_dir(xc.snk_host, full_path);
      |                                          ^~~~~~~~~~~~
xfer3.c:115:41: warning: implicit declaration of function 'enable_xfermon_abort' [-Wimplicit-function-declaration]
  115 |                                         enable_xfermon_abort(False);
      |                                         ^~~~~~~~~~~~~~~~~~~~
xfer3.c:116:50: warning: implicit declaration of function 'question_dialog' [-Wimplicit-function-declaration]
  116 |                                         retval = question_dialog(msg);
      |                                                  ^~~~~~~~~~~~~~~
xfer3.c:133:25: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  133 |                         fatal_error("Bug in cb_examine_snk_forest()");
      |                         ^~~~~~~~~~~
xfer3.c: At top level:
xfer3.c:141:1: warning: return type defaults to 'int' [-Wimplicit-int]
  141 | cb_expand_snk_forest()
      | ^~~~~~~~~~~~~~~~~~~~
xfer3.c: In function 'cb_expand_snk_forest':
xfer3.c:163:33: warning: implicit declaration of function 'set_xfermon_name_label' [-Wimplicit-function-declaration]
  163 |                                 set_xfermon_name_label("File Name:");
      |                                 ^~~~~~~~~~~~~~~~~~~~~~
xfer3.c:196:42: warning: implicit declaration of function 'local_mkdir' [-Wimplicit-function-declaration]
  196 |                                 retval = local_mkdir(xc.snk_host, full_path, 0777);
      |                                          ^~~~~~~~~~~
xfer3.c:198:42: warning: implicit declaration of function 'remote_mkdir' [-Wimplicit-function-declaration]
  198 |                                 retval = remote_mkdir(xc.snk_host, full_path);
      |                                          ^~~~~~~~~~~~
xfer3.c:207:33: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  207 |                                 warning_error(msg);
      |                                 ^~~~~~~~~~~~~
xfer3.c:228:41: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  228 |                                         write_log(msg);
      |                                         ^~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c xfer4.c
xfer4.c:108:1: warning: return type defaults to 'int' [-Wimplicit-int]
  108 | cb_xfer_files()
      | ^~~~~~~~~~~~~
xfer4.c: In function 'cb_xfer_files':
xfer4.c:122:21: warning: implicit declaration of function 'xfer_abort_requested' [-Wimplicit-function-declaration]
  122 |                 if (xfer_abort_requested()) {
      |                     ^~~~~~~~~~~~~~~~~~~~
xfer4.c:123:25: warning: implicit declaration of function 'xfer_done' [-Wimplicit-function-declaration]
  123 |                         xfer_done(False, False);
      |                         ^~~~~~~~~
xfer4.c:127:25: warning: implicit declaration of function 'src_paths_of_xfer_node' [-Wimplicit-function-declaration]
  127 |                         src_paths_of_xfer_node(xc.staged_file[0].node, &rel_path, NULL);
      |                         ^~~~~~~~~~~~~~~~~~~~~~
xfer4.c:128:25: warning: implicit declaration of function 'set_xfermon_status' [-Wimplicit-function-declaration]
  128 |                         set_xfermon_status(STATUS_WAIT);
      |                         ^~~~~~~~~~~~~~~~~~
xfer4.c:129:25: warning: implicit declaration of function 'set_xfermon_name' [-Wimplicit-function-declaration]
  129 |                         set_xfermon_name(rel_path);
      |                         ^~~~~~~~~~~~~~~~
xfer4.c:130:25: warning: implicit declaration of function 'set_xfermon_progress' [-Wimplicit-function-declaration]
  130 |                         set_xfermon_progress((long)-1, (long)-1);
      |                         ^~~~~~~~~~~~~~~~~~~~
xfer4.c:135:33: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration]
  135 |                                 sleep(DELTA);
      |                                 ^~~~~
xfer4.c:139:34: warning: implicit declaration of function 'stage_unitree_file' [-Wimplicit-function-declaration]
  139 |                         retval = stage_unitree_file(xc.src_host, full_path);
      |                                  ^~~~~~~~~~~~~~~~~~
xfer4.c:149:33: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  149 |                                 warning_error(msg);
      |                                 ^~~~~~~~~~~~~
xfer4.c:230:41: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  230 |                                         fatal_error("Bug in cb_xfer_files()");
      |                                         ^~~~~~~~~~~
xfer4.c:269:25: warning: implicit declaration of function 'start_timer'; did you mean 'stop_timer'? [-Wimplicit-function-declaration]
  269 |                         start_timer();
      |                         ^~~~~~~~~~~
      |                         stop_timer
xfer4.c:275:25: warning: implicit declaration of function 'xfer_abort' [-Wimplicit-function-declaration]
  275 |                         xfer_abort();
      |                         ^~~~~~~~~~
xfer4.c:295:33: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  295 |                                 write_log(msg);
      |                                 ^~~~~~~~~
xfer4.c:317:33: warning: implicit declaration of function 'print_xfer_stats' [-Wimplicit-function-declaration]
  317 |                                 print_xfer_stats(ftime, xc.file_len);
      |                                 ^~~~~~~~~~~~~~~~
xfer4.c: At top level:
xfer4.c:379:1: warning: return type defaults to 'int' [-Wimplicit-int]
  379 | start_timer()
      | ^~~~~~~~~~~
xfer4.c:409:1: warning: return type defaults to 'int' [-Wimplicit-int]
  409 | print_xfer_stats(ftime, nbytes)
      | ^~~~~~~~~~~~~~~~
xfer4.c:456:1: warning: return type defaults to 'int' [-Wimplicit-int]
  456 | xfer_done(lost_src_host, lost_snk_host)
      | ^~~~~~~~~
xfer4.c: In function 'xfer_done':
xfer4.c:461:9: warning: implicit declaration of function 'hide_xfermon' [-Wimplicit-function-declaration]
  461 |         hide_xfermon();
      |         ^~~~~~~~~~~~
xfer4.c:465:17: warning: implicit declaration of function 'hide_abort_dialog' [-Wimplicit-function-declaration]
  465 |                 hide_abort_dialog();
      |                 ^~~~~~~~~~~~~~~~~
xfer4.c:471:17: warning: implicit declaration of function 'lost_connection'; did you mean 'XtNconnection'? [-Wimplicit-function-declaration]
  471 |                 lost_connection(xc.src_host);
      |                 ^~~~~~~~~~~~~~~
      |                 XtNconnection
xfer4.c:475:21: warning: implicit declaration of function 'update_dir_displays' [-Wimplicit-function-declaration]
  475 |                 if (update_dir_displays(xc.snk_host, False) < 0) {
      |                     ^~~~~~~~~~~~~~~~~~~
xfer4.c:485:9: warning: implicit declaration of function 'release_xfer_forest' [-Wimplicit-function-declaration]
  485 |         release_xfer_forest();
      |         ^~~~~~~~~~~~~~~~~~~
xfer4.c:488:9: warning: implicit declaration of function 'enable_controls' [-Wimplicit-function-declaration]
  488 |         enable_controls(True);
      |         ^~~~~~~~~~~~~~~
xfer4.c:489:9: warning: implicit declaration of function 'clear_selected_entries' [-Wimplicit-function-declaration]
  489 |         clear_selected_entries(xc.src_host);
      |         ^~~~~~~~~~~~~~~~~~~~~~
xfer4.c:490:9: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  490 |         update_xfer_controls();
      |         ^~~~~~~~~~~~~~~~~~~~
xfer4.c:491:9: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  491 |         update_host_controls(xc.src_host);
      |         ^~~~~~~~~~~~~~~~~~~~
xfer4.c:493:17: warning: implicit declaration of function 'beep' [-Wimplicit-function-declaration]
  493 |                 beep();
      |                 ^~~~
xfer4.c:494:9: warning: implicit declaration of function 'restore_prev_cursor' [-Wimplicit-function-declaration]
  494 |         restore_prev_cursor();
      |         ^~~~~~~~~~~~~~~~~~~
xfer4.c: At top level:
xfer4.c:507:1: warning: return type defaults to 'int' [-Wimplicit-int]
  507 | xfer_abort()
      | ^~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c xfermon.c
xfermon.c:92:1: warning: return type defaults to 'int' [-Wimplicit-int]
   92 | show_xfermon()
      | ^~~~~~~~~~~~
xfermon.c: In function 'show_xfermon':
xfermon.c:98:9: warning: implicit declaration of function 'set_xfermon_status' [-Wimplicit-function-declaration]
   98 |         set_xfermon_status("");
      |         ^~~~~~~~~~~~~~~~~~
xfermon.c:99:9: warning: implicit declaration of function 'set_xfermon_name' [-Wimplicit-function-declaration]
   99 |         set_xfermon_name("");
      |         ^~~~~~~~~~~~~~~~
xfermon.c:100:9: warning: implicit declaration of function 'set_xfermon_progress' [-Wimplicit-function-declaration]
  100 |         set_xfermon_progress((long)-1, (long)-1);
      |         ^~~~~~~~~~~~~~~~~~~~
xfermon.c:104:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  104 |         add_dialog_to_list(xfermon.w_dialog);
      |         ^~~~~~~~~~~~~~~~~~
xfermon.c:106:9: warning: implicit declaration of function 'force_update' [-Wimplicit-function-declaration]
  106 |         force_update(xfermon.w_dialog);
      |         ^~~~~~~~~~~~
xfermon.c: In function 'create_xfermon_dialog':
xfermon.c:141:9: warning: implicit declaration of function 'add_wm_delete_window_cb' [-Wimplicit-function-declaration]
  141 |         add_wm_delete_window_cb(xfermon.w_dialog, cb_xfermon_close, NULL);
      |         ^~~~~~~~~~~~~~~~~~~~~~~
xfermon.c: At top level:
xfermon.c:297:1: warning: return type defaults to 'int' [-Wimplicit-int]
  297 | hide_xfermon()
      | ^~~~~~~~~~~~
xfermon.c: In function 'cb_xfermon_abort':
xfermon.c:314:17: warning: implicit declaration of function 'show_abort_dialog' [-Wimplicit-function-declaration]
  314 |                 show_abort_dialog();
      |                 ^~~~~~~~~~~~~~~~~
xfermon.c: In function 'cb_xfermon_close':
xfermon.c:329:9: warning: implicit declaration of function 'warning_error' [-Wimplicit-function-declaration]
  329 |         warning_error("Can't close monitor while transfer is in progress.");
      |         ^~~~~~~~~~~~~
xfermon.c: At top level:
xfermon.c:337:1: warning: return type defaults to 'int' [-Wimplicit-int]
  337 | xfer_abort_requested()
      | ^~~~~~~~~~~~~~~~~~~~
xfermon.c:349:1: warning: return type defaults to 'int' [-Wimplicit-int]
  349 | set_textfield(widget, string)
      | ^~~~~~~~~~~~~
xfermon.c:366:1: warning: return type defaults to 'int' [-Wimplicit-int]
  366 | set_xfermon_status(status)
      | ^~~~~~~~~~~~~~~~~~
xfermon.c:377:1: warning: return type defaults to 'int' [-Wimplicit-int]
  377 | set_xfermon_name(name)
      | ^~~~~~~~~~~~~~~~
xfermon.c:389:1: warning: return type defaults to 'int' [-Wimplicit-int]
  389 | set_xfermon_name_label(label)
      | ^~~~~~~~~~~~~~~~~~~~~~
xfermon.c:410:1: warning: return type defaults to 'int' [-Wimplicit-int]
  410 | set_xfermon_progress(file_len, file_index)
      | ^~~~~~~~~~~~~~~~~~~~
xfermon.c: In function 'set_xfermon_progress':
xfermon.c:424:17: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
  424 |                 sprintf(buf, "%ld", file_len);
      |                 ^~~~~~~
xfermon.c:61:1: note: include '<stdio.h>' or provide a declaration of 'sprintf'
   60 | #include "xftp.h"
  +++ |+#include <stdio.h>
   61 | 
xfermon.c:424:17: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch]
  424 |                 sprintf(buf, "%ld", file_len);
      |                 ^~~~~~~
xfermon.c:424:17: note: include '<stdio.h>' or provide a declaration of 'sprintf'
xfermon.c:432:17: warning: incompatible implicit declaration of built-in function 'sprintf' [-Wbuiltin-declaration-mismatch]
  432 |                 sprintf(buf, "%ld", file_index);
      |                 ^~~~~~~
xfermon.c:432:17: note: include '<stdio.h>' or provide a declaration of 'sprintf'
xfermon.c: At top level:
xfermon.c:472:1: warning: return type defaults to 'int' [-Wimplicit-int]
  472 | enable_xfermon_abort(enable)
      | ^~~~~~~~~~~~~~~~~~~~
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM     -I/opt/pkg/include    -Dsun -DSVR4 -D__EXTENSIONS__ -D__amd64       -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c xftp.c
xftp.c:102:11: warning: initialization of 'int (*)()' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
  102 |         { create_rconnect_dialog,               False },
      |           ^~~~~~~~~~~~~~~~~~~~~~
xftp.c:102:11: note: (near initialization for 'dialog_creation[0].function')
xftp.c:103:11: warning: initialization of 'int (*)()' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
  103 |         { create_aconnect_dialog,               False },
      |           ^~~~~~~~~~~~~~~~~~~~~~
xftp.c:103:11: note: (near initialization for 'dialog_creation[1].function')
xftp.c:104:11: warning: initialization of 'int (*)()' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
  104 |         { create_verify_dialog,                 False },
      |           ^~~~~~~~~~~~~~~~~~~~
xftp.c:104:11: note: (near initialization for 'dialog_creation[2].function')
xftp.c:105:11: warning: initialization of 'int (*)()' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
  105 |         { create_prefs_dialog,                  False },
      |           ^~~~~~~~~~~~~~~~~~~
xftp.c:105:11: note: (near initialization for 'dialog_creation[3].function')
xftp.c:106:11: warning: initialization of 'int (*)()' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
  106 |         { create_xfermon_dialog,                False },
      |           ^~~~~~~~~~~~~~~~~~~~~
xftp.c:106:11: note: (near initialization for 'dialog_creation[4].function')
xftp.c:107:11: warning: initialization of 'int (*)()' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
  107 |         { create_mp_monitor_dialog,             False },
      |           ^~~~~~~~~~~~~~~~~~~~~~~~
xftp.c:107:11: note: (near initialization for 'dialog_creation[5].function')
xftp.c:108:11: warning: initialization of 'int (*)()' from incompatible pointer type 'void (*)(void)' [-Wincompatible-pointer-types]
  108 |         { create_changedir_dialog,              False },
      |           ^~~~~~~~~~~~~~~~~~~~~~~
xftp.c:108:11: note: (near initialization for 'dialog_creation[6].function')
xftp.c:109:11: warning: initialization of 'int (*)()' from incompatible pointer type 'void (*)(int)' [-Wincompatible-pointer-types]
  109 |         { create_dirtable_dialog,               True  },
      |           ^~~~~~~~~~~~~~~~~~~~~~
xftp.c:109:11: note: (near initialization for 'dialog_creation[7].function')
xftp.c:110:11: warning: initialization of 'int (*)()' from incompatible pointer type 'void (*)(int)' [-Wincompatible-pointer-types]
  110 |         { create_dirlong_dialog,                True  },
      |           ^~~~~~~~~~~~~~~~~~~~~
xftp.c:110:11: note: (near initialization for 'dialog_creation[8].function')
xftp.c:125:1: warning: return type defaults to 'int' [-Wimplicit-int]
  125 | main(argc, argv)
      | ^~~~
xftp.c: In function 'main':
xftp.c:140:17: warning: implicit declaration of function 'fatal_error' [-Wimplicit-function-declaration]
  140 |                 fatal_error("Environment variable HOME not set");
      |                 ^~~~~~~~~~~
xftp.c:143:9: warning: implicit declaration of function 'initialize_prefs' [-Wimplicit-function-declaration]
  143 |         initialize_prefs();
      |         ^~~~~~~~~~~~~~~~
xftp.c:144:9: warning: implicit declaration of function 'construct_prefs_filename' [-Wimplicit-function-declaration]
  144 |         construct_prefs_filename();
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
xftp.c:145:9: warning: implicit declaration of function 'read_prefs_from_file'; did you mean 'read_viewprefs_from_file'? [-Wimplicit-function-declaration]
  145 |         read_prefs_from_file();
      |         ^~~~~~~~~~~~~~~~~~~~
      |         read_viewprefs_from_file
xftp.c:148:9: warning: implicit declaration of function 'construct_viewprefs_filename' [-Wimplicit-function-declaration]
  148 |         construct_viewprefs_filename();
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
xftp.c:152:9: warning: implicit declaration of function 'construct_cache_filename' [-Wimplicit-function-declaration]
  152 |         construct_cache_filename();
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
xftp.c:192:5: warning: implicit declaration of function 'add_wm_delete_window_cb' [-Wimplicit-function-declaration]
  192 |     add_wm_delete_window_cb(w_toplev, cb_quit, NULL);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
xftp.c:195:5: warning: implicit declaration of function 'display_startup_dialog' [-Wimplicit-function-declaration]
  195 |     display_startup_dialog();
      |     ^~~~~~~~~~~~~~~~~~~~~~
xftp.c:198:9: warning: implicit declaration of function 'create_main_window' [-Wimplicit-function-declaration]
  198 |         create_main_window();
      |         ^~~~~~~~~~~~~~~~~~
xftp.c:201:9: warning: implicit declaration of function 'close_startup_dialog' [-Wimplicit-function-declaration]
  201 |         close_startup_dialog();
      |         ^~~~~~~~~~~~~~~~~~~~
xftp.c:205:9: warning: implicit declaration of function 'add_dialog_to_list' [-Wimplicit-function-declaration]
  205 |         add_dialog_to_list(w_toplev);
      |         ^~~~~~~~~~~~~~~~~~
xftp.c:212:21: warning: implicit declaration of function 'update_dir_displays' [-Wimplicit-function-declaration]
  212 |                 if (update_dir_displays(i, False) < 0)
      |                     ^~~~~~~~~~~~~~~~~~~
xftp.c:214:17: warning: implicit declaration of function 'update_hostname' [-Wimplicit-function-declaration]
  214 |                 update_hostname(i);
      |                 ^~~~~~~~~~~~~~~
xftp.c:215:17: warning: implicit declaration of function 'update_host_controls' [-Wimplicit-function-declaration]
  215 |                 update_host_controls(i);
      |                 ^~~~~~~~~~~~~~~~~~~~
xftp.c:217:9: warning: implicit declaration of function 'update_xfer_controls' [-Wimplicit-function-declaration]
  217 |         update_xfer_controls();
      |         ^~~~~~~~~~~~~~~~~~~~
xftp.c:222:25: warning: implicit declaration of function 'connect_to_local' [-Wimplicit-function-declaration]
  222 |                         connect_to_local(i);
      |                         ^~~~~~~~~~~~~~~~
xftp.c:233:9: warning: implicit declaration of function 'write_copyright'; did you mean 'XK_copyright'? [-Wimplicit-function-declaration]
  233 |         write_copyright();
      |         ^~~~~~~~~~~~~~~
      |         XK_copyright
xftp.c: At top level:
xftp.c:249:1: warning: return type defaults to 'int' [-Wimplicit-int]
  249 | fatal_error(msg)
      | ^~~~~~~~~~~
xftp.c:261:1: warning: return type defaults to 'int' [-Wimplicit-int]
  261 | warning_error(msg)
      | ^~~~~~~~~~~~~
xftp.c: In function 'warning_error':
xftp.c:268:5: warning: implicit declaration of function 'write_log' [-Wimplicit-function-declaration]
  268 |     write_log(buf);
      |     ^~~~~~~~~
xftp.c:270:9: warning: implicit declaration of function 'raise_errorflag' [-Wimplicit-function-declaration]
  270 |         raise_errorflag();
      |         ^~~~~~~~~~~~~~~
xftp.c:271:9: warning: implicit declaration of function 'beep' [-Wimplicit-function-declaration]
  271 |         beep();
      |         ^~~~
xftp.c: At top level:
xftp.c:279:1: warning: return type defaults to 'int' [-Wimplicit-int]
  279 | cb_create_dialogs()
      | ^~~~~~~~~~~~~~~~~
xftp.c: In function 'reapchild':
xftp.c:305:19: warning: implicit declaration of function 'iwait'; did you mean 'wait'? [-Wimplicit-function-declaration]
  305 |         int pid = iwait(NULL);
      |                   ^~~~~
      |                   wait
xftp.c: At top level:
xftp.c:321:1: warning: return type defaults to 'int' [-Wimplicit-int]
  321 | system_with_preserve_sigcld(string)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
xftp.c:338:1: warning: return type defaults to 'int' [-Wimplicit-int]
  338 | save_sigcld_handler()
      | ^~~~~~~~~~~~~~~~~~~
xftp.c:348:1: warning: return type defaults to 'int' [-Wimplicit-int]
  348 | restore_sigcld_handler()
      | ^~~~~~~~~~~~~~~~~~~~~~
rm -f xftp._man
if test -z "" ; then  cd `dirname xftp` &&  ln -s `basename xftp.man` `basename xftp._man`;  else  cpp -undef   -D__apploaddir__=/opt/pkg/lib/X11/app-defaults -D__appmansuffix__=1 -D__filemansuffix__=5 -D__libmansuffix__=3 -D__miscmansuffix__=7 -D__drivermansuffix__=4 -D__adminmansuffix__=8 -D__projectroot__=/opt/pkg -D__xconfigfile__=xorg.conf -D__xconfigdir__=/opt/pkg/lib/X11 -D__xlogfile__=Xorg -D__xservername__=Xorg -D__xorgversion__="\"`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'`\" \"X Version 11\"" -D__vendorversion__="`echo 7 7 0 | sed -e 's/ /./g' -e 's/^/Version\\\ /'` X.Org"   < xftp.man | sed -e '/^#  *[0-9][0-9]*  *.*$/d' 			-e '/^#line  *[0-9][0-9]*  *.*$/d' 			-e '/^[ 	]*XCOMM$/s/XCOMM/#/' 			-e '/^[ 	]*XCOMM[^a-zA-Z0-9_]/s/XCOMM/#/' 			-e '/^[ 	]*XHASH/s/XHASH/#/' 			-e '/\@\@$/s/\@\@$/\\/' >xftp._man;  fi
rm -f xftp
LD_RUN_PATH=/opt/pkg/lib gcc -o xftp -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/opt/pkg/include -DNO_ASM  -B direct -Wl,-M,/usr/lib/ld/map.bssalign -Wl,-M,/usr/lib/ld/map.noexstk  -L/opt/pkg/lib -Wl,-R/opt/pkg/lib   -liconv -lintl -L/opt/pkg/lib   abort.o			aconnect.o		account.o		arconnect.o				cache.o			changedir.o		cmds.o			color.o					ctrlconn.o		cursor.o		dataconn.o		delete.o				destdir.o		dirlist.o		dirlong.o 		dirname.o				dirpath.o		dirtable.o		fallbacks.o		flag.o					force.o			get.o			goto.o			help.o					host.o			lconnect.o		lcopy.o			list.o					local.o			log.o			ls.o			mainhelp.o				match.o			misc.o			mkdir.o			move.o					mpmonitor.o		password.o		path.o			pixmaps.o				prefs.o			prefshelp.o		pulldown.o		put.o					qidialogs.o		qsort.o			quote.o			rconnect.o				rcopy.o			remote.o		rename.o		select.o				server.o		startup.o		system.o		toplev.o				verify.o		view1.o			view2.o			viewprefs.o				xfer1.o			xfer2.o			xfer3.o			xfer4.o					xfermon.o		xftp.o -Wl,-R/opt/pkg/lib -lXm -lXt -lSM -lICE -lXext -lX11     -lsocket -lnsl  -R/opt/pkg/lib -z lazyload -z combreloc -Wl,-M,/usr/lib/ld/map.pagealign -Wl,-M,/usr/lib/ld/map.noexdata
Undefined			first referenced
 symbol  			    in file
sys_nerr                            log.o
sys_errlist                         log.o
ld: fatal: symbol referencing errors. No output written to xftp
collect2: error: ld returned 1 exit status
*** [xftp] Error code 1

bmake: stopped in /home/pbulk/build/net/llnlxftp/work/llnlxftp2.1/sources
1 error

bmake: stopped in /home/pbulk/build/net/llnlxftp/work/llnlxftp2.1/sources
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/llnlxftp
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/net/llnlxftp