+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/fep-1.0nb3/work.log + su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/fep-1.0nb3/work.log ===> Building for fep-1.0nb3 cd /home/pbulk/build/misc/fep/work && for i in *.[ch]; do /usr/bin/sed "s,#endif lint,#endif /* lint */,g" ${i} > ${i}.new && /usr/bin/mv -f ${i}.new ${i}; done --- fep_main.o --- --- fep_edit.o --- --- fep_hist.o --- --- fep_com.o --- --- fep_main.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DTERMIOS -DHAVE_PTMX -I/opt/pkg/include/ncurses -c fep_main.c --- fep_edit.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DTERMIOS -DHAVE_PTMX -I/opt/pkg/include/ncurses -c fep_edit.c --- fep_hist.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DTERMIOS -DHAVE_PTMX -I/opt/pkg/include/ncurses -c fep_hist.c --- fep_com.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DTERMIOS -DHAVE_PTMX -I/opt/pkg/include/ncurses -c fep_com.c --- fep_hist.o --- fep_hist.c:31:1: error: return type defaults to 'int' [-Wimplicit-int] 31 | init_hist(size) | ^~~~~~~~~ fep_hist.c: In function 'init_hist': fep_hist.c:45:5: error: implicit declaration of function 'set_var' [-Wimplicit-function-declaration] 45 | set_var ("history", itoa (HistorySize)); | ^~~~~~~ fep_hist.c: At top level: fep_hist.c:58:1: error: return type defaults to 'int' [-Wimplicit-int] 58 | addHistory(string) | ^~~~~~~~~~ fep_hist.c: In function 'addHistory': fep_hist.c:66:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 66 | return; | ^~~~~~ fep_hist.c:58:1: note: declared here 58 | addHistory(string) | ^~~~~~~~~~ fep_hist.c:70:51: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 70 | if (look_var ("ignore-same-line") && prev && !strcmp (string, prev)) | ^~~~~~ fep_hist.c:16:1: note: include '' or provide a declaration of 'strcmp' 15 | #include "fep_funcs.h" +++ |+#include 16 | fep_hist.c:71:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 71 | return; | ^~~~~~ fep_hist.c:58:1: note: declared here 58 | addHistory(string) | ^~~~~~~~~~ fep_hist.c:72:17: error: implicit declaration of function 'lookd_var'; did you mean 'look_var'? [-Wimplicit-function-declaration] 72 | if ((slen = lookd_var ("ignore-short-line"))>0 && strlen (string) <= slen) | ^~~~~~~~~ | look_var fep_hist.c:72:55: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 72 | if ((slen = lookd_var ("ignore-short-line"))>0 && strlen (string) <= slen) | ^~~~~~ fep_hist.c:72:55: note: include '' or provide a declaration of 'strlen' fep_hist.c:72:55: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] fep_hist.c:72:55: note: include '' or provide a declaration of 'strlen' fep_hist.c:73:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 73 | return; | ^~~~~~ fep_hist.c:58:1: note: declared here 58 | addHistory(string) | ^~~~~~~~~~ fep_hist.c: At top level: fep_hist.c:141:1: error: return type defaults to 'int' [-Wimplicit-int] 141 | getOldestHistNum() | ^~~~~~~~~~~~~~~~ fep_hist.c:147:1: error: return type defaults to 'int' [-Wimplicit-int] 147 | getYoungestHistNum() | ^~~~~~~~~~~~~~~~~~ fep_hist.c:177:1: error: return type defaults to 'int' [-Wimplicit-int] 177 | getCurrentHistNum() | ^~~~~~~~~~~~~~~~~ fep_hist.c: In function 'allocAndCopyThere': fep_hist.c:188:25: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 188 | cp = (char *)malloc(strlen(string)+1); | ^~~~~~ fep_hist.c:188:25: note: include '' or provide a declaration of 'strlen' fep_hist.c:193:5: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 193 | strcpy(cp, string); | ^~~~~~ fep_hist.c:193:5: note: include '' or provide a declaration of 'strcpy' fep_hist.c:193:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] fep_hist.c:193:5: note: include '' or provide a declaration of 'strcpy' fep_hist.c: In function 'historyExtract': fep_hist.c:263:17: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 263 | strcpy (buf, "^"); | ^~~~~~ fep_hist.c:263:17: note: include '' or provide a declaration of 'strcpy' fep_hist.c:264:17: error: implicit declaration of function 'strncat' [-Wimplicit-function-declaration] 264 | strncat (buf, string, 64); | ^~~~~~~ fep_hist.c:264:17: note: include '' or provide a declaration of 'strncat' fep_hist.c:264:17: warning: incompatible implicit declaration of built-in function 'strncat' [-Wbuiltin-declaration-mismatch] fep_hist.c:264:17: note: include '' or provide a declaration of 'strncat' fep_hist.c: At top level: fep_hist.c:321:1: error: return type defaults to 'int' [-Wimplicit-int] 321 | changeHistorySize(newsize) | ^~~~~~~~~~~~~~~~~ fep_hist.c:372:1: error: return type defaults to 'int' [-Wimplicit-int] 372 | fep_history (comline) | ^~~~~~~~~~~ fep_hist.c: In function 'fep_history': fep_hist.c:377:12: error: implicit declaration of function 'mkargv' [-Wimplicit-function-declaration] 377 | argc = mkargv (comline, argv, MAXARGS); | ^~~~~~ fep_hist.c:384:5: error: implicit declaration of function 'hist_showHistory' [-Wimplicit-function-declaration] 384 | hist_showHistory (num); | ^~~~~~~~~~~~~~~~ fep_hist.c: At top level: fep_hist.c:387:1: error: return type defaults to 'int' [-Wimplicit-int] 387 | hist_showHistory (num) | ^~~~~~~~~~~~~~~~ --- fep_main.o --- fep_main.c:122:1: error: return type defaults to 'int' [-Wimplicit-int] 122 | main(argc, argv) | ^~~~ --- fep_hist.o --- fep_hist.c: In function 'hist_showHistory': fep_hist.c:409:13: error: implicit declaration of function 'ctlprint' [-Wimplicit-function-declaration] 409 | ctlprint(cp); | ^~~~~~~~ fep_hist.c: In function 'mk_home_relative': fep_hist.c:425:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 425 | strcpy (buf, getenv ("HOME")); | ^~~~~~ fep_hist.c:425:9: note: include '' or provide a declaration of 'strcpy' --- fep_main.o --- fep_main.c: In function 'main': fep_main.c:141:5: error: implicit declaration of function 'init_bind_table' [-Wimplicit-function-declaration] 141 | init_bind_table (); | ^~~~~~~~~~~~~~~ fep_main.c:146:5: error: implicit declaration of function 'set_default_vars' [-Wimplicit-function-declaration] 146 | set_default_vars (); | ^~~~~~~~~~~~~~~~ In file included from fep_main.c:31: fep_defs.h:26:26: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 26 | #define eq(a,b) (strcmp(a,b) == 0) | ^~~~~~ fep_main.c:153:37: note: in expansion of macro 'eq' 153 | if ((cp=getenv("EDITMODE")) && (eq(cp,"emacs")||eq(cp,"vi"))) | ^~ fep_main.c:34:1: note: include '' or provide a declaration of 'strcmp' 33 | #include "fep_funcs.h" +++ |+#include 34 | #ifdef STAT --- fep_hist.o --- fep_hist.c:426:9: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 426 | strcat (buf, "/"); | ^~~~~~ fep_hist.c:426:9: note: include '' or provide a declaration of 'strcat' fep_hist.c:426:9: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] fep_hist.c:426:9: note: include '' or provide a declaration of 'strcat' fep_hist.c:430:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 430 | strcpy (buf, cp); | ^~~~~~ fep_hist.c:430:9: note: include '' or provide a declaration of 'strcpy' fep_hist.c: At top level: fep_hist.c:435:1: error: return type defaults to 'int' [-Wimplicit-int] 435 | fep_save_history (comline) | ^~~~~~~~~~~~~~~~ --- fep_main.o --- fep_main.c:154:9: error: implicit declaration of function 'set_only_var' [-Wimplicit-function-declaration] 154 | set_only_var ("editmode", cp); | ^~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:113:1: error: return type defaults to 'int' [-Wimplicit-int] 113 | init_bind_table () | ^~~~~~~~~~~~~~~ fep_edit.c:129:1: error: return type defaults to 'int' [-Wimplicit-int] 129 | init_edit_params () | ^~~~~~~~~~~~~~~~ --- fep_hist.o --- fep_hist.c: In function 'fep_save_history': fep_hist.c:455:13: error: implicit declaration of function 'clear_edit_line' [-Wimplicit-function-declaration] 455 | clear_edit_line (); | ^~~~~~~~~~~~~~~ fep_hist.c:460:13: error: implicit declaration of function 'recover_edit_line' [-Wimplicit-function-declaration] 460 | recover_edit_line (1); | ^~~~~~~~~~~~~~~~~ fep_hist.c:461:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 461 | return; | ^~~~~~ fep_hist.c:435:1: note: declared here 435 | fep_save_history (comline) | ^~~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c: In function 'init_edit_params': fep_edit.c:136:13: error: implicit declaration of function 'tgetent'; did you mean 'getenv'? [-Wimplicit-function-declaration] 136 | if (tgetent (sbuf, term) == 1) { | ^~~~~~~ | getenv --- fep_hist.o --- fep_hist.c:468:5: error: implicit declaration of function 'save_history'; did you mean 'show_history'? [-Wimplicit-function-declaration] 468 | save_history (file, num); | ^~~~~~~~~~~~ | show_history fep_hist.c: At top level: fep_hist.c:473:1: error: return type defaults to 'int' [-Wimplicit-int] 473 | save_history (file, num) | ^~~~~~~~~~~~ --- fep_main.o --- fep_main.c:194:25: error: implicit declaration of function 'usageAndExit' [-Wimplicit-function-declaration] 194 | usageAndExit (); | ^~~~~~~~~~~~ fep_main.c:234:5: error: implicit declaration of function 'look_cmdinfo' [-Wimplicit-function-declaration] 234 | look_cmdinfo (argv[1]); | ^~~~~~~~~~~~ --- fep_hist.o --- fep_hist.c: In function 'save_history': fep_hist.c:498:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 498 | return; | ^~~~~~ fep_hist.c:473:1: note: declared here 473 | save_history (file, num) | ^~~~~~~~~~~~ fep_hist.c:507:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 507 | return; | ^~~~~~ fep_hist.c:473:1: note: declared here 473 | save_history (file, num) | ^~~~~~~~~~~~ fep_hist.c: At top level: fep_hist.c:510:1: error: return type defaults to 'int' [-Wimplicit-int] 510 | fep_read_history (comline) | ^~~~~~~~~~~~~~~~ fep_hist.c: In function 'fep_read_history': fep_hist.c:532:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 532 | return; | ^~~~~~ fep_hist.c:510:1: note: declared here 510 | fep_read_history (comline) | ^~~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:138:25: error: implicit declaration of function 'tgetnum' [-Wimplicit-function-declaration] 138 | lines = tgetnum ("li"); | ^~~~~~~ --- fep_hist.o --- fep_hist.c:539:5: error: implicit declaration of function 'read_history'; did you mean 'fep_history'? [-Wimplicit-function-declaration] 539 | read_history (file); | ^~~~~~~~~~~~ | fep_history fep_hist.c: At top level: fep_hist.c:542:1: error: return type defaults to 'int' [-Wimplicit-int] 542 | read_history (file) | ^~~~~~~~~~~~ fep_hist.c: In function 'read_history': fep_hist.c:553:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 553 | return; | ^~~~~~ fep_hist.c:542:1: note: declared here 542 | read_history (file) | ^~~~~~~~~~~~ fep_hist.c:557:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 557 | i = strlen (line) - 1; | ^~~~~~ fep_hist.c:557:13: note: include '' or provide a declaration of 'strlen' fep_hist.c:562:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 562 | return; | ^~~~~~ fep_hist.c:542:1: note: declared here 542 | read_history (file) | ^~~~~~~~~~~~ --- fep_main.o --- fep_main.c:242:13: error: implicit declaration of function 'any' [-Wimplicit-function-declaration] 242 | if (any ('/', cp)) | ^~~ --- fep_edit.o --- fep_edit.c:151:5: error: implicit declaration of function 'set_var' [-Wimplicit-function-declaration] 151 | set_var ("crt", sbuf); | ^~~~~~~ fep_edit.c:160:26: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration] 160 | set_var ("showhist", itoa (lines - 1)); | ^~~~ --- fep_main.o --- fep_main.c:244:9: error: implicit declaration of function 'set_var' [-Wimplicit-function-declaration] 244 | set_var (cp, "1"); | ^~~~~~~ fep_main.c:251:9: error: implicit declaration of function 'execvp' [-Wimplicit-function-declaration] 251 | execvp (*commandv, commandv, 0); | ^~~~~~ fep_main.c:251:9: warning: too many arguments to built-in function 'execvp' expecting 2 [-Wbuiltin-declaration-mismatch] fep_main.c:256:5: error: implicit declaration of function 'get_pty_master' [-Wimplicit-function-declaration] 256 | get_pty_master (); | ^~~~~~~~~~~~~~ fep_main.c:257:5: error: implicit declaration of function 'fix_tty' [-Wimplicit-function-declaration] 257 | fix_tty (); | ^~~~~~~ fep_main.c:266:5: error: implicit declaration of function 'init_hist' [-Wimplicit-function-declaration] 266 | init_hist (histlen); | ^~~~~~~~~ --- fep_edit.o --- fep_edit.c:165:5: error: implicit declaration of function 'sourceRcFile' [-Wimplicit-function-declaration] 165 | sourceRcFile (); | ^~~~~~~~~~~~ --- fep_main.o --- fep_main.c:267:5: error: implicit declaration of function 'init_edit_params' [-Wimplicit-function-declaration] 267 | init_edit_params (); | ^~~~~~~~~~~~~~~~ fep_main.c:277:14: error: implicit declaration of function 'set_buffer'; did you mean 'setbuffer'? [-Wimplicit-function-declaration] 277 | if (!set_buffer (output_buffer, size)) { | ^~~~~~~~~~ | setbuffer --- fep_com.o --- fep_com.c:44:1: error: return type defaults to 'int' [-Wimplicit-int] 44 | executeBuiltInFunction (comline, more) | ^~~~~~~~~~~~~~~~~~~~~~ fep_com.c: In function 'executeBuiltInFunction': fep_com.c:59:5: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 59 | strcpy (line, comline); | ^~~~~~ fep_com.c:32:1: note: include '' or provide a declaration of 'strcpy' 31 | #include "fep_funcs.h" +++ |+#include 32 | fep_com.c:59:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 59 | strcpy (line, comline); | ^~~~~~ fep_com.c:59:5: note: include '' or provide a declaration of 'strcpy' fep_com.c:82:9: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 82 | if (strncmp (line, "fep-", 4) != 0) | ^~~~~~~ fep_com.c:82:9: note: include '' or provide a declaration of 'strncmp' fep_com.c:82:32: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 82 | if (strncmp (line, "fep-", 4) != 0) | ^ : note: built-in 'strncmp' declared here --- fep_main.o --- fep_main.c:279:13: error: implicit declaration of function 'kill_process' [-Wimplicit-function-declaration] 279 | kill_process (); | ^~~~~~~~~~~~ fep_main.c:285:21: error: implicit declaration of function 'fork' [-Wimplicit-function-declaration] 285 | child_pid = fork (); | ^~~~ --- fep_edit.o --- fep_edit.c:177:17: error: implicit declaration of function 'read_history'; did you mean 'fep_history'? [-Wimplicit-function-declaration] 177 | read_history (cp); | ^~~~~~~~~~~~ | fep_history fep_edit.c:190:12: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 190 | (void) strcpy (CommandLine, ""); | ^~~~~~ fep_edit.c:34:1: note: include '' or provide a declaration of 'strcpy' 33 | #include "fep_funcs.h" +++ |+#include 34 | fep_edit.c:190:12: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 190 | (void) strcpy (CommandLine, ""); | ^~~~~~ fep_edit.c:190:12: note: include '' or provide a declaration of 'strcpy' fep_edit.c: At top level: fep_edit.c:198:1: error: return type defaults to 'int' [-Wimplicit-int] 198 | initEmacsBindings (cft, aft) | ^~~~~~~~~~~~~~~~~ fep_edit.c: In function 'initEmacsBindings': fep_edit.c:261:9: error: implicit declaration of function 'bind_key'; did you mean 'bind_to_key'? [-Wimplicit-function-declaration] 261 | bind_key (cft, ftp->bt_func, ftp->bt_s, fep_abort); | ^~~~~~~~ | bind_to_key fep_edit.c: In function 'get_line': --- fep_com.o --- fep_com.c:86:13: error: implicit declaration of function 'is_same_command' [-Wimplicit-function-declaration] 86 | if (is_same_command (line, ftp->name)) { | ^~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:276:12: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 276 | (void) strcpy (CommandLine, ""); | ^~~~~~ fep_edit.c:276:12: note: include '' or provide a declaration of 'strcpy' --- fep_hist.o --- *** [fep_hist.o] Error code 1 bmake: stopped making "all" in /home/pbulk/build/misc/fep/work --- fep_main.o --- fep_main.c:292:13: error: implicit declaration of function 'exec_to_command' [-Wimplicit-function-declaration] 292 | exec_to_command (commandv); | ^~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:278:5: error: implicit declaration of function 'resetCurrentHistory'; did you mean 'insert_current_history'? [-Wimplicit-function-declaration] 278 | resetCurrentHistory (); | ^~~~~~~~~~~~~~~~~~~ | insert_current_history --- fep_com.o --- fep_com.c:88:17: error: implicit declaration of function 'showArgs' [-Wimplicit-function-declaration] 88 | showArgs (line); | ^~~~~~~~ --- fep_main.o --- fep_main.c:294:5: error: implicit declaration of function 'fix_signal'; did you mean 'bsd_signal'? [-Wimplicit-function-declaration] 294 | fix_signal (); | ^~~~~~~~~~ | bsd_signal --- fep_edit.o --- fep_edit.c:297:9: error: implicit declaration of function 'swallow_output' [-Wimplicit-function-declaration] 297 | swallow_output(); | ^~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:90:17: error: implicit declaration of function 'condition'; did you mean 'pop_condition'? [-Wimplicit-function-declaration] 90 | condition() | ^~~~~~~~~ | pop_condition fep_com.c:92:45: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 92 | || strncmp (line + 4, "if", 2) == 0 | ^ : note: built-in 'strncmp' declared here fep_com.c:93:48: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 93 | || strncmp (line + 4, "endif", 5) == 0 | ^ : note: built-in 'strncmp' declared here fep_com.c:94:49: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 94 | || strncmp (line + 4, "elseif", 6) == 0 | ^ : note: built-in 'strncmp' declared here fep_com.c:95:47: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 95 | || strncmp (line + 4, "else", 4) == 0 | ^ : note: built-in 'strncmp' declared here --- fep_edit.o --- fep_edit.c:307:13: error: implicit declaration of function 'errorBell' [-Wimplicit-function-declaration] 307 | errorBell (); | ^~~~~~~~~ --- fep_com.o --- fep_com.c: At top level: fep_com.c:104:1: error: return type defaults to 'int' [-Wimplicit-int] 104 | is_same_command (a, b) | ^~~~~~~~~~~~~~~ fep_com.c:119:1: error: return type defaults to 'int' [-Wimplicit-int] 119 | fep_if (comline) | ^~~~~~ --- fep_edit.o --- fep_edit.c:318:17: error: implicit declaration of function 'getcharacter' [-Wimplicit-function-declaration] 318 | while ((c = getcharacter ()) >= (CHAR) 0) { | ^~~~~~~~~~~~ --- fep_com.o --- fep_com.c: In function 'fep_if': fep_com.c:128:12: error: implicit declaration of function 'mkargv' [-Wimplicit-function-declaration] 128 | argc = mkargv (comline, argv, MAXARGS); | ^~~~~~ fep_com.c:132:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 132 | return; | ^~~~~~ fep_com.c:119:1: note: declared here 119 | fep_if (comline) | ^~~~~~ --- fep_edit.o --- fep_edit.c:354:26: error: implicit declaration of function 'alarm_on_eof' [-Wimplicit-function-declaration] 354 | status = alarm_on_eof (c); | ^~~~~~~~~~~~ --- fep_com.o --- In file included from fep_com.c:29: fep_defs.h:26:26: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 26 | #define eq(a,b) (strcmp(a,b) == 0) | ^~~~~~ fep_com.c:177:13: note: in expansion of macro 'eq' 177 | if (eq (argv[2], "==") || eq (argv[2], "=")) | ^~ fep_defs.h:26:26: note: include '' or provide a declaration of 'strcmp' 26 | #define eq(a,b) (strcmp(a,b) == 0) | ^~~~~~ fep_com.c:177:13: note: in expansion of macro 'eq' 177 | if (eq (argv[2], "==") || eq (argv[2], "=")) | ^~ fep_com.c:183:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 183 | return; | ^~~~~~ fep_com.c:119:1: note: declared here 119 | fep_if (comline) | ^~~~~~ fep_com.c:202:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 202 | return; | ^~~~~~ --- fep_main.o --- fep_main.c:296:5: error: implicit declaration of function 'input_handler'; did you mean 'sa_handler'? [-Wimplicit-function-declaration] 296 | input_handler (); | ^~~~~~~~~~~~~ | sa_handler --- fep_com.o --- fep_com.c:119:1: note: declared here 119 | fep_if (comline) | ^~~~~~ fep_com.c: At top level: fep_com.c:205:1: error: return type defaults to 'int' [-Wimplicit-int] 205 | fep_else () | ^~~~~~~~ fep_com.c: In function 'fep_else': --- fep_main.o --- fep_main.c: At top level: --- fep_com.o --- fep_com.c:212:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 212 | return; | ^~~~~~ --- fep_main.o --- fep_main.c:299:1: error: return type defaults to 'int' [-Wimplicit-int] 299 | fix_signal () | ^~~~~~~~~~ --- fep_com.o --- fep_com.c:205:1: note: declared here 205 | fep_else () | ^~~~~~~~ fep_com.c: At top level: fep_com.c:215:1: error: return type defaults to 'int' [-Wimplicit-int] 215 | fep_endif () | ^~~~~~~~~ --- fep_edit.o --- fep_edit.c:361:22: error: implicit declaration of function 'callfunc'; did you mean 'calloc'? [-Wimplicit-function-declaration] 361 | status = callfunc (curFuncTab, c); | ^~~~~~~~ | calloc --- fep_com.o --- fep_com.c: In function 'fep_endif': fep_com.c:222:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 222 | return; | ^~~~~~ --- fep_main.o --- fep_main.c:313:1: error: return type defaults to 'int' [-Wimplicit-int] 313 | recover_signal () | ^~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:215:1: note: declared here 215 | fep_endif () | ^~~~~~~~~ fep_com.c: At top level: --- fep_main.o --- fep_main.c:321:1: error: return type defaults to 'int' [-Wimplicit-int] 321 | input_handler() | ^~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:225:1: error: return type defaults to 'int' [-Wimplicit-int] 225 | bind_to_key (comline) | ^~~~~~~~~~~ fep_com.c: In function 'bind_to_key': --- fep_main.o --- fep_main.c: In function 'input_handler': --- fep_com.o --- fep_com.c:239:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 239 | return; | ^~~~~~ --- fep_main.o --- fep_main.c:339:35: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 339 | register int nbyte = max (strlen (inputline), 1); | ^~~~~~ fep_defs.h:28:27: note: in definition of macro 'max' 28 | #define max(a,b) ((a)>(b)?(a):(b)) | ^ --- fep_com.o --- fep_com.c:225:1: note: declared here 225 | bind_to_key (comline) | ^~~~~~~~~~~ --- fep_main.o --- fep_main.c:339:35: note: include '' or provide a declaration of 'strlen' 339 | register int nbyte = max (strlen (inputline), 1); | ^~~~~~ fep_defs.h:28:27: note: in definition of macro 'max' 28 | #define max(a,b) ((a)>(b)?(a):(b)) | ^ fep_main.c:339:35: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 339 | register int nbyte = max (strlen (inputline), 1); | ^~~~~~ fep_defs.h:28:27: note: in definition of macro 'max' 28 | #define max(a,b) ((a)>(b)?(a):(b)) | ^ fep_main.c:339:35: note: include '' or provide a declaration of 'strlen' 339 | register int nbyte = max (strlen (inputline), 1); | ^~~~~~ fep_defs.h:28:27: note: in definition of macro 'max' 28 | #define max(a,b) ((a)>(b)?(a):(b)) | ^ --- fep_com.o --- fep_com.c:247:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 247 | return; | ^~~~~~ fep_com.c:225:1: note: declared here 225 | bind_to_key (comline) | ^~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:377:9: error: implicit declaration of function 'refer_history'; did you mean 'fep_history'? [-Wimplicit-function-declaration] 377 | if (refer_history () == PROCESSED) | ^~~~~~~~~~~~~ | fep_history --- fep_main.o --- fep_main.c:344:9: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 344 | write (master, inputline, nbyte); | ^~~~~ | fwrite fep_main.c: At top level: fep_main.c:406:1: error: return type defaults to 'int' [-Wimplicit-int] 406 | getcharacter() | ^~~~~~~~~~~~ In file included from /usr/include/sys/types.h:687, from /usr/include/signal.h:39, from fep_main.c:9: fep_main.c: In function 'getcharacter': fep_main.c:421:5: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration] 421 | FD_ZERO(&writefd); | ^~~~~~~ fep_main.c:421:5: note: include '' or provide a declaration of 'memset' --- fep_edit.o --- fep_edit.c:396:9: error: implicit declaration of function 'executeBuiltInFunction' [-Wimplicit-function-declaration] 396 | if (executeBuiltInFunction (execute_command, &remained) == PROCESSED) { | ^~~~~~~~~~~~~~~~~~~~~~ --- fep_main.o --- fep_main.c:445:17: error: implicit declaration of function 'buf_read'; did you mean 'fread'? [-Wimplicit-function-declaration] 445 | nbyte = buf_read (master, output_buffer); | ^~~~~~~~ | fread fep_main.c: In function 'buf_read': --- fep_edit.o --- fep_edit.c:398:13: error: implicit declaration of function 'addHistory' [-Wimplicit-function-declaration] 398 | addHistory (CommandLine); | ^~~~~~~~~~ --- fep_main.o --- fep_main.c:565:13: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 565 | nbyte = read (fd, bp->b_buf + bp->b_next, bp->b_max - bp->b_next); | ^~~~ | fread fep_main.c: At top level: fep_main.c:591:1: error: return type defaults to 'int' [-Wimplicit-int] 591 | buf_put (bp, s) | ^~~~~~~ fep_main.c: In function 'buf_put': fep_main.c:598:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 598 | nbyte = strlen (s); | ^~~~~~ fep_main.c:598:13: note: include '' or provide a declaration of 'strlen' --- fep_edit.o --- fep_edit.c:412:14: error: implicit declaration of function 'is_empty_line' [-Wimplicit-function-declaration] 412 | if (!is_empty_line (CommandLine) || !look_var ("ignore-empty-line")) | ^~~~~~~~~~~~~ --- fep_main.o --- fep_main.c:603:9: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 603 | strncpy (bp->b_buf + bp->b_next, s, slen); | ^~~~~~~ fep_main.c:603:9: note: include '' or provide a declaration of 'strncpy' fep_main.c:603:9: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] fep_main.c:603:9: note: include '' or provide a declaration of 'strncpy' fep_main.c: At top level: fep_main.c:618:1: error: return type defaults to 'int' [-Wimplicit-int] 618 | swallow_output() | ^~~~~~~~~~~~~~ fep_main.c: In function 'swallow_output': --- fep_com.o --- fep_com.c:255:13: error: implicit declaration of function 'bind_key'; did you mean 'bind_to_key'? [-Wimplicit-function-declaration] 255 | bind_key (curFuncTab, fnte->func, argv[2], fep_abort); | ^~~~~~~~ | bind_to_key --- fep_main.o --- fep_main.c:652:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 652 | return; | ^~~~~~ --- fep_com.o --- fep_com.c: At top level: fep_com.c:267:1: error: return type defaults to 'int' [-Wimplicit-int] 267 | alias(comline) | ^~~~~ --- fep_main.o --- fep_main.c:618:1: note: declared here 618 | swallow_output() | ^~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c: In function 'alias': fep_com.c:277:13: error: implicit declaration of function 'show_aliaslist' [-Wimplicit-function-declaration] 277 | show_aliaslist (NULL); | ^~~~~~~~~~~~~~ --- fep_main.o --- fep_main.c: In function 'catchsig': --- fep_edit.o --- fep_edit.c:418:9: error: implicit declaration of function 'buf_put'; did you mean 'buf_count'? [-Wimplicit-function-declaration] 418 | buf_put (output_buffer, CommandLine); | ^~~~~~~ | buf_count fep_edit.c:424:16: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 424 | (void) strcat (execute_command, "\n"); | ^~~~~~ fep_edit.c:424:16: note: include '' or provide a declaration of 'strcat' fep_edit.c:424:16: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] fep_edit.c:424:16: note: include '' or provide a declaration of 'strcat' --- fep_main.o --- fep_main.c:671:13: error: implicit declaration of function 'message' [-Wimplicit-function-declaration] 671 | message ("Child has stopped!!\n"); | ^~~~~~~ fep_main.c: At top level: --- fep_edit.o --- fep_edit.c: At top level: --- fep_main.o --- fep_main.c:679:1: error: return type defaults to 'int' [-Wimplicit-int] 679 | exec_to_command(argv) | ^~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:434:1: error: return type defaults to 'int' [-Wimplicit-int] 434 | callfunc (ft, c) | ^~~~~~~~ fep_edit.c:453:1: error: return type defaults to 'int' [-Wimplicit-int] 453 | fep_abort() | ^~~~~~~~~ fep_edit.c:462:1: error: return type defaults to 'int' [-Wimplicit-int] 462 | self_insert(c) | ^~~~~~~~~~~ fep_edit.c: In function 'self_insert': fep_edit.c:470:19: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 470 | currentNull = strlen (CommandLine); | ^~~~~~ fep_edit.c:470:19: note: include '' or provide a declaration of 'strlen' fep_edit.c:470:19: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] fep_edit.c:470:19: note: include '' or provide a declaration of 'strlen' --- fep_main.o --- fep_main.c: In function 'exec_to_command': --- fep_edit.o --- fep_edit.c:488:9: error: implicit declaration of function 'putChar'; did you mean 'putchar'? [-Wimplicit-function-declaration] 488 | putChar (c); | ^~~~~~~ | putchar --- fep_com.o --- fep_com.c:285:13: error: implicit declaration of function 'set_alias' [-Wimplicit-function-declaration] 285 | set_alias (argv[1], argv[2]); | ^~~~~~~~~ --- fep_main.o --- fep_main.c:689:9: error: implicit declaration of function 'ioctl'; did you mean 'toctrl'? [-Wimplicit-function-declaration] 689 | ioctl (t, TIOCNOTTY, (char *) 0); | ^~~~~ | toctrl --- fep_com.o --- fep_com.c:291:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 291 | return; | ^~~~~~ fep_com.c:267:1: note: declared here 267 | alias(comline) | ^~~~~ fep_com.c: At top level: --- fep_main.o --- fep_main.c:690:16: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 690 | (void) close (t); | ^~~~~ | pclose --- fep_edit.o --- fep_edit.c:489:5: error: implicit declaration of function 'reverse_strcpy' [-Wimplicit-function-declaration] 489 | reverse_strcpy ( | ^~~~~~~~~~~~~~ --- fep_main.o --- fep_main.c:693:5: error: implicit declaration of function 'get_pty_slave' [-Wimplicit-function-declaration] 693 | get_pty_slave (); | ^~~~~~~~~~~~~ fep_main.c:706:5: warning: too many arguments to built-in function 'execvp' expecting 2 [-Wbuiltin-declaration-mismatch] 706 | execvp (*argv, argv, 0); | ^~~~~~ fep_main.c: At top level: fep_main.c:712:1: error: return type defaults to 'int' [-Wimplicit-int] 712 | fix_tty() | ^~~~~~~ fep_main.c:771:1: error: return type defaults to 'int' [-Wimplicit-int] 771 | kill_process() | ^~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:500:5: error: implicit declaration of function 'printS'; did you mean 'printf'? [-Wimplicit-function-declaration] 500 | printS (&CommandLine [CurrentPosition]); | ^~~~~~ | printf --- fep_com.o --- fep_com.c:294:1: error: return type defaults to 'int' [-Wimplicit-int] 294 | unalias (comline) | ^~~~~~~ --- fep_main.o --- fep_main.c: In function 'terminate': fep_main.c:793:19: error: implicit declaration of function 'lookd_var'; did you mean 'look_var'? [-Wimplicit-function-declaration] 793 | num = lookd_var ("savehist"); | ^~~~~~~~~ | look_var fep_main.c:794:13: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 794 | strcpy (buf, mk_home_relative (cp)); | ^~~~~~ fep_main.c:794:13: note: include '' or provide a declaration of 'strcpy' fep_main.c:794:13: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] fep_main.c:794:13: note: include '' or provide a declaration of 'strcpy' --- fep_edit.o --- fep_edit.c:503:9: error: implicit declaration of function 'repeat' [-Wimplicit-function-declaration] 503 | repeat (BS, howlong (&CommandLine[CurrentPosition + 1], 0)); | ^~~~~~ --- fep_com.o --- fep_com.c: In function 'unalias': fep_com.c:304:9: error: implicit declaration of function 'unset_alias'; did you mean 'unalias'? [-Wimplicit-function-declaration] 304 | unset_alias (argv[i]); | ^~~~~~~~~~~ | unalias fep_com.c:306:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 306 | return; | ^~~~~~ fep_com.c:294:1: note: declared here 294 | unalias (comline) | ^~~~~~~ fep_com.c: At top level: fep_com.c:309:1: error: return type defaults to 'int' [-Wimplicit-int] 309 | set (comline) | ^~~ fep_com.c: In function 'set': fep_com.c:320:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 320 | strcpy (line, comline); | ^~~~~~ fep_com.c:320:5: note: include '' or provide a declaration of 'strcpy' --- fep_edit.o --- fep_edit.c:503:21: error: implicit declaration of function 'howlong' [-Wimplicit-function-declaration] 503 | repeat (BS, howlong (&CommandLine[CurrentPosition + 1], 0)); | ^~~~~~~ fep_edit.c: At top level: fep_edit.c:512:1: error: return type defaults to 'int' [-Wimplicit-int] 512 | insert_string (s) | ^~~~~~~~~~~~~ fep_edit.c: In function 'insert_string': fep_edit.c:515:29: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 515 | register int i, nbyte = strlen (s), currentNull; | ^~~~~~ fep_edit.c:515:29: note: include '' or provide a declaration of 'strlen' fep_edit.c:531:5: error: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 531 | bcopy (s, &CommandLine[CurrentPosition], nbyte); | ^~~~~ fep_edit.c:531:5: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch] fep_edit.c: At top level: fep_edit.c:544:1: error: return type defaults to 'int' [-Wimplicit-int] 544 | yank_from_kill_buffer () | ^~~~~~~~~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:330:13: error: implicit declaration of function 'show_varlist' [-Wimplicit-function-declaration] 330 | show_varlist (); | ^~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:552:1: error: return type defaults to 'int' [-Wimplicit-int] 552 | mark () | ^~~~ --- fep_com.o --- fep_com.c:331:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 331 | return; | ^~~~~~ fep_com.c:309:1: note: declared here 309 | set (comline) | ^~~ --- fep_main.o --- fep_main.c:795:13: error: implicit declaration of function 'save_history'; did you mean 'show_history'? [-Wimplicit-function-declaration] 795 | save_history (buf, num); | ^~~~~~~~~~~~ | show_history --- fep_edit.o --- fep_edit.c: In function 'mark': fep_edit.c:554:5: error: implicit declaration of function 'set_mark' [-Wimplicit-function-declaration] 554 | set_mark (CurrentPosition); | ^~~~~~~~ --- fep_main.o --- fep_main.c: At top level: --- fep_edit.o --- fep_edit.c: At top level: fep_edit.c:561:1: error: return type defaults to 'int' [-Wimplicit-int] 561 | set_mark (pos) | ^~~~~~~~ fep_edit.c:571:1: error: return type defaults to 'int' [-Wimplicit-int] 571 | delete_to_kill_buffer () | ^~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_to_kill_buffer': fep_edit.c:581:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 581 | return; | ^~~~~~ fep_edit.c:571:1: note: declared here 571 | delete_to_kill_buffer () | ^~~~~~~~~~~~~~~~~~~~~ --- fep_main.o --- fep_main.c:821:1: error: return type defaults to 'int' [-Wimplicit-int] 821 | get_pty_master() | ^~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:584:16: error: implicit declaration of function 'moveto' [-Wimplicit-function-declaration] 584 | (void) moveto (MarkPosition); | ^~~~~~ --- fep_main.o --- fep_main.c: In function 'get_pty_master': fep_main.c:829:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 829 | return; | ^~~~~~ --- fep_edit.o --- fep_edit.c:587:13: error: implicit declaration of function 'delete_next_n_character'; did you mean 'delete_next_character'? [-Wimplicit-function-declaration] 587 | return (delete_next_n_character (n)); | ^~~~~~~~~~~~~~~~~~~~~~~ | delete_next_character fep_edit.c: At top level: --- fep_main.o --- fep_main.c:821:1: note: declared here 821 | get_pty_master() | ^~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:593:1: error: return type defaults to 'int' [-Wimplicit-int] 593 | moveto (position) | ^~~~~~ fep_edit.c: In function 'moveto': fep_edit.c:593:1: error: type of 'position' defaults to 'int' [-Wimplicit-int] --- fep_main.o --- fep_main.c:861:15: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 861 | (void)strncpy (slave_tty, ptr, sizeof(slave_tty)); | ^~~~~~~ --- fep_edit.o --- fep_edit.c:597:20: error: implicit declaration of function 'backward_n_character'; did you mean 'backward_character'? [-Wimplicit-function-declaration] 597 | (void) backward_n_character (1); | ^~~~~~~~~~~~~~~~~~~~ | backward_character --- fep_main.o --- fep_main.c:861:15: note: include '' or provide a declaration of 'strncpy' --- fep_edit.o --- fep_edit.c:605:20: error: implicit declaration of function 'forward_n_character'; did you mean 'forward_character'? [-Wimplicit-function-declaration] 605 | (void) forward_n_character (1); | ^~~~~~~~~~~~~~~~~~~ | forward_character fep_edit.c: At top level: fep_edit.c:611:1: error: return type defaults to 'int' [-Wimplicit-int] 611 | beginning_of_line() | ^~~~~~~~~~~~~~~~~ --- fep_main.o --- fep_main.c:927:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 927 | return; | ^~~~~~ fep_main.c:821:1: note: declared here 821 | get_pty_master() | ^~~~~~~~~~~~~~ fep_main.c: At top level: --- fep_edit.o --- fep_edit.c:635:1: error: return type defaults to 'int' [-Wimplicit-int] 635 | end_of_line() | ^~~~~~~~~~~ --- fep_main.o --- fep_main.c:930:1: error: return type defaults to 'int' [-Wimplicit-int] 930 | get_pty_slave() | ^~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:335:13: error: implicit declaration of function 'set_var' [-Wimplicit-function-declaration] 335 | set_var (argv[1], ""); | ^~~~~~~ fep_com.c:336:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 336 | return; | ^~~~~~ --- fep_edit.o --- fep_edit.c:654:1: error: return type defaults to 'int' [-Wimplicit-int] 654 | backward_character() | ^~~~~~~~~~~~~~~~~~ fep_edit.c:663:1: error: return type defaults to 'int' [-Wimplicit-int] 663 | backward_n_character(n) | ^~~~~~~~~~~~~~~~~~~~ fep_edit.c:699:1: error: return type defaults to 'int' [-Wimplicit-int] 699 | backward_word () | ^~~~~~~~~~~~~ --- fep_main.o --- fep_main.c: In function 'get_pty_slave': fep_main.c:938:9: error: implicit declaration of function 'setsid' [-Wimplicit-function-declaration] 938 | if (setsid() == -1) | ^~~~~~ fep_main.c: At top level: fep_main.c:973:1: error: return type defaults to 'int' [-Wimplicit-int] 973 | recover_tty() | ^~~~~~~~~~~ fep_main.c:984:1: error: return type defaults to 'int' [-Wimplicit-int] 984 | suspend() | ^~~~~~~ --- fep_com.o --- fep_com.c:309:1: note: declared here 309 | set (comline) | ^~~ fep_com.c:345:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 345 | return; | ^~~~~~ fep_com.c:309:1: note: declared here 309 | set (comline) | ^~~ fep_com.c: At top level: fep_com.c:349:1: error: return type defaults to 'int' [-Wimplicit-int] 349 | unset(comline) | ^~~~~ fep_com.c: In function 'unset': --- fep_main.o --- fep_main.c: In function 'suspend': --- fep_com.o --- fep_com.c:360:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 360 | return; | ^~~~~~ fep_com.c:349:1: note: declared here 349 | unset(comline) | ^~~~~ --- fep_main.o --- fep_main.c:990:11: error: implicit declaration of function 'getpid'; did you mean 'getpw'? [-Wimplicit-function-declaration] 990 | pid = getpid (); | ^~~~~~ | getpw fep_main.c: At top level: fep_main.c:1014:1: error: return type defaults to 'int' [-Wimplicit-int] 1014 | look_cmdinfo (command) | ^~~~~~~~~~~~ fep_main.c: In function 'look_cmdinfo': fep_main.c:1021:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1021 | return; | ^~~~~~ fep_main.c:1014:1: note: declared here 1014 | look_cmdinfo (command) | ^~~~~~~~~~~~ fep_main.c: At top level: fep_main.c:1034:1: error: return type defaults to 'int' [-Wimplicit-int] 1034 | usageAndExit() | ^~~~~~~~~~~~ fep_main.c: In function 'sigwinch': --- fep_com.o --- fep_com.c:364:9: error: implicit declaration of function 'unset_var' [-Wimplicit-function-declaration] 364 | unset_var (*vp); | ^~~~~~~~~ fep_com.c: At top level: fep_com.c:386:1: error: return type defaults to 'int' [-Wimplicit-int] 386 | toggle_through() | ^~~~~~~~~~~~~~ fep_com.c: In function 'toggle_through': fep_com.c:401:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 401 | return; | ^~~~~~ fep_com.c:386:1: note: declared here 386 | toggle_through() | ^~~~~~~~~~~~~~ fep_com.c:411:20: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 411 | (void) close (slave_fd); | ^~~~~ | pclose fep_com.c:412:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 412 | return; | ^~~~~~ fep_com.c:386:1: note: declared here 386 | toggle_through() | ^~~~~~~~~~~~~~ fep_com.c:439:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 439 | return; | ^~~~~~ fep_com.c:386:1: note: declared here 386 | toggle_through() | ^~~~~~~~~~~~~~ fep_com.c: At top level: fep_com.c:448:1: error: return type defaults to 'int' [-Wimplicit-int] 448 | fix_transparency() | ^~~~~~~~~~~~~~~~ fep_com.c: In function 'fix_transparency': fep_com.c:458:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 458 | return; | ^~~~~~ --- fep_edit.o --- fep_edit.c: In function 'backward_word': --- fep_com.o --- fep_com.c:448:1: note: declared here 448 | fix_transparency() | ^~~~~~~~~~~~~~~~ fep_com.c:461:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 461 | return; | ^~~~~~ fep_com.c:448:1: note: declared here 448 | fix_transparency() | ^~~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:702:13: error: implicit declaration of function 'backward_n_word'; did you mean 'backward_word'? [-Wimplicit-function-declaration] 702 | return (backward_n_word (1)); | ^~~~~~~~~~~~~~~ | backward_word fep_edit.c: At top level: --- fep_com.o --- fep_com.c:476:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 476 | return; | ^~~~~~ --- fep_edit.o --- fep_edit.c:708:1: error: return type defaults to 'int' [-Wimplicit-int] 708 | backward_n_word (n) | ^~~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:448:1: note: declared here 448 | fix_transparency() | ^~~~~~~~~~~~~~~~ fep_com.c:498:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 498 | return; | ^~~~~~ fep_com.c:448:1: note: declared here 448 | fix_transparency() | ^~~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:760:1: error: return type defaults to 'int' [-Wimplicit-int] 760 | backward_Word () | ^~~~~~~~~~~~~ fep_edit.c: In function 'backward_Word': fep_edit.c:763:13: error: implicit declaration of function 'backward_n_Word'; did you mean 'backward_n_word'? [-Wimplicit-function-declaration] 763 | return (backward_n_Word (1)); | ^~~~~~~~~~~~~~~ | backward_n_word fep_edit.c: At top level: fep_edit.c:769:1: error: return type defaults to 'int' [-Wimplicit-int] 769 | backward_n_Word (n) | ^~~~~~~~~~~~~~~ fep_edit.c:819:1: error: return type defaults to 'int' [-Wimplicit-int] 819 | forward_character() | ^~~~~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:500:31: error: implicit declaration of function 'errorBell' [-Wimplicit-function-declaration] 500 | if (tty_fix_bell) errorBell (); | ^~~~~~~~~ --- fep_edit.o --- fep_edit.c:828:1: error: return type defaults to 'int' [-Wimplicit-int] 828 | forward_n_character(n) | ^~~~~~~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:513:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 513 | return; | ^~~~~~ fep_com.c:448:1: note: declared here 448 | fix_transparency() | ^~~~~~~~~~~~~~~~ fep_com.c:522:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 522 | return; | ^~~~~~ fep_com.c:448:1: note: declared here 448 | fix_transparency() | ^~~~~~~~~~~~~~~~ fep_com.c: At top level: --- fep_edit.o --- fep_edit.c:880:1: error: return type defaults to 'int' [-Wimplicit-int] 880 | forward_word () | ^~~~~~~~~~~~ --- fep_com.o --- fep_com.c:526:1: error: return type defaults to 'int' [-Wimplicit-int] 526 | putch (c) | ^~~~~ fep_com.c:537:1: error: return type defaults to 'int' [-Wimplicit-int] 537 | show_bindings () | ^~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c: In function 'forward_word': fep_edit.c:882:13: error: implicit declaration of function 'forward_n_word'; did you mean 'forward_word'? [-Wimplicit-function-declaration] 882 | return (forward_n_word (1)); | ^~~~~~~~~~~~~~ | forward_word fep_edit.c: At top level: fep_edit.c:888:1: error: return type defaults to 'int' [-Wimplicit-int] 888 | forward_n_word (n) | ^~~~~~~~~~~~~~ fep_edit.c:914:1: error: return type defaults to 'int' [-Wimplicit-int] 914 | forward_Word () | ^~~~~~~~~~~~ fep_edit.c: In function 'forward_Word': fep_edit.c:916:13: error: implicit declaration of function 'forward_n_Word'; did you mean 'forward_n_word'? [-Wimplicit-function-declaration] 916 | return (forward_n_Word (1)); | ^~~~~~~~~~~~~~ | forward_n_word fep_edit.c: At top level: fep_edit.c:922:1: error: return type defaults to 'int' [-Wimplicit-int] 922 | forward_n_Word (n) | ^~~~~~~~~~~~~~ --- fep_main.o --- fep_main.c:1052:25: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration] 1052 | set_var ("crt", itoa (win.ws_row)); | ^~~~ --- fep_edit.o --- fep_edit.c:948:1: error: return type defaults to 'int' [-Wimplicit-int] 948 | forward_to_end_of_word () | ^~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'forward_to_end_of_word': --- fep_com.o --- fep_com.c: In function 'show_bindings': fep_com.c:547:5: error: implicit declaration of function 'clear_edit_line' [-Wimplicit-function-declaration] 547 | clear_edit_line (); | ^~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:951:13: error: implicit declaration of function 'forward_to_end_of_n_word'; did you mean 'forward_to_end_of_word'? [-Wimplicit-function-declaration] 951 | return (forward_to_end_of_n_word (1)); | ^~~~~~~~~~~~~~~~~~~~~~~~ | forward_to_end_of_word fep_edit.c: At top level: fep_edit.c:957:1: error: return type defaults to 'int' [-Wimplicit-int] 957 | forward_to_end_of_n_word (n) | ^~~~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'forward_to_end_of_n_word': fep_edit.c:957:1: error: type of 'n' defaults to 'int' [-Wimplicit-int] fep_edit.c: At top level: fep_edit.c:984:1: error: return type defaults to 'int' [-Wimplicit-int] 984 | forward_to_end_of_Word () | ^~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'forward_to_end_of_Word': fep_edit.c:987:13: error: implicit declaration of function 'forward_to_end_of_n_Word'; did you mean 'forward_to_end_of_n_word'? [-Wimplicit-function-declaration] 987 | return (forward_to_end_of_n_Word (1)); | ^~~~~~~~~~~~~~~~~~~~~~~~ | forward_to_end_of_n_word fep_edit.c: At top level: fep_edit.c:993:1: error: return type defaults to 'int' [-Wimplicit-int] 993 | forward_to_end_of_n_Word (n) | ^~~~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'forward_to_end_of_n_Word': fep_edit.c:993:1: error: type of 'n' defaults to 'int' [-Wimplicit-int] fep_edit.c: At top level: fep_edit.c:1020:1: error: return type defaults to 'int' [-Wimplicit-int] 1020 | delete_previous_character() | ^~~~~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_previous_character': fep_edit.c:1023:13: error: implicit declaration of function 'delete_previous_n_character'; did you mean 'delete_previous_character'? [-Wimplicit-function-declaration] 1023 | return (delete_previous_n_character (1)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | delete_previous_character fep_edit.c: At top level: fep_edit.c:1029:1: error: return type defaults to 'int' [-Wimplicit-int] 1029 | delete_previous_n_character(n) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_previous_n_character': fep_edit.c:1056:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1056 | strcpy (KillBuffer, &CommandLine [CurrentPosition]); | ^~~~~~ fep_edit.c:1056:5: note: include '' or provide a declaration of 'strcpy' fep_edit.c: At top level: fep_edit.c:1076:1: error: return type defaults to 'int' [-Wimplicit-int] 1076 | delete_previous_word() | ^~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_previous_word': fep_edit.c:1079:13: error: implicit declaration of function 'delete_previous_n_word'; did you mean 'delete_previous_word'? [-Wimplicit-function-declaration] 1079 | return (delete_previous_n_word (1)); | ^~~~~~~~~~~~~~~~~~~~~~ | delete_previous_word fep_edit.c: At top level: fep_edit.c:1085:1: error: return type defaults to 'int' [-Wimplicit-int] 1085 | delete_previous_n_word(n) | ^~~~~~~~~~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:548:12: error: implicit declaration of function 'showBindingTbl' [-Wimplicit-function-declaration] 548 | (void) showBindingTbl (m, curFuncTab, ""); | ^~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:1137:1: error: return type defaults to 'int' [-Wimplicit-int] 1137 | delete_previous_Word() | ^~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_previous_Word': fep_edit.c:1140:13: error: implicit declaration of function 'delete_previous_n_Word'; did you mean 'delete_previous_n_word'? [-Wimplicit-function-declaration] 1140 | return (delete_previous_n_Word (1)); | ^~~~~~~~~~~~~~~~~~~~~~ | delete_previous_n_word fep_edit.c: At top level: fep_edit.c:1146:1: error: return type defaults to 'int' [-Wimplicit-int] 1146 | delete_previous_n_Word(n) | ^~~~~~~~~~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:549:5: error: implicit declaration of function 'recover_edit_line' [-Wimplicit-function-declaration] 549 | recover_edit_line (1); | ^~~~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:1198:1: error: return type defaults to 'int' [-Wimplicit-int] 1198 | delete_next_character () | ^~~~~~~~~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:551:5: error: implicit declaration of function 'destroy_more' [-Wimplicit-function-declaration] 551 | destroy_more(m); | ^~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:1207:1: error: return type defaults to 'int' [-Wimplicit-int] 1207 | delete_next_n_character (n) | ^~~~~~~~~~~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c: At top level: --- fep_edit.o --- fep_edit.c: In function 'delete_next_n_character': --- fep_com.o --- fep_com.c:555:1: error: return type defaults to 'int' [-Wimplicit-int] 555 | showBindingTbl (m, ft, prefix) | ^~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:1213:9: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1213 | if (strlen (&CommandLine [CurrentPosition]) < n) { | ^~~~~~ fep_edit.c:1213:9: note: include '' or provide a declaration of 'strlen' fep_edit.c:1237:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1237 | strcpy (KillBuffer, CommandLine + CurrentPosition); | ^~~~~~ fep_edit.c:1237:5: note: include '' or provide a declaration of 'strcpy' fep_edit.c: At top level: fep_edit.c:1257:1: error: return type defaults to 'int' [-Wimplicit-int] 1257 | delete_next_word () | ^~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_next_word': --- fep_com.o --- fep_com.c: In function 'showBindingTbl': fep_com.c:586:22: error: implicit declaration of function 'more' [-Wimplicit-function-declaration] 586 | if (!more(m)) | ^~~~ --- fep_edit.o --- fep_edit.c:1259:13: error: implicit declaration of function 'delete_next_n_word'; did you mean 'delete_next_word'? [-Wimplicit-function-declaration] 1259 | return (delete_next_n_word (1)); | ^~~~~~~~~~~~~~~~~~ | delete_next_word fep_edit.c: At top level: --- fep_com.o --- fep_com.c: At top level: --- fep_edit.o --- fep_edit.c:1265:1: error: return type defaults to 'int' [-Wimplicit-int] 1265 | delete_next_n_word (n) | ^~~~~~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:616:1: error: return type defaults to 'int' [-Wimplicit-int] 616 | show_help () | ^~~~~~~~~ fep_com.c: In function 'show_help': fep_com.c:623:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 623 | return; | ^~~~~~ fep_com.c:616:1: note: declared here 616 | show_help () | ^~~~~~~~~ fep_com.c:630:5: error: implicit declaration of function 'showTable' [-Wimplicit-function-declaration] 630 | showTable (m, FunctionNameTable) && | ^~~~~~~~~ --- fep_edit.o --- fep_edit.c:1291:1: error: return type defaults to 'int' [-Wimplicit-int] 1291 | delete_next_Word () | ^~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_next_Word': fep_edit.c:1293:13: error: implicit declaration of function 'delete_next_n_Word'; did you mean 'delete_next_n_word'? [-Wimplicit-function-declaration] 1293 | return (delete_next_n_Word (1)); | ^~~~~~~~~~~~~~~~~~ | delete_next_n_word fep_edit.c: At top level: --- fep_com.o --- fep_com.c:636:5: error: implicit declaration of function 'showVariables' [-Wimplicit-function-declaration] 636 | showVariables (m); | ^~~~~~~~~~~~~ fep_com.c: At top level: fep_com.c:641:1: error: return type defaults to 'int' [-Wimplicit-int] 641 | showTable (m, fnte) | ^~~~~~~~~ --- fep_edit.o --- fep_edit.c:1299:1: error: return type defaults to 'int' [-Wimplicit-int] 1299 | delete_next_n_Word (n) | ^~~~~~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:659:1: error: return type defaults to 'int' [-Wimplicit-int] 659 | showVariables (m) | ^~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:1325:1: error: return type defaults to 'int' [-Wimplicit-int] 1325 | delete_line() | ^~~~~~~~~~~ --- fep_com.o --- fep_com.c:699:1: error: return type defaults to 'int' [-Wimplicit-int] 699 | destroy_more(mp) | ^~~~~~~~~~~~ fep_com.c:706:1: error: return type defaults to 'int' [-Wimplicit-int] 706 | more (mp) | ^~~~ --- fep_edit.o --- fep_edit.c: In function 'delete_line': --- fep_com.o --- fep_com.c: In function 'more': fep_com.c:720:17: error: implicit declaration of function 'getcharacter' [-Wimplicit-function-declaration] 720 | switch (getcharacter()) { | ^~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:1338:9: error: implicit declaration of function 'repeat_string'; did you mean 'insert_string'? [-Wimplicit-function-declaration] 1338 | repeat_string ("\b \b", len); | ^~~~~~~~~~~~~ | insert_string fep_edit.c:1351:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1351 | strcpy (KillBuffer, CommandLine); | ^~~~~~ fep_edit.c:1351:5: note: include '' or provide a declaration of 'strcpy' fep_edit.c: At top level: fep_edit.c:1360:1: error: return type defaults to 'int' [-Wimplicit-int] 1360 | kill_to_top_of_line() | ^~~~~~~~~~~~~~~~~~~ fep_edit.c:1371:1: error: return type defaults to 'int' [-Wimplicit-int] 1371 | kill_to_end_of_line() | ^~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'kill_to_end_of_line': fep_edit.c:1389:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1389 | strcpy (KillBuffer, CommandLine + CurrentPosition); | ^~~~~~ fep_edit.c:1389:5: note: include '' or provide a declaration of 'strcpy' fep_edit.c: At top level: fep_edit.c:1397:1: error: return type defaults to 'int' [-Wimplicit-int] 1397 | insert_tab() | ^~~~~~~~~~ --- fep_com.o --- fep_com.c:741:9: error: implicit declaration of function 'tputs'; did you mean 'puts'? [-Wimplicit-function-declaration] 741 | tputs (term_clear, 1, putch); | ^~~~~ | puts --- fep_edit.o --- fep_edit.c:1407:1: error: return type defaults to 'int' [-Wimplicit-int] 1407 | new_line() | ^~~~~~~~ --- fep_com.o --- fep_com.c: At top level: --- fep_main.o --- *** [fep_main.o] Error code 1 bmake: stopped making "all" in /home/pbulk/build/misc/fep/work --- fep_edit.o --- fep_edit.c:1421:1: error: return type defaults to 'int' [-Wimplicit-int] 1421 | is_tol() | ^~~~~~ --- fep_com.o --- fep_com.c:749:1: error: return type defaults to 'int' [-Wimplicit-int] 749 | fep_chdir (line) | ^~~~~~~~~ --- fep_edit.o --- fep_edit.c:1429:1: error: return type defaults to 'int' [-Wimplicit-int] 1429 | is_eol() | ^~~~~~ --- fep_com.o --- fep_com.c: In function 'fep_chdir': fep_com.c:767:17: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 767 | return; | ^~~~~~ --- fep_edit.o --- fep_edit.c:1437:1: error: return type defaults to 'int' [-Wimplicit-int] 1437 | refer_history() | ^~~~~~~~~~~~~ fep_edit.c: In function 'refer_history': --- fep_com.o --- fep_com.c:749:1: note: declared here 749 | fep_chdir (line) | ^~~~~~~~~ fep_com.c:783:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 783 | return; | ^~~~~~ --- fep_edit.o --- fep_edit.c:1446:16: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1446 | (void) strcpy (CommandLine, his); | ^~~~~~ --- fep_com.o --- fep_com.c:749:1: note: declared here 749 | fep_chdir (line) | ^~~~~~~~~ --- fep_edit.o --- fep_edit.c:1446:16: note: include '' or provide a declaration of 'strcpy' fep_edit.c:1447:27: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1447 | CurrentPosition = strlen (CommandLine); | ^~~~~~ fep_edit.c:1447:27: note: include '' or provide a declaration of 'strlen' --- fep_com.o --- fep_com.c:787:13: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 787 | return; | ^~~~~~ fep_com.c:749:1: note: declared here 749 | fep_chdir (line) | ^~~~~~~~~ fep_com.c:794:9: error: implicit declaration of function 'chdir' [-Wimplicit-function-declaration] 794 | if (chdir (argv[1]) < 0) { | ^~~~~ --- fep_edit.o --- fep_edit.c:1452:16: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1452 | (void) strcpy (CommandLine, ""); | ^~~~~~ fep_edit.c:1452:16: note: include '' or provide a declaration of 'strcpy' --- fep_com.o --- fep_com.c:796:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 796 | return; | ^~~~~~ fep_com.c:749:1: note: declared here 749 | fep_chdir (line) | ^~~~~~~~~ fep_com.c: At top level: fep_com.c:800:1: error: return type defaults to 'int' [-Wimplicit-int] 800 | fep_pwd (line) | ^~~~~~~ fep_com.c:809:1: error: return type defaults to 'int' [-Wimplicit-int] 809 | fep_echo (comline) | ^~~~~~~~ fep_com.c:849:1: error: return type defaults to 'int' [-Wimplicit-int] 849 | fep_command (comline) | ^~~~~~~~~~~ fep_com.c: In function 'fep_command': fep_com.c:862:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 862 | return; | ^~~~~~ fep_com.c:849:1: note: declared here 849 | fep_command (comline) | ^~~~~~~~~~~ fep_com.c:865:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 865 | strcpy (buf, ""); | ^~~~~~ fep_com.c:865:5: note: include '' or provide a declaration of 'strcpy' fep_com.c:867:9: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 867 | strcat (buf, argv[i]); | ^~~~~~ fep_com.c:867:9: note: include '' or provide a declaration of 'strcat' fep_com.c:867:9: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] fep_com.c:867:9: note: include '' or provide a declaration of 'strcat' fep_com.c:871:5: error: implicit declaration of function 'invoke_command'; did you mean 'is_same_command'? [-Wimplicit-function-declaration] 871 | invoke_command (buf); | ^~~~~~~~~~~~~~ | is_same_command fep_com.c: At top level: --- fep_edit.o --- fep_edit.c:1456:5: error: implicit declaration of function 'print_com_line' [-Wimplicit-function-declaration] 1456 | print_com_line (); | ^~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:874:1: error: return type defaults to 'int' [-Wimplicit-int] 874 | fep_source (comline) | ^~~~~~~~~~ fep_com.c: In function 'fep_source': --- fep_edit.o --- fep_edit.c: At top level: --- fep_com.o --- fep_com.c:886:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 886 | return; | ^~~~~~ --- fep_edit.o --- fep_edit.c:1463:1: error: return type defaults to 'int' [-Wimplicit-int] 1463 | search_reverse () | ^~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:874:1: note: declared here 874 | fep_source (comline) | ^~~~~~~~~~ fep_com.c:889:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 889 | strcpy (file, argv[1]); | ^~~~~~ fep_com.c:889:5: note: include '' or provide a declaration of 'strcpy' fep_com.c:890:5: error: implicit declaration of function 'source_file' [-Wimplicit-function-declaration] 890 | source_file (file); | ^~~~~~~~~~~ fep_com.c:892:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 892 | return; | ^~~~~~ fep_com.c:874:1: note: declared here 874 | fep_source (comline) | ^~~~~~~~~~ fep_com.c: At top level: fep_com.c:895:1: error: return type defaults to 'int' [-Wimplicit-int] 895 | sourceRcFile () | ^~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c: In function 'search_reverse': --- fep_com.o --- fep_com.c: In function 'sourceRcFile': --- fep_edit.o --- fep_edit.c:1465:13: error: implicit declaration of function 'search_history' [-Wimplicit-function-declaration] 1465 | return (search_history (REVERSE)); | ^~~~~~~~~~~~~~ fep_edit.c: At top level: fep_edit.c:1468:1: error: return type defaults to 'int' [-Wimplicit-int] 1468 | search_forward () | ^~~~~~~~~~~~~~ fep_edit.c:1473:1: error: return type defaults to 'int' [-Wimplicit-int] 1473 | search_history (direct) | ^~~~~~~~~~~~~~ In file included from fep_edit.c:31: fep_edit.c: In function 'search_history': --- fep_com.o --- fep_com.c:902:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 902 | return; | ^~~~~~ --- fep_edit.o --- fep_defs.h:26:26: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 26 | #define eq(a,b) (strcmp(a,b) == 0) | ^~~~~~ fep_edit.c:1486:13: note: in expansion of macro 'eq' 1486 | if (eq (his, CommandLine)) | ^~ --- fep_com.o --- fep_com.c:895:1: note: declared here 895 | sourceRcFile () | ^~~~~~~~~~~~ fep_com.c:904:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 904 | strcpy (filename, home); | ^~~~~~ fep_com.c:904:5: note: include '' or provide a declaration of 'strcpy' --- fep_edit.o --- fep_defs.h:26:26: note: include '' or provide a declaration of 'strcmp' 26 | #define eq(a,b) (strcmp(a,b) == 0) | ^~~~~~ fep_edit.c:1486:13: note: in expansion of macro 'eq' 1486 | if (eq (his, CommandLine)) | ^~ --- fep_com.o --- fep_com.c:905:5: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 905 | strcat (filename, "/.feprc"); | ^~~~~~ fep_com.c:905:5: note: include '' or provide a declaration of 'strcat' fep_com.c:920:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 920 | return; | ^~~~~~ --- fep_edit.o --- fep_edit.c:1491:27: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1491 | CurrentPosition = strlen (CommandLine); | ^~~~~~ fep_edit.c:1491:27: note: include '' or provide a declaration of 'strlen' --- fep_com.o --- fep_com.c:895:1: note: declared here 895 | sourceRcFile () | ^~~~~~~~~~~~ fep_com.c: At top level: fep_com.c:923:1: error: return type defaults to 'int' [-Wimplicit-int] 923 | source_file (file) | ^~~~~~~~~~~ fep_com.c: In function 'source_file': fep_com.c:932:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 932 | return; | ^~~~~~ fep_com.c:923:1: note: declared here 923 | source_file (file) | ^~~~~~~~~~~ fep_com.c:942:13: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 942 | strcpy (line2, "fep-"); | ^~~~~~ fep_com.c:942:13: note: include '' or provide a declaration of 'strcpy' fep_com.c:943:13: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 943 | strcat (line2, cp); | ^~~~~~ fep_com.c:943:13: note: include '' or provide a declaration of 'strcat' fep_com.c:952:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 952 | return; | ^~~~~~ fep_com.c:923:1: note: declared here 923 | source_file (file) | ^~~~~~~~~~~ fep_com.c: At top level: fep_com.c:964:1: error: return type defaults to 'int' [-Wimplicit-int] 964 | condition () | ^~~~~~~~~ --- fep_edit.o --- fep_edit.c:1501:20: error: implicit declaration of function 'clear_edit_line' [-Wimplicit-function-declaration] 1501 | (void) clear_edit_line (); | ^~~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:1025:1: error: return type defaults to 'int' [-Wimplicit-int] 1025 | invoke_shell () | ^~~~~~~~~~~~ fep_com.c:1035:1: error: return type defaults to 'int' [-Wimplicit-int] 1035 | invoke_command (cmd) | ^~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:1503:20: error: implicit declaration of function 'recover_edit_line' [-Wimplicit-function-declaration] 1503 | (void) recover_edit_line (1); | ^~~~~~~~~~~~~~~~~ fep_edit.c: At top level: fep_edit.c:1514:1: error: return type defaults to 'int' [-Wimplicit-int] 1514 | insert_and_flush(c) | ^~~~~~~~~~~~~~~~ fep_edit.c:1525:1: error: return type defaults to 'int' [-Wimplicit-int] 1525 | send_eof() | ^~~~~~~~ --- fep_com.o --- fep_com.c: In function 'invoke_command': --- fep_edit.o --- fep_edit.c:1544:1: error: return type defaults to 'int' [-Wimplicit-int] 1544 | alarm_on_eof () | ^~~~~~~~~~~~ --- fep_com.o --- fep_com.c:1045:5: error: implicit declaration of function 'recover_tty' [-Wimplicit-function-declaration] 1045 | recover_tty(); | ^~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:1556:1: error: return type defaults to 'int' [-Wimplicit-int] 1556 | clear_screen() | ^~~~~~~~~~~~ fep_edit.c:1576:1: error: return type defaults to 'int' [-Wimplicit-int] 1576 | next_history() | ^~~~~~~~~~~~ --- fep_com.o --- fep_com.c:1046:5: error: implicit declaration of function 'recover_signal' [-Wimplicit-function-declaration] 1046 | recover_signal (); | ^~~~~~~~~~~~~~ fep_com.c:1048:5: error: implicit declaration of function 'fix_signal' [-Wimplicit-function-declaration] 1048 | fix_signal (); | ^~~~~~~~~~ --- fep_edit.o --- fep_edit.c: In function 'next_history': fep_edit.c:1578:13: error: implicit declaration of function 'serv_history'; did you mean 'search_history'? [-Wimplicit-function-declaration] 1578 | return (serv_history (HOP_REPLACE, HDIR_NEXT)); | ^~~~~~~~~~~~ | search_history fep_edit.c: At top level: --- fep_com.o --- fep_com.c:1049:5: error: implicit declaration of function 'fix_tty' [-Wimplicit-function-declaration] 1049 | fix_tty(); | ^~~~~~~ --- fep_edit.o --- fep_edit.c:1584:1: error: return type defaults to 'int' [-Wimplicit-int] 1584 | previous_history() | ^~~~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c: At top level: --- fep_edit.o --- fep_edit.c:1592:1: error: return type defaults to 'int' [-Wimplicit-int] 1592 | insert_current_history() | ^~~~~~~~~~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:1058:1: error: return type defaults to 'int' [-Wimplicit-int] 1058 | fep_read_from_file (comline) | ^~~~~~~~~~~~~~~~~~ fep_com.c: In function 'fep_read_from_file': --- fep_edit.o --- fep_edit.c:1600:1: error: return type defaults to 'int' [-Wimplicit-int] 1600 | insert_next_history() | ^~~~~~~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:1070:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1070 | return; | ^~~~~~ fep_com.c:1058:1: note: declared here 1058 | fep_read_from_file (comline) | ^~~~~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:1608:1: error: return type defaults to 'int' [-Wimplicit-int] 1608 | insert_previous_history() | ^~~~~~~~~~~~~~~~~~~~~~~ fep_edit.c:1616:1: error: return type defaults to 'int' [-Wimplicit-int] 1616 | serv_history(op, dir) | ^~~~~~~~~~~~ --- fep_com.o --- fep_com.c:1089:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1089 | return; | ^~~~~~ fep_com.c:1058:1: note: declared here 1058 | fep_read_from_file (comline) | ^~~~~~~~~~~~~~~~~~ fep_com.c: At top level: fep_com.c:1097:1: error: return type defaults to 'int' [-Wimplicit-int] 1097 | fep_read_from_command (comline) | ^~~~~~~~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:1645:1: error: return type defaults to 'int' [-Wimplicit-int] 1645 | show_history() | ^~~~~~~~~~~~ --- fep_com.o --- fep_com.c: In function 'fep_read_from_command': fep_com.c:1110:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1110 | return; | ^~~~~~ fep_com.c:1097:1: note: declared here 1097 | fep_read_from_command (comline) | ^~~~~~~~~~~~~~~~~~~~~ fep_com.c:1118:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1118 | strcpy (buf, ""); | ^~~~~~ fep_com.c:1118:5: note: include '' or provide a declaration of 'strcpy' fep_com.c:1120:9: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] 1120 | strcat (buf, argv[i]); | ^~~~~~ fep_com.c:1120:9: note: include '' or provide a declaration of 'strcat' fep_com.c:1133:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1133 | return; | ^~~~~~ fep_com.c:1097:1: note: declared here 1097 | fep_read_from_command (comline) | ^~~~~~~~~~~~~~~~~~~~~ fep_com.c: At top level: fep_com.c:1138:1: error: return type defaults to 'int' [-Wimplicit-int] 1138 | fep_start_script (comline) | ^~~~~~~~~~~~~~~~ fep_com.c: In function 'fep_start_script': fep_com.c:1177:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1177 | return; | ^~~~~~ fep_com.c:1138:1: note: declared here 1138 | fep_start_script (comline) | ^~~~~~~~~~~~~~~~ fep_com.c:1184:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1184 | return; | ^~~~~~ fep_com.c:1138:1: note: declared here 1138 | fep_start_script (comline) | ^~~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c: In function 'show_history': fep_edit.c:1649:5: error: implicit declaration of function 'hist_showHistory' [-Wimplicit-function-declaration] 1649 | hist_showHistory (lookd_var ("showhist")); | ^~~~~~~~~~~~~~~~ fep_edit.c:1649:23: error: implicit declaration of function 'lookd_var'; did you mean 'look_var'? [-Wimplicit-function-declaration] 1649 | hist_showHistory (lookd_var ("showhist")); | ^~~~~~~~~ | look_var fep_edit.c: At top level: fep_edit.c:1656:1: error: return type defaults to 'int' [-Wimplicit-int] 1656 | ignore() | ^~~~~~ fep_edit.c:1664:1: error: return type defaults to 'int' [-Wimplicit-int] 1664 | literal_next() | ^~~~~~~~~~~~ fep_edit.c:1673:1: error: return type defaults to 'int' [-Wimplicit-int] 1673 | reprint() | ^~~~~~~ --- fep_com.o --- fep_com.c:1191:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1191 | return; | ^~~~~~ --- fep_edit.o --- fep_edit.c:1684:1: error: return type defaults to 'int' [-Wimplicit-int] 1684 | print_com_line() | ^~~~~~~~~~~~~~ --- fep_com.o --- fep_com.c:1138:1: note: declared here 1138 | fep_start_script (comline) | ^~~~~~~~~~~~~~~~ fep_com.c:1194:5: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 1194 | strncpy (script_file, name, sizeof (script_file)); | ^~~~~~~ fep_com.c:1194:5: note: include '' or provide a declaration of 'strncpy' fep_com.c:1194:5: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] fep_com.c:1194:5: note: include '' or provide a declaration of 'strncpy' --- fep_edit.o --- fep_edit.c:1697:1: error: return type defaults to 'int' [-Wimplicit-int] 1697 | howlong(s, n) | ^~~~~~~ --- fep_com.o --- fep_com.c: At top level: fep_com.c:1201:1: error: return type defaults to 'int' [-Wimplicit-int] 1201 | fep_end_script () | ^~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:1718:1: error: return type defaults to 'int' [-Wimplicit-int] 1718 | repeat(c, n) | ^~~~~~ fep_edit.c:1729:1: error: return type defaults to 'int' [-Wimplicit-int] 1729 | repeat_string(s, n) | ^~~~~~~~~~~~~ fep_edit.c:1740:1: error: return type defaults to 'int' [-Wimplicit-int] 1740 | expand_file_name () | ^~~~~~~~~~~~~~~~ fep_edit.c: In function 'expand_file_name': fep_edit.c:1756:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1756 | strcpy (line, CommandLine); | ^~~~~~ fep_edit.c:1756:5: note: include '' or provide a declaration of 'strcpy' fep_edit.c:1762:9: error: implicit declaration of function 'any' [-Wimplicit-function-declaration] 1762 | if (any ('/', cp)) { | ^~~ --- fep_com.o --- fep_com.c: In function 'fep_end_script': --- fep_edit.o --- fep_edit.c:1783:13: error: implicit declaration of function 'prefix'; did you mean 'profil'? [-Wimplicit-function-declaration] 1783 | if (prefix (cp, dp->d_name)) { | ^~~~~~ | profil fep_edit.c:1789:27: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1789 | fcp = malloc (strlen (dp->d_name) + 1); | ^~~~~~ fep_edit.c:1789:27: note: include '' or provide a declaration of 'strlen' --- fep_com.o --- fep_com.c:1207:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1207 | return; | ^~~~~~ fep_com.c:1201:1: note: declared here 1201 | fep_end_script () | ^~~~~~~~~~~~~~ fep_com.c:1217:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1217 | return; | ^~~~~~ --- fep_edit.o --- fep_edit.c:1825:49: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1825 | (void) insert_string (fileList[0] + strlen (cp)); | ^~~~~~ fep_edit.c:1825:49: note: include '' or provide a declaration of 'strlen' --- fep_com.o --- fep_com.c:1201:1: note: declared here 1201 | fep_end_script () | ^~~~~~~~~~~~~~ fep_com.c: At top level: --- fep_edit.o --- fep_edit.c: At top level: --- fep_com.o --- fep_com.c:1220:1: error: return type defaults to 'int' [-Wimplicit-int] 1220 | fep_repaint(comline) | ^~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:1860:1: error: return type defaults to 'int' [-Wimplicit-int] 1860 | list_file_name () | ^~~~~~~~~~~~~~ fep_edit.c: In function 'list_file_name': fep_edit.c:1894:16: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1894 | (void) strcpy (dir, cp); | ^~~~~~ fep_edit.c:1894:16: note: include '' or provide a declaration of 'strcpy' --- fep_com.o --- fep_com.c:1282:1: error: return type defaults to 'int' [-Wimplicit-int] 1282 | view_buffer (comline) | ^~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:1899:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1899 | strcpy (dir, "."); | ^~~~~~ fep_edit.c:1899:9: note: include '' or provide a declaration of 'strcpy' fep_edit.c:1908:5: error: implicit declaration of function 'ls'; did you mean 'labs'? [-Wimplicit-function-declaration] 1908 | ls (dirp, cp); | ^~ | labs fep_edit.c: At top level: fep_edit.c:1917:1: error: return type defaults to 'int' [-Wimplicit-int] 1917 | clear_edit_line () | ^~~~~~~~~~~~~~~ fep_edit.c: In function 'clear_edit_line': fep_edit.c:1921:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1921 | return; | ^~~~~~ fep_edit.c:1917:1: note: declared here 1917 | clear_edit_line () | ^~~~~~~~~~~~~~~ fep_edit.c: At top level: fep_edit.c:1928:1: error: return type defaults to 'int' [-Wimplicit-int] 1928 | recover_edit_line (put_prompt) | ^~~~~~~~~~~~~~~~~ fep_edit.c: In function 'recover_edit_line': fep_edit.c:1933:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1933 | return; | ^~~~~~ fep_edit.c:1928:1: note: declared here 1928 | recover_edit_line (put_prompt) | ^~~~~~~~~~~~~~~~~ fep_edit.c:1936:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1936 | return; | ^~~~~~ fep_edit.c:1928:1: note: declared here 1928 | recover_edit_line (put_prompt) | ^~~~~~~~~~~~~~~~~ fep_edit.c: At top level: fep_edit.c:1949:1: error: return type defaults to 'int' [-Wimplicit-int] 1949 | ls (dirp, prefixstring) | ^~ fep_edit.c: In function 'ls': fep_edit.c:1980:27: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1980 | fcp = malloc (strlen (dp->d_name) + 1); | ^~~~~~ fep_edit.c:1980:27: note: include '' or provide a declaration of 'strlen' fep_edit.c:1988:13: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1988 | strcpy (fcp, dp->d_name); | ^~~~~~ fep_edit.c:1988:13: note: include '' or provide a declaration of 'strcpy' fep_edit.c:2026:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 2026 | return; | ^~~~~~ fep_edit.c:1949:1: note: declared here 1949 | ls (dirp, prefixstring) | ^~ fep_edit.c: At top level: fep_edit.c:2074:1: error: return type defaults to 'int' [-Wimplicit-int] 2074 | bind_key (ft, func, s, dfunc) | ^~~~~~~~ fep_edit.c: In function 'bind_key': fep_edit.c:2084:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 2084 | strcpy (&tmps[1], &s[3]); | ^~~~~~ fep_edit.c:2084:9: note: include '' or provide a declaration of 'strcpy' --- fep_com.o --- *** [fep_com.o] Error code 1 bmake: stopped making "all" in /home/pbulk/build/misc/fep/work --- fep_edit.o --- *** [fep_edit.o] Error code 1 bmake: stopped making "all" in /home/pbulk/build/misc/fep/work bmake: 4 errors bmake: stopped making "all" in /home/pbulk/build/misc/fep/work *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/fep *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/fep