=> Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for llnlxdir-2.1.2nb4 clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c account.c account.c:102:5: warning: call to undeclared function 'add_wm_delete_window_cb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] add_wm_delete_window_cb(w_accountDialog, cb_account_cancel, NULL, False); ^ account.c:78:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_account_dialog(dirwin) ^ account.c:111:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_account_ok(widget, client_data, call_data) ^ account.c:69:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_account_ok(); ^ account.c:125:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_account_cancel(widget, client_data, call_data) ^ account.c:70:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_account_cancel(); ^ account.c:158:5: warning: call to undeclared function 'use_normal_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] use_normal_cursor(); ^ account.c:159:5: warning: call to undeclared function 'traverse_to_widget'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] traverse_to_widget(w_account); ^ account.c:162:5: warning: call to undeclared function 'restore_prev_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_prev_cursor(); ^ account.c:143:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_account(dirwin) ^ 10 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c aconnect.c In file included from aconnect.c:61: ./str.h:61:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strtok(); ^ ./str.h:62:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strchr(); ^ ./str.h:63:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strrchr(); ^ ./str.h:64:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strstr(); ^ aconnect.c:160:7: warning: call to undeclared function 'start_op'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!start_op(False)) ^ aconnect.c:164:2: warning: call to undeclared function 'raise_okflag'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] raise_okflag(); ^ aconnect.c:166:24: warning: passing arguments to 'create_aconnect_dialog' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_aconnect_dialog(dirwin); ^ aconnect.c:171:2: warning: call to undeclared function 'traverse_to_widget'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] traverse_to_widget(aconnect.w_hostName); ^ aconnect.c:152:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_connect_to_anonymous(widget, client_data, call_data) ^ aconnect.c:212:2: warning: call to undeclared function 'add_wm_delete_window_cb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] add_wm_delete_window_cb(aconnect.w_dialog, cb_aconnect_cancel, NULL, False); ^ aconnect.c:179:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_aconnect_dialog(dirwin) ^ aconnect.c:140:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void create_aconnect_dialog(); ^ aconnect.c:363:5: warning: call to undeclared function 'retrieve_hostuser_history'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retrieve_hostuser_history(&list, sort_caches); ^ aconnect.c:366:5: warning: call to undeclared function 'reset_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] reset_list(aconnect.w_hostList); ^ aconnect.c:368:7: warning: call to undeclared function 'parse_hostuser'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (parse_hostuser(list->entries[i], &host_part, &user_part) == 0) { ^ aconnect.c:379:5: warning: call to undeclared function 'release_array_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] release_array_list(list); ^ aconnect.c:437:24: warning: passing arguments to 'cstring_to_text' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] text = cstring_to_text(selected_items[0]); ^ aconnect.c:438:6: warning: call to undeclared function 'parse_hostuser'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (parse_hostuser(text, &host_part, &user_part) < 0) ^ aconnect.c:439:3: warning: call to undeclared function 'fatal_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] fatal_error("Trouble in cb_aconnect_single_selection()"); ^ aconnect.c:408:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_aconnect_single_selection(widget, client_data, call_data) ^ aconnect.c:134:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_aconnect_single_selection(); ^ aconnect.c:458:5: warning: call to undeclared function 'help_dialog'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] help_dialog(widget, True, "Connect to Anonymous", aconnect_help); ^ aconnect.c:453:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_aconnect_help(widget, client_data, call_data) ^ aconnect.c:137:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_aconnect_help(); ^ aconnect.c:479:3: warning: call to undeclared function 'fatal_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] fatal_error("Programming bug in cb_aconnect_def_action()"); ^ aconnect.c:483:22: warning: passing arguments to 'cb_aconnect_connect' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_aconnect_connect(widget, client_data, call_data); ^ aconnect.c:470:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_aconnect_def_action(widget, client_data, call_data) ^ aconnect.c:138:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_aconnect_def_action(); ^ aconnect.c:526:9: warning: call to undeclared function 'warn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] warn("Unable to log onto FTP server. No user name.", ^ aconnect.c:530:3: warning: call to undeclared function 'traverse_to_widget'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] traverse_to_widget(aconnect.w_userName); ^ aconnect.c:535:13: warning: call to undeclared function 'parse_hostname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] switch (parse_hostname(hostname, &host_part, &port_part)) { ^ aconnect.c:540:9: warning: call to undeclared function 'warn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] warn("Unable to log onto FTP server. No host name.", ^ aconnect.c:544:3: warning: call to undeclared function 'traverse_to_widget'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] traverse_to_widget(aconnect.w_hostName); ^ aconnect.c:565:2: warning: call to undeclared function 'add_to_history'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] add_to_history(USER, hostname, username); ^ aconnect.c:573:4: warning: call to undeclared library function 'sprintf' with type 'int (char *, const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] sprintf(msg, "%s is already connected to %s.", username, hostname); ^ aconnect.c:573:4: note: include the header <stdio.h> or explicitly provide a declaration for 'sprintf' aconnect.c:574:4: warning: call to undeclared function 'info_dialog'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] info_dialog(msg, dirwin->w_shell); ^ aconnect.c:580:4: warning: call to undeclared function 'end_op'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] end_op(); ^ aconnect.c:587:14: warning: call to undeclared function 'get_host'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((host = get_host()) == -1) { ^ aconnect.c:591:3: warning: call to undeclared function 'warn'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] warn("Maximum number of hosts exceeded.", dirwin->w_shell); ^ aconnect.c:592:3: warning: call to undeclared function 'end_op'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] end_op(); ^ aconnect.c:597:2: warning: call to undeclared function 'show_stop_button'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] show_stop_button(dirwin); ^ aconnect.c:605:42: warning: passing arguments to 'encrypt_password' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hinfo[host].password = encrypt_password(password); ^ aconnect.c:613:14: warning: call to undeclared function 'do_connect'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retval = do_connect(host, dirwin); ^ aconnect.c:618:3: warning: call to undeclared function 'record_abort'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_abort("Anonymously Connect to Remote Host"); ^ aconnect.c:620:3: warning: call to undeclared function 'release_host'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] release_host(host); ^ aconnect.c:621:3: warning: call to undeclared function 'hide_stop_button'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] hide_stop_button(); ^ aconnect.c:622:3: warning: call to undeclared function 'end_op'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] end_op(); ^ aconnect.c:629:16: warning: call to undeclared function 'starting_dir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((retval = starting_dir(host, &wd)) == -6) { ^ aconnect.c:630:3: warning: call to undeclared function 'record_abort'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_abort("Anonymously Connect to Remote Host"); ^ aconnect.c:631:3: warning: call to undeclared function 'release_host'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] release_host(host); ^ aconnect.c:632:3: warning: call to undeclared function 'hide_stop_button'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] hide_stop_button(); ^ aconnect.c:633:3: warning: call to undeclared function 'end_op'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] end_op(); ^ aconnect.c:637:11: warning: call to undeclared function 'display_dir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retval = display_dir(host, dirwin, wd, False, False, dirwin->cache_mode, ^ aconnect.c:642:3: warning: call to undeclared function 'record_abort'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_abort("Anonymously Connect to Remote Host"); ^ aconnect.c:643:3: warning: call to undeclared function 'release_host'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] release_host(host); ^ aconnect.c:645:3: warning: call to undeclared function 'hide_stop_button'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] hide_stop_button(); ^ aconnect.c:646:3: warning: call to undeclared function 'end_op'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] end_op(); ^ aconnect.c:650:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(hinfo[host].ctrl_fd); ^ aconnect.c:657:2: warning: call to undeclared function 'record_and_alert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_and_alert(msg, dirwin->w_shell); ^ aconnect.c:659:2: warning: call to undeclared function 'release_host'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] release_host(host); ^ aconnect.c:660:2: warning: call to undeclared function 'hide_stop_button'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] hide_stop_button(); ^ aconnect.c:661:2: warning: call to undeclared function 'end_op'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] end_op(); ^ aconnect.c:493:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_aconnect_connect(widget, client_data, call_data) ^ aconnect.c:135:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_aconnect_connect(); ^ aconnect.c:680:2: warning: call to undeclared function 'end_op'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] end_op(); ^ aconnect.c:670:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_aconnect_cancel(widget, client_data, call_data) ^ aconnect.c:136:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_aconnect_cancel(); ^ 67 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c arconnect.c In file included from arconnect.c:61: ./str.h:61:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strtok(); ^ ./str.h:62:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strchr(); ^ ./str.h:63:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strrchr(); ^ ./str.h:64:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strstr(); ^ arconnect.c:85:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] do_connect(host, dirwin) ^ int arconnect.c:107:2: warning: call to undeclared function 'use_busy_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] use_busy_cursor(); ^ arconnect.c:122:4: warning: call to undeclared function 'cvt_to_lower'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] cvt_to_lower(temp); ^ arconnect.c:145:12: warning: call to undeclared function 'ftp_open'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retval = ftp_open(host, hinfo[host].proxy_host, hinfo[host].proxy_port); ^ arconnect.c:149:7: warning: call to undeclared function 'parse_hostname'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (parse_hostname(hinfo[host].hostname, &host_part, &port_part)) ^ arconnect.c:150:4: warning: call to undeclared function 'fatal_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] fatal_error("Bug in do_connect()"); ^ arconnect.c:151:12: warning: call to undeclared function 'ftp_open'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retval = ftp_open(host, host_part, port_part); ^ arconnect.c:155:3: warning: call to undeclared function 'restore_prev_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_prev_cursor(); ^ arconnect.c:158:3: warning: call to undeclared function 'restore_prev_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_prev_cursor(); ^ arconnect.c:166:3: warning: call to undeclared library function 'sprintf' with type 'int (char *, const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] sprintf(uname, "%s@%s", hinfo[host].username, hinfo[host].hostname); ^ arconnect.c:166:3: note: include the header <stdio.h> or explicitly provide a declaration for 'sprintf' arconnect.c:169:11: warning: call to undeclared function 'ftp_user'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retval = ftp_user(host, uname); ^ arconnect.c:189:3: warning: call to undeclared function 'restore_prev_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_prev_cursor(); ^ arconnect.c:190:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(hinfo[host].ctrl_fd); ^ arconnect.c:218:30: warning: passing arguments to 'decrypt_password' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] passwrd = decrypt_password(hinfo[host].password); ^ arconnect.c:220:4: warning: call to undeclared function 'hide_stop_button'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] hide_stop_button(); ^ arconnect.c:221:26: warning: passing arguments to 'get_password' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] passwrd = get_password(dirwin); ^ arconnect.c:222:4: warning: call to undeclared function 'show_stop_button'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] show_stop_button(dirwin); ^ arconnect.c:224:5: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(hinfo[host].ctrl_fd); ^ arconnect.c:225:5: warning: call to undeclared function 'restore_prev_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_prev_cursor(); ^ arconnect.c:229:11: warning: call to undeclared function 'ftp_password'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] switch (ftp_password(host, passwrd)) { ^ arconnect.c:235:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(hinfo[host].ctrl_fd); ^ arconnect.c:236:4: warning: call to undeclared function 'restore_prev_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_prev_cursor(); ^ arconnect.c:255:3: warning: call to undeclared function 'hide_stop_button'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] hide_stop_button(); ^ arconnect.c:256:21: warning: passing arguments to 'get_account' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] acct = get_account(dirwin); ^ arconnect.c:257:3: warning: call to undeclared function 'show_stop_button'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] show_stop_button(dirwin); ^ arconnect.c:259:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(hinfo[host].ctrl_fd); ^ arconnect.c:260:4: warning: call to undeclared function 'restore_prev_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_prev_cursor(); ^ arconnect.c:268:16: warning: call to undeclared function 'ftp_account'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((retval = ftp_account(host, acct)) < 0) { ^ arconnect.c:270:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(hinfo[host].ctrl_fd); ^ arconnect.c:271:3: warning: call to undeclared function 'restore_prev_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_prev_cursor(); ^ arconnect.c:283:6: warning: call to undeclared function 'ftp_system'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (ftp_system(host, False) == -6) { ^ arconnect.c:284:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(hinfo[host].ctrl_fd); ^ arconnect.c:285:3: warning: call to undeclared function 'restore_prev_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_prev_cursor(); ^ arconnect.c:290:3: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log("*** System is "); ^ arconnect.c:291:24: warning: passing arguments to 'system_name' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_log(system_name(hinfo[host].system)); ^ arconnect.c:294:24: warning: passing arguments to 'server_name' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_log(server_name(hinfo[host].server)); ^ arconnect.c:300:14: warning: call to undeclared function 'set_hpss_wait'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] (retval = set_hpss_wait(host)) < 0) { ^ arconnect.c:301:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(hinfo[host].ctrl_fd); ^ arconnect.c:302:3: warning: call to undeclared function 'restore_prev_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_prev_cursor(); ^ arconnect.c:307:4: warning: call to undeclared function 'record_warning'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_warning("Unable to set HPSS wait mode."); ^ arconnect.c:313:16: warning: call to undeclared function 'remote_pwd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((retval = remote_pwd(host, &homedir)) < 0) { ^ arconnect.c:314:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(hinfo[host].ctrl_fd); ^ arconnect.c:315:3: warning: call to undeclared function 'restore_prev_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_prev_cursor(); ^ arconnect.c:320:4: warning: call to undeclared function 'record_warning'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_warning("Unable to get home directory."); ^ arconnect.c:330:42: warning: passing arguments to 'encrypt_password' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] hinfo[host].password = encrypt_password(passwrd); ^ arconnect.c:337:2: warning: call to undeclared function 'restore_prev_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_prev_cursor(); ^ arconnect.c:85:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] do_connect(host, dirwin) ^ arconnect.c:355:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] parse_hostname(hostname, host_part, port_part) ^ int arconnect.c:355:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] arconnect.c:409:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] parse_hostuser(hostuser, host_part, user_part) ^ int arconnect.c:409:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] 55 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c buttons.c buttons.c:140:21: warning: call to undeclared function 'button_index'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] int tabular_indx = button_index("tabularButton"); ^ buttons.c:147:14: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_tabularButton, ^ buttons.c:150:14: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_tabularButton, ^ buttons.c:153:14: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_iconicButton, ^ buttons.c:156:14: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_iconicButton, ^ buttons.c:159:14: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_treeButton, ^ buttons.c:162:14: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_treeButton, ^ buttons.c:165:14: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_fullInfoButton, ^ buttons.c:168:14: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_fullInfoButton, ^ buttons.c:176:15: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_tabularButton, ^ buttons.c:179:15: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_tabularButton, ^ buttons.c:184:15: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_iconicButton, ^ buttons.c:187:15: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_iconicButton, ^ buttons.c:192:15: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_treeButton, ^ buttons.c:195:15: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_treeButton, ^ buttons.c:200:15: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_fullInfoButton, ^ buttons.c:203:15: warning: passing arguments to 'draw_button' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(dirwin->w_fullInfoButton, ^ buttons.c:137:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] update_layout_mode_buttons(dirwin) ^ buttons.c:215:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] draw_button(widget, pixmap) ^ buttons.c:79:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void draw_button(); ^ buttons.c:263:3: warning: call to undeclared function 'fatal_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] fatal_error("Programming bug in create_button()"); ^ buttons.c:280:3: warning: call to undeclared function 'create_button_pixmaps'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] create_button_pixmaps( ^ buttons.c:301:16: warning: cast to 'XtPointer' (aka 'void *') from smaller integer type 'int' [-Wint-to-void-pointer-cast] XmNuserData, (XtPointer)indx, ^~~~~~~~~~~~~~~ buttons.c:248:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] create_button(name, dirwin, w_parent) ^ buttons.c:313:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_layout_button_expose(widget, client_data, call_data) ^ buttons.c:73:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_layout_button_expose(); ^ buttons.c:342:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] button_index(name) ^ int buttons.c:353:3: warning: call to undeclared function 'fatal_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] fatal_error("Programming bug in button_index()"); ^ buttons.c:342:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] button_index(name) ^ buttons.c:363:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_button_arm(widget, client_data, call_data) ^ buttons.c:78:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_button_arm(); ^ buttons.c:381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_normal_button_expose(widget, client_data, call_data) ^ buttons.c:74:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_normal_button_expose(); ^ buttons.c:402:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_tunneling_button_expose(widget, client_data, call_data) ^ buttons.c:75:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_tunneling_button_expose(); ^ buttons.c:431:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_cache_button_expose(widget, client_data, call_data) ^ buttons.c:77:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_cache_button_expose(); ^ buttons.c:460:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_dotfiles_button_expose(widget, client_data, call_data) ^ buttons.c:76:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_dotfiles_button_expose(); ^ 39 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c cache.c cache.c:115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] insert_at_cache_head(ptr) ^ cache.c:134:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] make_room_in_cache(len) ^ int cache.c:146:19: warning: passing arguments to 'free_cache_entry' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free_cache_entry(tail); ^ cache.c:151:3: warning: call to undeclared function 'fatal_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] fatal_error("Bug in make_room_in_cache()"); ^ cache.c:134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] make_room_in_cache(len) ^ cache.c:171:23: warning: passing arguments to 'report_cache_deletion' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] report_cache_deletion(ptr); ^ cache.c:163:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] free_cache_entry(ptr) ^ cache.c:102:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void free_cache_entry(); ^ cache.c:206:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_dirlist_in_cache(host, path, layout, dotfiles) ^ cache.c:248:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_path_in_cache(host, path, type) ^ cache.c:284:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] find_truepath_in_cache(host, path) ^ cache.c:318:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_dirlist_to_cache(host, path, layout, dotfiles, dlist) ^ cache.c:399:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_truepath_to_cache(host, path, true_path) ^ cache.c:459:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] fetch_dirlist_from_cache(host, path, layout, dotfiles, dlist) ^ int cache.c:459:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cache.c:513:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] fetch_truepath_from_cache(host, path, true_path) ^ int cache.c:513:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cache.c:553:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] report_cache_use(dirwin, used_cache) ^ cache.c:573:3: warning: call to undeclared library function 'sprintf' with type 'int (char *, const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] sprintf(msg, "*** Entry added to cache. Cache len = %ld\n", cache_len); ^ cache.c:573:3: note: include the header <stdio.h> or explicitly provide a declaration for 'sprintf' cache.c:574:3: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log(msg); ^ cache.c:593:4: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log(msg); ^ cache.c:614:4: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log(msg); ^ cache.c:583:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] report_cache_deletion(ptr) ^ cache.c:104:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void report_cache_deletion(); ^ cache.c:630:3: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log("*** True path cache hit\n"); ^ cache.c:641:3: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log("*** Directory list cache hit\n"); ^ cache.c:664:3: warning: call to undeclared function 'fatal_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] fatal_error("Bug in check_max_cache_len()"); ^ cache.c:674:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] remove_dirlist_from_cache(host, path, layout, dotfiles) ^ cache.c:700:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] flush_cache_directory(host, path) ^ 29 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c cmds.c In file included from cmds.c:68: ./str.h:61:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strtok(); ^ ./str.h:62:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strchr(); ^ ./str.h:63:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strrchr(); ^ ./str.h:64:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strstr(); ^ cmds.c:87:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ftp_open(host, hostname, port) ^ int cmds.c:103:9: warning: call to undeclared function 'inet_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] temp = inet_addr(hostname); ^ cmds.c:118:3: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log(msg); ^ cmds.c:123:3: warning: call to undeclared function 'report_perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_perror("Opening socket stream"); ^ cmds.c:130:3: warning: call to undeclared function 'report_perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_perror("Making socket stream nonblocking"); ^ cmds.c:131:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(ctrl_fd); ^ cmds.c:138:3: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log("*** Will try to connect to remote\n"); ^ cmds.c:139:6: warning: call to undeclared function 'iconnect'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (iconnect(ctrl_fd, (struct sockaddr *)&remote,(int)sizeof(remote)) < 0) { ^ cmds.c:141:4: warning: call to undeclared function 'report_perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_perror("Connecting socket stream"); ^ cmds.c:142:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(ctrl_fd); ^ cmds.c:145:11: warning: call to undeclared function 'select_on_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] switch (select_on_write(ctrl_fd, maxt)) { ^ cmds.c:147:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(ctrl_fd); ^ cmds.c:162:10: warning: call to undeclared function 'get_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] scode = get_ftp_reply(host, reply, MAXFTPREPLY, &code, maxt); ^ cmds.c:165:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(hinfo[host].ctrl_fd); ^ cmds.c:168:3: warning: call to undeclared function 'determine_server_from_open'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] determine_server_from_open(host, reply); ^ cmds.c:171:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:175:4: warning: call to undeclared function 'report_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_ftp_reply(host, reply); ^ cmds.c:87:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftp_open(host, hostname, port) ^ cmds.c:188:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ftp_user(host, username) ^ int cmds.c:199:16: warning: call to undeclared function 'send_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((retval = send_ftp_cmd(host, cmd)) == -2) { ^ cmds.c:200:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:206:11: warning: call to undeclared function 'get_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retval = get_ftp_reply(host, reply, MAXFTPREPLY, &code, maxt); ^ cmds.c:217:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:220:3: warning: call to undeclared function 'abort_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] abort_ftp_cmd(host); ^ cmds.c:224:4: warning: call to undeclared function 'report_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_ftp_reply(host, reply); ^ cmds.c:188:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftp_user(host, username) ^ cmds.c:236:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ftp_password(host, password) ^ int cmds.c:248:11: warning: call to undeclared function 'send_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retval = send_ftp_cmd(host, cmd); ^ cmds.c:251:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:257:10: warning: call to undeclared function 'get_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] scode = get_ftp_reply(host, reply, MAXFTPREPLY, &code, maxt); ^ cmds.c:266:3: warning: call to undeclared function 'abort_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] abort_ftp_cmd(host); ^ cmds.c:269:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:272:4: warning: call to undeclared function 'report_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_ftp_reply(host, reply); ^ cmds.c:236:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftp_password(host, password) ^ cmds.c:283:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ftp_account(host, account) ^ int cmds.c:295:16: warning: call to undeclared function 'send_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((retval = send_ftp_cmd(host, cmd)) == -2) { ^ cmds.c:296:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:302:10: warning: call to undeclared function 'get_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] scode = get_ftp_reply(host, reply, MAXFTPREPLY, &code, maxt); ^ cmds.c:309:3: warning: call to undeclared function 'abort_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] abort_ftp_cmd(host); ^ cmds.c:312:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:315:4: warning: call to undeclared function 'report_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_ftp_reply(host, reply); ^ cmds.c:283:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftp_account(host, account) ^ cmds.c:330:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ftp_passive(host, port) ^ int cmds.c:342:16: warning: call to undeclared function 'send_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((retval = send_ftp_cmd(host, "PASV")) == -2) { ^ cmds.c:343:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:349:14: warning: call to undeclared function 'get_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retval = get_ftp_reply(host, reply, MAXFTPREPLY, &code, maxt); ^ cmds.c:354:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:359:3: warning: call to undeclared function 'abort_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] abort_ftp_cmd(host); ^ cmds.c:330:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftp_passive(host, port) ^ cmds.c:386:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ftp_type(host, mode) ^ int cmds.c:405:16: warning: call to undeclared function 'send_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((retval = send_ftp_cmd(host, cmd)) == -2) { ^ cmds.c:406:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:412:10: warning: call to undeclared function 'get_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] scode = get_ftp_reply(host, reply, MAXFTPREPLY, &code, maxt); ^ cmds.c:419:3: warning: call to undeclared function 'abort_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] abort_ftp_cmd(host); ^ cmds.c:422:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:425:4: warning: call to undeclared function 'report_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_ftp_reply(host, reply); ^ cmds.c:386:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftp_type(host, mode) ^ cmds.c:441:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ftp_port(host, hostport) ^ int cmds.c:453:16: warning: call to undeclared function 'send_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((retval = send_ftp_cmd(host, cmd)) == -2) { ^ cmds.c:454:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:460:10: warning: call to undeclared function 'get_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] scode = get_ftp_reply(host, reply, MAXFTPREPLY, &code, maxt); ^ cmds.c:467:3: warning: call to undeclared function 'abort_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] abort_ftp_cmd(host); ^ cmds.c:470:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:473:4: warning: call to undeclared function 'report_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_ftp_reply(host, reply); ^ cmds.c:441:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftp_port(host, hostport) ^ cmds.c:489:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ftp_system(host, print_error_msg) ^ int cmds.c:499:16: warning: call to undeclared function 'send_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((retval = send_ftp_cmd(host, "SYST")) == -2) { ^ cmds.c:500:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:506:10: warning: call to undeclared function 'get_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] scode = get_ftp_reply(host, reply, MAXFTPREPLY, &code, maxt); ^ cmds.c:509:3: warning: call to undeclared function 'determine_server_from_syst'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] determine_server_from_syst(host, reply); ^ cmds.c:514:3: warning: call to undeclared function 'abort_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] abort_ftp_cmd(host); ^ cmds.c:517:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:520:4: warning: call to undeclared function 'report_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_ftp_reply(host, reply); ^ cmds.c:489:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftp_system(host, print_error_msg) ^ cmds.c:532:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] ftp_allocate(host, size) ^ int cmds.c:547:16: warning: call to undeclared function 'send_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((retval = send_ftp_cmd(host, cmd)) == -2) { ^ cmds.c:548:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:554:10: warning: call to undeclared function 'get_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] scode = get_ftp_reply(host, reply, MAXFTPREPLY, &code, maxt); ^ cmds.c:561:3: warning: call to undeclared function 'abort_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] abort_ftp_cmd(host); ^ cmds.c:564:3: warning: call to undeclared function 'report_client_timeout'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_client_timeout(host); ^ cmds.c:567:4: warning: call to undeclared function 'report_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_ftp_reply(host, reply); ^ cmds.c:532:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ftp_allocate(host, size) ^ 86 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c color.c color.c:64:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] color_display() ^ int color.c:82:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fix_horizontal_text_sb_color(widget) ^ color.c:101:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fix_vertical_text_sb_color(widget) ^ 3 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c controls.c controls.c:75:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] start_op(grey) ^ int controls.c:80:3: warning: call to undeclared function 'beep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] beep(); ^ controls.c:86:18: warning: passing arguments to 'enable_controls' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] enable_controls(False); ^ controls.c:75:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] start_op(grey) ^ controls.c:107:3: warning: call to undeclared function 'fatal_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] fatal_error("Bug in end_op()"); ^ controls.c:111:18: warning: passing arguments to 'enable_controls' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] enable_controls(True); ^ controls.c:130:35: warning: call to undeclared function 'has_selected_entries'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (dirwin->has_selection && has_selected_entries(dirwin)) { ^ controls.c:176:3: warning: call to undeclared function 'update_layout_mode_buttons'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] update_layout_mode_buttons(dirwin); ^ controls.c:167:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] enable_controls(enable) ^ controls.c:63:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void enable_controls(); ^ controls.c:186:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] op_in_progress() ^ int 11 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c ctrlconn.c In file included from ctrlconn.c:65: ./str.h:61:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strtok(); ^ ./str.h:62:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strchr(); ^ ./str.h:63:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strrchr(); ^ ./str.h:64:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strstr(); ^ ctrlconn.c:93:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] write_tcp(host, fd, buf, n, maxtime) ^ int ctrlconn.c:106:11: warning: call to undeclared function 'select_on_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] switch (select_on_write(fd, maxtime)) { ^ ctrlconn.c:108:18: warning: call to undeclared function 'iwrite'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((nbytes = iwrite(fd, &buf[total_nbytes], n-total_nbytes)) < 0) { ^ ctrlconn.c:110:5: warning: call to undeclared function 'report_perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_perror("Writing connection"); ^ ctrlconn.c:93:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_tcp(host, fd, buf, n, maxtime) ^ ctrlconn.c:139:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] select_on_write(fd, maxtime) ^ int ctrlconn.c:157:2: warning: call to undeclared function 'add_timevals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] add_timevals(¤t_time, &delta, &finish_time); ^ ctrlconn.c:163:7: warning: call to undeclared function 'stop'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (stop()) ^ ctrlconn.c:166:7: warning: call to undeclared function 'cmp_timevals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (cmp_timevals(¤t_time, &finish_time) > 0) ^ ctrlconn.c:177:10: warning: call to undeclared function 'iselect'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] nfds = iselect(max_fds(), &readfds, &writefds, &exceptfds, &timeout); ^ ctrlconn.c:177:18: warning: call to undeclared function 'max_fds'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] nfds = iselect(max_fds(), &readfds, &writefds, &exceptfds, &timeout); ^ ctrlconn.c:139:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] select_on_write(fd, maxtime) ^ ctrlconn.c:197:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] read_tcp(host, fd, buf, n, maxtime) ^ int ctrlconn.c:209:11: warning: call to undeclared function 'select_on_read'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] switch (select_on_read(fd, maxtime)) { ^ ctrlconn.c:211:21: warning: call to undeclared function 'iread'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((nbytes = iread(fd, &buf[total_nbytes], n-total_nbytes)) < 0) { ^ ctrlconn.c:213:8: warning: call to undeclared function 'report_perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_perror("Reading connection"); ^ ctrlconn.c:197:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] read_tcp(host, fd, buf, n, maxtime) ^ ctrlconn.c:242:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] select_on_read(fd, maxtime) ^ int ctrlconn.c:259:2: warning: call to undeclared function 'add_timevals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] add_timevals(¤t_time, &delta, &finish_time); ^ ctrlconn.c:265:7: warning: call to undeclared function 'stop'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (stop()) ^ ctrlconn.c:268:7: warning: call to undeclared function 'cmp_timevals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (cmp_timevals(¤t_time, &finish_time) > 0) ^ ctrlconn.c:278:10: warning: call to undeclared function 'iselect'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] nfds = iselect(max_fds(), &readfds, NULL, &exceptfds, &timeout); ^ ctrlconn.c:278:18: warning: call to undeclared function 'max_fds'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] nfds = iselect(max_fds(), &readfds, NULL, &exceptfds, &timeout); ^ ctrlconn.c:242:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] select_on_read(fd, maxtime) ^ ctrlconn.c:302:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] get_ftp_reply(host, reply, maxreply, code, maxtime) ^ int ctrlconn.c:324:20: warning: call to undeclared function 'get_ftp_line'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((replycode = get_ftp_line(host, fd, line, MAXFTPLINE, maxtime)) < 0) ^ ctrlconn.c:343:3: warning: call to undeclared function 'report_ftp_reply'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_ftp_reply(host, reply); ^ ctrlconn.c:349:4: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log("*** FTP server on remote host timed out.\n"); ^ ctrlconn.c:353:3: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log("*** FTP server on remote host timed out.\n"); ^ ctrlconn.c:302:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_ftp_reply(host, reply, maxreply, code, maxtime) ^ ctrlconn.c:381:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] get_ftp_line(host, fd, line, maxline, maxtime) ^ int ctrlconn.c:381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ctrlconn.c:412:14: warning: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Wconstant-conversion] buf[0] = IAC; ~ ^~~ ctrlconn.c:73:14: note: expanded from macro 'IAC' #define IAC 255 ^~~ ctrlconn.c:413:14: warning: implicit conversion from 'int' to 'char' changes value from 254 to -2 [-Wconstant-conversion] buf[1] = DONT; ~ ^~~~ ctrlconn.c:72:14: note: expanded from macro 'DONT' #define DONT 254 ^~~ ctrlconn.c:424:14: warning: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Wconstant-conversion] buf[0] = IAC; ~ ^~~ ctrlconn.c:73:14: note: expanded from macro 'IAC' #define IAC 255 ^~~ ctrlconn.c:425:14: warning: implicit conversion from 'int' to 'char' changes value from 252 to -4 [-Wconstant-conversion] buf[1] = WONT; ~ ^~~~ ctrlconn.c:70:14: note: expanded from macro 'WONT' #define WONT 252 ^~~ ctrlconn.c:454:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] send_ftp_cmd(host, cmd) ^ int ctrlconn.c:464:3: warning: call to undeclared function 'report_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_ftp_cmd(host,cmd); ^ ctrlconn.c:454:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] send_ftp_cmd(host, cmd) ^ ctrlconn.c:499:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] urgent_abort(host) ^ int ctrlconn.c:508:3: warning: call to undeclared function 'report_ftp_cmd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_ftp_cmd(host, "Urgent Abort"); ^ ctrlconn.c:527:6: warning: call to undeclared function 'isend'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (isend(fd, buf, 1, MSG_OOB) != 1) ^ ctrlconn.c:499:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] urgent_abort(host) ^ ctrlconn.c:511:11: warning: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Wconstant-conversion] buf[0] = IAC; ~ ^~~ ctrlconn.c:73:14: note: expanded from macro 'IAC' #define IAC 255 ^~~ ctrlconn.c:512:11: warning: implicit conversion from 'int' to 'char' changes value from 244 to -12 [-Wconstant-conversion] buf[1] = IP; ~ ^~ ctrlconn.c:68:14: note: expanded from macro 'IP' #define IP 244 ^~~ ctrlconn.c:526:11: warning: implicit conversion from 'int' to 'char' changes value from 255 to -1 [-Wconstant-conversion] buf[0] = IAC; ~ ^~~ ctrlconn.c:73:14: note: expanded from macro 'IAC' #define IAC 255 ^~~ ctrlconn.c:529:11: warning: implicit conversion from 'int' to 'char' changes value from 242 to -14 [-Wconstant-conversion] buf[0] = DM; ~ ^~ ctrlconn.c:67:14: note: expanded from macro 'DM' #define DM 242 /* Telnet commands */ ^~~ ctrlconn.c:575:2: warning: call to undeclared function 'show_abort_dialog'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] show_abort_dialog(); ^ ctrlconn.c:597:2: warning: call to undeclared function 'hide_abort_dialog'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] hide_abort_dialog(); ^ ctrlconn.c:567:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] abort_ftp_cmd(host) ^ ctrlconn.c:608:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] rest_stop(seconds) ^ int ctrlconn.c:624:2: warning: call to undeclared function 'add_timevals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] add_timevals(¤t_time, &delta, &finish_time); ^ ctrlconn.c:630:7: warning: call to undeclared function 'stop'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (stop()) ^ ctrlconn.c:633:7: warning: call to undeclared function 'cmp_timevals'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (cmp_timevals(¤t_time, &finish_time) > 0) ^ ctrlconn.c:641:10: warning: call to undeclared function 'iselect'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] nfds = iselect(max_fds(), &readfds, NULL, &exceptfds, &timeout); ^ ctrlconn.c:641:18: warning: call to undeclared function 'max_fds'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] nfds = iselect(max_fds(), &readfds, NULL, &exceptfds, &timeout); ^ ctrlconn.c:608:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] rest_stop(seconds) ^ 61 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c cursor.c cursor.c:83:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] change_cursor(shape) ^ cursor.c:196:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] add_dialog_to_list(w_dialog) ^ cursor.c:253:2: warning: call to undeclared function 'fatal_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] fatal_error("Bug in remove_dialog_from_list()"); ^ cursor.c:233:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] remove_dialog_from_list(w_dialog) ^ 4 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c dataconn.c dataconn.c:74:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] init_data_conn(host) ^ int dataconn.c:88:9: warning: call to undeclared function 'report_perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_perror("Opening stream socket"); ^ dataconn.c:98:65: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(hinfo[host].ctrl_fd, (struct sockaddr *)&data, &addrlen) ^~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/sys/socket.h:710:78: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ dataconn.c:101:3: warning: call to undeclared function 'report_perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_perror("Gettin socket name"); ^ dataconn.c:102:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(sock); ^ dataconn.c:107:3: warning: call to undeclared function 'report_perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_perror("Binding stream socket"); ^ dataconn.c:108:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(sock); ^ dataconn.c:114:3: warning: call to undeclared function 'report_perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_perror("Listen"); ^ dataconn.c:115:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(sock); ^ dataconn.c:123:50: warning: passing 'int *' to parameter of type 'socklen_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign] if (getsockname(sock, (struct sockaddr *)&data, &addrlen) < 0) { ^~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/sys/socket.h:710:78: note: passing argument to parameter here int getsockname(int, struct sockaddr * __restrict, socklen_t * __restrict) ^ dataconn.c:125:3: warning: call to undeclared function 'report_perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_perror("Getting socket name"); ^ dataconn.c:126:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(sock); ^ dataconn.c:135:16: warning: call to undeclared function 'ftp_port'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ((retval = ftp_port(host, buf)) < 0) { ^ dataconn.c:136:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(sock); ^ dataconn.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] init_data_conn(host) ^ dataconn.c:149:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] accept_data_conn(data_fd) ^ int dataconn.c:158:3: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log("*** Will try to accept connection\n"); ^ dataconn.c:160:16: warning: call to undeclared function 'iaccept'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] new_data_fd = iaccept(data_fd, (struct sockaddr *)&remote, &addrlen); ^ dataconn.c:162:3: warning: call to undeclared function 'report_perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_perror("accept"); ^ dataconn.c:163:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(data_fd); ^ dataconn.c:170:2: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(data_fd); ^ dataconn.c:149:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] accept_data_conn(data_fd) ^ dataconn.c:183:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] passive_data_conn(host) ^ int dataconn.c:196:15: warning: call to undeclared function 'ftp_passive'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if((retval = ftp_passive(host, &hostport)) < 0) ^ dataconn.c:206:27: warning: call to undeclared function 'inet_addr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] remote.sin_addr.s_addr = inet_addr(host_addr); ^ dataconn.c:212:3: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log(msg); ^ dataconn.c:217:3: warning: call to undeclared function 'report_perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_perror("Opening socket stream"); ^ dataconn.c:228:3: warning: call to undeclared function 'report_perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_perror("Making socket stream nonblocking"); ^ dataconn.c:229:3: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(sock); ^ dataconn.c:236:3: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log("*** Will try to connect to remote data\n"); ^ dataconn.c:237:6: warning: call to undeclared function 'iconnect'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (iconnect(sock, (struct sockaddr *)&remote,(int)sizeof(remote)) < 0) { ^ dataconn.c:239:4: warning: call to undeclared function 'report_perror'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] report_perror("Connecting socket stream"); ^ dataconn.c:240:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(sock); ^ dataconn.c:243:11: warning: call to undeclared function 'select_on_write'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] switch (select_on_write(sock, maxt)) { ^ dataconn.c:245:4: warning: call to undeclared function 'close'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] close(sock); ^ dataconn.c:183:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] passive_data_conn(host) ^ 36 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c delete.c In file included from delete.c:59: ./str.h:61:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strtok(); ^ ./str.h:62:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strchr(); ^ ./str.h:63:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strrchr(); ^ ./str.h:64:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strstr(); ^ delete.c:106:7: warning: call to undeclared function 'start_op'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!start_op(True)) ^ delete.c:110:5: warning: call to undeclared function 'raise_okflag'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] raise_okflag(); ^ delete.c:114:8: warning: call to undeclared function 'verify_selection'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (!verify_selection(dirwin, dirwin, ^ delete.c:116:4: warning: call to undeclared function 'end_op'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] end_op(); ^ delete.c:122:2: warning: call to undeclared function 'show_stop_button'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] show_stop_button(dirwin); ^ delete.c:125:5: warning: call to undeclared function 'use_busy_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] use_busy_cursor(); ^ delete.c:129:12: warning: call to undeclared function 'check_connection'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retval = check_connection(dirwin->host, dirwin); ^ delete.c:131:4: warning: call to undeclared function 'restore_prev_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_prev_cursor(); ^ delete.c:134:5: warning: call to undeclared function 'record_abort'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_abort("Delete Entries"); ^ delete.c:137:5: warning: call to undeclared function 'record_and_alert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_and_alert("Unable to delete entries.", dirwin->w_shell); ^ delete.c:139:4: warning: call to undeclared function 'hide_stop_button'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] hide_stop_button(); ^ delete.c:140:4: warning: call to undeclared function 'end_op'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] end_op(); ^ delete.c:150:13: warning: call to undeclared function 'postorder_selected_items'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] postorder_selected_items(&dirwin->entries[i], &head, &tail); ^ delete.c:161:2: warning: call to undeclared function 'show_mp_monitor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] show_mp_monitor(dirwin, "Now Deleting:"); ^ delete.c:94:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_delete(widget, client_data, call_data) ^ delete.c:171:1: warning: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] cb_delete_entries() ^ int delete.c:195:6: warning: call to undeclared function 'stop'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (stop()) ^ delete.c:202:5: warning: call to undeclared function 'record_and_alert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_and_alert("At least one deletion failed.", ^ delete.c:212:34: warning: passing arguments to 'path_to_links' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] first_path_links = path_to_links(hinfo[dc.dirwin->host].system, ^ delete.c:226:2: warning: call to undeclared function 'release_path_links'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] release_path_links(first_path_links); ^ delete.c:230:29: warning: passing arguments to 'links_to_path' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dc.rel_path = links_to_path(hinfo[dc.dirwin->host].system, rel_path_links, ^ delete.c:235:28: warning: passing arguments to 'merge_paths' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dc.full_path = merge_paths(hinfo[dc.dirwin->host].system, ^ delete.c:244:9: warning: call to undeclared function 'local_cd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (local_cd(dc.full_path, False) == 0) ^ delete.c:247:13: warning: call to undeclared function 'remote_cd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] switch (remote_cd(dc.dirwin->host, dc.full_path, False)) { ^ delete.c:257:6: warning: call to undeclared function 'beep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] beep(); ^ delete.c:258:10: warning: call to undeclared function 'question_dialog'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (question_dialog(del_question, dc.dirwin->w_shell)) ^ delete.c:264:14: warning: call to undeclared function 'get_dirlist'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] switch (get_dirlist(dc.dirwin->host, dc.full_path, TABULAR, ^ delete.c:271:7: warning: call to undeclared function 'record_and_alert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_and_alert(del_error_msg, dc.dirwin->w_shell); ^ delete.c:277:7: warning: call to undeclared function 'record_and_alert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_and_alert( ^ delete.c:289:6: warning: call to undeclared function 'release_array_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] release_array_list(list); ^ delete.c:299:2: warning: call to undeclared function 'update_mp_monitor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] update_mp_monitor(dc.rel_path); ^ delete.c:301:12: warning: call to undeclared function 'local_delete'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retval = local_delete(dc.full_path); ^ delete.c:303:3: warning: call to undeclared function 'flush_cache_directory'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] flush_cache_directory(dc.dirwin->host, dc.full_path); ^ delete.c:304:3: warning: call to undeclared function 'parse_path'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] parse_path(hinfo[dc.dirwin->host].system, dc.full_path, &dir, NULL); ^ delete.c:310:13: warning: call to undeclared function 'remote_rmdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retval = remote_rmdir(dc.dirwin->host, dc.full_path); ^ delete.c:314:12: warning: call to undeclared function 'remote_cd'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] switch (remote_cd(dc.dirwin->host, dc.full_path, False)) { ^ delete.c:323:14: warning: call to undeclared function 'remote_delete'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retval = remote_delete(dc.dirwin->host, dc.full_path); ^ delete.c:326:13: warning: call to undeclared function 'remote_delete'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retval = remote_delete(dc.dirwin->host, dc.full_path); ^ delete.c:334:9: warning: call to undeclared library function 'sprintf' with type 'int (char *, const char *, ...)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] sprintf(msg, "Unable to delete %s.", dc.rel_path); ^ delete.c:334:9: note: include the header <stdio.h> or explicitly provide a declaration for 'sprintf' delete.c:335:9: warning: call to undeclared function 'record_warning'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_warning(msg); ^ delete.c:341:10: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log(msg); ^ delete.c:354:2: warning: call to undeclared function 'hide_mp_monitor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] hide_mp_monitor(); ^ delete.c:355:2: warning: call to undeclared function 'record_abort'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_abort("Delete Entries"); ^ delete.c:356:2: warning: call to undeclared function 'write_log'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] write_log("*** Deletion(s) aborted."); ^ delete.c:357:2: warning: call to undeclared function 'dirwin_out_of_date_alert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] dirwin_out_of_date_alert(dc.dirwin); ^ delete.c:363:11: warning: call to undeclared function 'display_dir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] retval = display_dir(dc.dirwin->host, dc.dirwin, dc.dirwin->dirname, True, ^ delete.c:372:3: warning: call to undeclared function 'restore_lost_connection'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_lost_connection(dc.dirwin->host, dc.dirwin); ^ delete.c:375:3: warning: call to undeclared function 'record_and_alert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_and_alert(msg1, dc.dirwin->w_shell); ^ delete.c:382:2: warning: call to undeclared function 'restore_lost_connection'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_lost_connection(dc.dirwin->host, dc.dirwin); ^ delete.c:394:3: warning: call to undeclared function 'release_linked_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] release_linked_list(&dc.head[i]); ^ delete.c:397:2: warning: call to undeclared function 'clear_selected_entries'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] clear_selected_entries(); ^ delete.c:398:2: warning: call to undeclared function 'update_dir_controls'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] update_dir_controls(); ^ delete.c:400:3: warning: call to undeclared function 'beep'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] beep(); ^ delete.c:401:2: warning: call to undeclared function 'restore_prev_cursor'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] restore_prev_cursor(); ^ delete.c:404:2: warning: call to undeclared function 'hide_stop_button'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] hide_stop_button(); ^ delete.c:405:2: warning: call to undeclared function 'end_op'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] end_op(); ^ 60 warnings generated. clang -pipe -Os -I/opt/pkg/include -Wall -Wpointer-arith -no-cpp-precomp -I/opt/pkg/include -D__aarch64__ -D__DARWIN__ -DNO_ALLOCA -DCSRG_BASED -DPNG_NO_ASSEMBLER_CODE -I/opt/pkg/include -I/opt/pkg/include/freetype2 -c diag.c In file included from diag.c:67: ./str.h:61:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strtok(); ^ ./str.h:62:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strchr(); ^ ./str.h:63:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strrchr(); ^ ./str.h:64:7: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] char *strstr(); ^ diag.c:129:12: error: redeclaration of 'sys_nerr' with a different type: 'int' vs 'const int' extern int sys_nerr; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/stdio.h:360:20: note: previous declaration is here extern __const int sys_nerr; /* perror(3) external variables */ ^ diag.c:132:14: error: redeclaration of 'sys_errlist' with a different type: 'char *[]' vs 'const char *const[]' extern char *sys_errlist[]; ^ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/stdio.h:361:30: note: previous declaration is here extern __const char *__const sys_errlist[]; ^ diag.c:162:2: warning: call to undeclared function 'attach_wm_icon'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] attach_wm_icon(diag.w_shell); ^ diag.c:169:2: warning: call to undeclared function 'add_wm_delete_window_cb'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] add_wm_delete_window_cb(diag.w_shell, cb_diag_close, NULL, True); ^ diag.c:454:2: warning: call to undeclared function 'add_dialog_to_list'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] add_dialog_to_list(diag.w_shell); ^ diag.c:462:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_diag_close(widget, client_data, call_data) ^ diag.c:137:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_diag_close(); ^ diag.c:478:2: warning: call to undeclared function 'help_dialog'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] help_dialog(widget, False, "Diagnostics", diagnostics_help); ^ diag.c:473:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_diag_help(widget, client_data, call_data) ^ diag.c:138:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_diag_help(); ^ diag.c:492:2: warning: call to undeclared function 'traverse_to_widget'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] traverse_to_widget(diag.w_closeButton); ^ diag.c:486:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_popup_diagnostics(widget, client_data, call_data) ^ diag.c:501:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] write_log(msg) ^ diag.c:515:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_diag_clear_log(widget, client_data, call_data) ^ diag.c:135:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_diag_clear_log(); ^ diag.c:544:13: warning: passing 'const char *const' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers] write_log(sys_errlist[saved_errno]); ^~~~~~~~~~~~~~~~~~~~~~~~ diag.c:532:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] report_perror(msg) ^ diag.c:547:3: warning: 'sprintf' will always overflow; destination buffer has size 10, but format string expands to at least 11 [-Wfortify-source] sprintf(buf, "errno = %d\n", saved_errno); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/include/secure/_stdio.h:47:3: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^ diag.c:557:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] report_ftp_reply(host, reply) ^ diag.c:573:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] report_ftp_cmd(host, cmd) ^ diag.c:612:35: warning: passing arguments to 'get_filename' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] if (!(logfile_name = get_filename("Save Diagnostics Log", ^ diag.c:619:3: warning: call to undeclared function 'record_and_alert'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] record_and_alert(msg, diag.w_shell); ^ diag.c:598:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_diag_save_log(widget, client_data, call_data) ^ diag.c:136:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_diag_save_log(); ^ diag.c:651:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] record_warning(msg) ^ diag.c:668:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] record_abort(operation) ^ diag.c:684:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] report_retry(operation) ^ diag.c:713:31: warning: passing arguments to 'create_pixmap' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] okflag_pixmap = create_pixmap(&okflag, (unsigned long)foreground, ^ diag.c:715:34: warning: passing arguments to 'create_pixmap' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] errorflag_pixmap = create_pixmap(&errorflag, (unsigned long)foreground, ^ diag.c:785:3: warning: call to undeclared function 'fatal_error'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] fatal_error("Bug in cb_change_diagnostics_level()"); ^ diag.c:771:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] cb_change_diagnostics_level(widget, client_data, call_data) ^ diag.c:141:6: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] void cb_change_diagnostics_level(); ^ 34 warnings and 2 errors generated. *** [diag.o] Error code 1 bmake: stopped in /Users/pbulk/build/net/llnlxdir/work/llnlxdir2_1_2/sources 1 error bmake: stopped in /Users/pbulk/build/net/llnlxdir/work/llnlxdir2_1_2/sources *** Error code 2 Stop. bmake[1]: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/llnlxdir *** Error code 1 Stop. bmake: stopped in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/net/llnlxdir