=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/games/moria", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for moria-5.5.2nb7 --- main.o --- --- misc1.o --- --- main.o --- cc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -Dunix -DLIBDIR=\"/opt/pkg/share/games/moria\" -DMORIA_TOP=\"/var/opt/pkg/games/moria.scores\" -c main.c --- misc1.o --- cc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -I/opt/pkg/include/ncurses -Dunix -DLIBDIR=\"/opt/pkg/share/games/moria\" -DMORIA_TOP=\"/var/opt/pkg/games/moria.scores\" -c misc1.c misc1.c:32:8: error: conflicting types for 'time'; have 'time_t(void)' {aka 'long int(void)'} 32 | time_t time(); | ^~~~ In file included from /usr/include/time.h:40, from /usr/include/sys/time.h:490, from /usr/include/sys/select.h:53, from /usr/include/sys/types.h:687, from /usr/include/sys/stat.h:35, from config.h:15, from misc1.c:9: /usr/include/iso/time_iso.h:100:15: note: previous declaration of 'time' with type 'time_t(time_t *)' {aka 'long int(long int *)'} 100 | extern time_t time(time_t *); | ^~~~ misc1.c:34:12: error: conflicting types for 'localtime'; have 'struct tm *(void)' 34 | struct tm *localtime(); | ^~~~~~~~~ /usr/include/iso/time_iso.h:98:19: note: previous declaration of 'localtime' with type 'struct tm *(const time_t *)' {aka 'struct tm *(const long int *)'} 98 | extern struct tm *localtime(const time_t *); | ^~~~~~~~~ misc1.c: In function 'init_seeds': misc1.c:42:6: warning: old-style function definition [-Wold-style-definition] 42 | void init_seeds(seed) | ^~~~~~~~~~ misc1.c:44:1: error: number of arguments doesn't match prototype 44 | { | ^ In file included from misc1.c:12: externs.h:876:6: error: prototype declaration 876 | void init_seeds(); | ^~~~~~~~~~ misc1.c:51:17: error: too many arguments to function 'time'; expected 0, have 1 51 | clock_var = time((time_t *)0); | ^~~~ ~~~~~~~~~~~ misc1.c:32:8: note: declared here 32 | time_t time(); | ^~~~ misc1.c:61:3: error: too many arguments to function 'set_rnd_seed'; expected 0, have 1 61 | set_rnd_seed(clock_var); | ^~~~~~~~~~~~ ~~~~~~~~~ externs.h:1107:6: note: declared here 1107 | void set_rnd_seed(); | ^~~~~~~~~~~~ misc1.c:63:20: error: too many arguments to function 'randint'; expected 0, have 1 63 | for (clock_var = randint(100); clock_var != 0; clock_var--) | ^~~~~~~ ~~~ externs.h:880:5: note: declared here 880 | int randint(); | ^~~~~~~ misc1.c: In function 'set_seed': misc1.c:71:6: warning: old-style function definition [-Wold-style-definition] 71 | void set_seed(seed) | ^~~~~~~~ misc1.c:73:1: error: number of arguments doesn't match prototype 73 | { | ^ externs.h:877:6: error: prototype declaration 877 | void set_seed(); | ^~~~~~~~ --- main.o --- main.c:95:8: error: conflicting types for 'time'; have 'time_t(void)' {aka 'long int(void)'} 95 | time_t time(); | ^~~~ --- misc1.o --- misc1.c:77:3: error: too many arguments to function 'set_rnd_seed'; expected 0, have 1 77 | set_rnd_seed (seed); | ^~~~~~~~~~~~ ~~~~ externs.h:1107:6: note: declared here 1107 | void set_rnd_seed(); | ^~~~~~~~~~~~ misc1.c: In function 'reset_seed': misc1.c:84:3: error: too many arguments to function 'set_rnd_seed'; expected 0, have 1 84 | set_rnd_seed (old_seed); | ^~~~~~~~~~~~ ~~~~~~~~ externs.h:1107:6: note: declared here 1107 | void set_rnd_seed(); | ^~~~~~~~~~~~ --- main.o --- In file included from /usr/include/time.h:40, from /usr/include/sys/time.h:490, from /usr/include/sys/select.h:53, from /usr/include/sys/types.h:687, from /usr/include/sys/stat.h:35, from config.h:15, from main.c:63: /usr/include/iso/time_iso.h:100:15: note: previous declaration of 'time' with type 'time_t(time_t *)' {aka 'long int(long int *)'} 100 | extern time_t time(time_t *); | ^~~~ main.c:98:7: error: conflicting types for 'getenv'; have 'char *(void)' 98 | char *getenv(); | ^~~~~~ --- misc1.o --- misc1.c: In function 'check_time': misc1.c:98:15: error: too many arguments to function 'time'; expected 0, have 1 98 | clock_var = time((time_t *)0); | ^~~~ ~~~~~~~~~~~ misc1.c:32:8: note: declared here 32 | time_t time(); | ^~~~ --- main.o --- In file included from /usr/include/stdlib.h:41, from config.h:19: /usr/include/iso/stdlib_iso.h:139:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 139 | extern char *getenv(const char *); | ^~~~~~ --- misc1.o --- misc1.c:100:8: error: too many arguments to function 'localtime'; expected 0, have 1 100 | tp = localtime((time_t *)&clock_var); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ misc1.c:34:12: note: declared here 34 | struct tm *localtime(); | ^~~~~~~~~ --- main.o --- main.c: In function 'main': main.c:188:5: warning: old-style function definition [-Wold-style-definition] 188 | int main(argc, argv) | ^~~~ --- misc1.o --- misc1.c: In function 'randint': --- main.o --- main.c:192:1: error: number of arguments doesn't match prototype 192 | { | ^ --- misc1.o --- misc1.c:112:5: warning: old-style function definition [-Wold-style-definition] 112 | int randint(maxval) | ^~~~~~~ misc1.c:114:1: error: number of arguments doesn't match prototype 114 | { | ^ externs.h:880:5: error: prototype declaration 880 | int randint(); | ^~~~~~~ misc1.c: In function 'randnor': misc1.c:122:5: warning: old-style function definition [-Wold-style-definition] 122 | int randnor(mean, stand) | ^~~~~~~ misc1.c:124:1: error: number of arguments doesn't match prototype 124 | { | ^ externs.h:881:5: error: prototype declaration 881 | int randnor(); | ^~~~~~~ --- main.o --- In file included from main.c:66: externs.h:873:5: error: prototype declaration 873 | int main(); | ^~~~ --- misc1.o --- misc1.c:135:9: error: too many arguments to function 'randint'; expected 0, have 1 135 | tmp = randint(MAX_SHORT); | ^~~~~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:140:28: error: too many arguments to function 'randint'; expected 0, have 1 140 | offset = 4 * stand + randint(stand); | ^~~~~~~ ~~~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:143:11: error: too many arguments to function 'randint'; expected 0, have 1 143 | if (randint(2) == 1) | ^~~~~~~ ~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:179:7: error: too many arguments to function 'randint'; expected 0, have 1 179 | if (randint(2) == 1) | ^~~~~~~ ~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c: In function 'bit_pos': misc1.c:188:5: warning: old-style function definition [-Wold-style-definition] 188 | int bit_pos(test) | ^~~~~~~ misc1.c:190:1: error: number of arguments doesn't match prototype 190 | { | ^ externs.h:882:5: error: prototype declaration 882 | int bit_pos(); | ^~~~~~~ misc1.c: In function 'in_bounds': misc1.c:207:5: warning: old-style function definition [-Wold-style-definition] 207 | int in_bounds(y, x) | ^~~~~~~~~ misc1.c:209:1: error: number of arguments doesn't match prototype 209 | { | ^ externs.h:883:5: error: prototype declaration 883 | int in_bounds(); | ^~~~~~~~~ --- main.o --- main.c:270:17: error: too many arguments to function 'display_scores'; expected 0, have 1 270 | case 'S': display_scores(TRUE); exit_game(); | ^~~~~~~~~~~~~~ externs.h:783:6: note: declared here 783 | void display_scores(); | ^~~~~~~~~~~~~~ --- misc1.o --- misc1.c: In function 'get_panel': misc1.c:232:5: warning: old-style function definition [-Wold-style-definition] 232 | int get_panel(y, x, force) | ^~~~~~~~~ misc1.c:234:1: error: number of arguments doesn't match prototype 234 | { | ^ --- main.o --- main.c:271:17: error: too many arguments to function 'display_scores'; expected 0, have 1 271 | case 's': display_scores(FALSE); exit_game(); | ^~~~~~~~~~~~~~ externs.h:783:6: note: declared here 783 | void display_scores(); | ^~~~~~~~~~~~~~ --- misc1.o --- externs.h:885:5: error: prototype declaration 885 | int get_panel(); | ^~~~~~~~~ --- main.o --- main.c:298:3: error: too many arguments to function 'init_seeds'; expected 0, have 1 298 | init_seeds(seed); | ^~~~~~~~~~ ~~~~ externs.h:876:6: note: declared here 876 | void init_seeds(); | ^~~~~~~~~~ --- misc1.o --- misc1.c: In function 'panel_contains': misc1.c:274:5: warning: old-style function definition [-Wold-style-definition] 274 | int panel_contains(y, x) | ^~~~~~~~~~~~~~ misc1.c:276:1: error: number of arguments doesn't match prototype 276 | { | ^ --- main.o --- main.c:315:17: error: too many arguments to function 'getenv'; expected 0, have 1 315 | else if ((p = getenv("MORIA_SAV")) != CNIL) | ^~~~~~ ~~~~~~~~~~~ --- misc1.o --- externs.h:886:5: error: prototype declaration 886 | int panel_contains(); | ^~~~~~~~~~~~~~ --- main.o --- main.c:98:7: note: declared here 98 | char *getenv(); | ^~~~~~ main.c:317:17: error: too many arguments to function 'getenv'; expected 0, have 1 317 | else if ((p = getenv("HOME")) != CNIL) | ^~~~~~ ~~~~~~ --- misc1.o --- misc1.c: In function 'distance': misc1.c:286:5: warning: old-style function definition [-Wold-style-definition] 286 | int distance(y1, x1, y2, x2) | ^~~~~~~~ --- main.o --- main.c:98:7: note: declared here 98 | char *getenv(); | ^~~~~~ --- misc1.o --- misc1.c:288:1: error: number of arguments doesn't match prototype 288 | { | ^ externs.h:887:5: error: prototype declaration 887 | int distance(); | ^~~~~~~~ --- main.o --- main.c:340:54: error: too many arguments to function 'get_char'; expected 0, have 1 340 | if ((new_game == FALSE) && !access(savefile, 0) && get_char(&generate)) | ^~~~~~~~ ~~~~~~~~~ --- misc1.o --- misc1.c: In function 'next_to_walls': --- main.o --- externs.h:1113:5: note: declared here 1113 | int get_char(); | ^~~~~~~~ --- misc1.o --- misc1.c:304:5: warning: old-style function definition [-Wold-style-definition] 304 | int next_to_walls(y, x) | ^~~~~~~~~~~~~ misc1.c:306:1: error: number of arguments doesn't match prototype 306 | { | ^ externs.h:888:5: error: prototype declaration 888 | int next_to_walls(); | ^~~~~~~~~~~~~ misc1.c: In function 'next_to_corr': --- main.o --- main.c:364:20: error: too many arguments to function 'time'; expected 0, have 1 364 | birth_date = time ((time_t *)0); | ^~~~ ~~~~~~~~~~~ --- misc1.o --- misc1.c:331:5: warning: old-style function definition [-Wold-style-definition] 331 | int next_to_corr(y, x) | ^~~~~~~~~~~~ misc1.c:333:1: error: number of arguments doesn't match prototype 333 | { | ^ externs.h:889:5: error: prototype declaration 889 | int next_to_corr(); | ^~~~~~~~~~~~ --- main.o --- main.c:95:8: note: declared here 95 | time_t time(); | ^~~~ main.c:372:11: error: too many arguments to function 'calc_spells'; expected 0, have 1 372 | calc_spells(A_INT); | ^~~~~~~~~~~ --- misc1.o --- misc1.c: In function 'damroll': misc1.c:352:5: warning: old-style function definition [-Wold-style-definition] 352 | int damroll(num, sides) | ^~~~~~~ --- main.o --- externs.h:980:6: note: declared here 980 | void calc_spells(); | ^~~~~~~~~~~ --- misc1.o --- misc1.c:354:1: error: number of arguments doesn't match prototype 354 | { | ^ externs.h:890:5: error: prototype declaration 890 | int damroll(); | ^~~~~~~ --- main.o --- main.c:373:11: error: too many arguments to function 'calc_mana'; expected 0, have 1 373 | calc_mana(A_INT); | ^~~~~~~~~ externs.h:982:6: note: declared here 982 | void calc_mana(); | ^~~~~~~~~ --- misc1.o --- misc1.c:358:12: error: too many arguments to function 'randint'; expected 0, have 1 358 | sum += randint(sides); | ^~~~~~~ ~~~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ --- main.o --- main.c:377:11: error: too many arguments to function 'calc_spells'; expected 0, have 1 377 | calc_spells(A_WIS); | ^~~~~~~~~~~ externs.h:980:6: note: declared here 980 | void calc_spells(); | ^~~~~~~~~~~ main.c:379:11: error: too many arguments to function 'calc_mana'; expected 0, have 1 379 | calc_mana(A_WIS); | ^~~~~~~~~ externs.h:982:6: note: declared here 982 | void calc_mana(); | ^~~~~~~~~ --- misc1.o --- misc1.c: In function 'pdamroll': misc1.c:362:5: warning: old-style function definition [-Wold-style-definition] 362 | int pdamroll(array) | ^~~~~~~~ misc1.c:364:1: error: number of arguments doesn't match prototype 364 | { | ^ externs.h:891:5: error: prototype declaration 891 | int pdamroll(); | ^~~~~~~~ misc1.c:365:10: error: too many arguments to function 'damroll'; expected 0, have 2 365 | return damroll((int)array[0], (int)array[1]); | ^~~~~~~ ~~~~~~~~~~~~~ misc1.c:352:5: note: declared here 352 | int damroll(num, sides) | ^~~~~~~ misc1.c: In function 'los': misc1.c:385:5: warning: old-style function definition [-Wold-style-definition] 385 | int los(fromY, fromX, toY, toX) | ^~~ misc1.c:387:1: error: number of arguments doesn't match prototype 387 | { | ^ externs.h:892:5: error: prototype declaration 892 | int los(); | ^~~ --- main.o --- main.c: In function 'char_inven_init': main.c:435:5: error: too many arguments to function 'invcopy'; expected 0, have 2 435 | invcopy(&inventory[i], OBJ_NOTHING); | ^~~~~~~ ~~~~~~~~~~~~~ externs.h:804:6: note: declared here 804 | void invcopy(); | ^~~~~~~ main.c:440:7: error: too many arguments to function 'invcopy'; expected 0, have 2 440 | invcopy(&inven_init, j); | ^~~~~~~ ~~~~~~~~~~~ externs.h:804:6: note: declared here 804 | void invcopy(); | ^~~~~~~ main.c:442:7: error: too many arguments to function 'store_bought'; expected 0, have 1 442 | store_bought(&inven_init); | ^~~~~~~~~~~~ ~~~~~~~~~~~ externs.h:798:6: note: declared here 798 | void store_bought(); | ^~~~~~~~~~~~ main.c:446:14: error: too many arguments to function 'inven_carry'; expected 0, have 1 446 | (void) inven_carry(&inven_init); | ^~~~~~~~~~~ ~~~~~~~~~~~ externs.h:976:5: note: declared here 976 | int inven_carry(); | ^~~~~~~~~~~ --- misc1.o --- misc1.c: In function 'loc_symbol': misc1.c:545:15: warning: old-style function definition [-Wold-style-definition] 545 | unsigned char loc_symbol(y, x) | ^~~~~~~~~~ misc1.c:547:1: error: number of arguments doesn't match prototype 547 | { | ^ externs.h:893:15: error: prototype declaration 893 | unsigned char loc_symbol(); | ^~~~~~~~~~ misc1.c:558:35: error: too many arguments to function 'randint'; expected 0, have 1 558 | else if ((f_ptr->image > 0) && (randint (12) == 1)) | ^~~~~~~ ~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:559:12: error: too many arguments to function 'randint'; expected 0, have 1 559 | return randint (95) + 31; | ^~~~~~~ ~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c: In function 'test_light': misc1.c:597:5: warning: old-style function definition [-Wold-style-definition] 597 | int test_light(y, x) | ^~~~~~~~~~ misc1.c:599:1: error: number of arguments doesn't match prototype 599 | { | ^ externs.h:894:5: error: prototype declaration 894 | int test_light(); | ^~~~~~~~~~ misc1.c: In function 'prt_map': misc1.c:620:7: error: too many arguments to function 'erase_line'; expected 0, have 2 620 | erase_line (k, 13); | ^~~~~~~~~~ ~ externs.h:850:6: note: declared here 850 | void erase_line(); | ^~~~~~~~~~ misc1.c:623:22: error: too many arguments to function 'loc_symbol'; expected 0, have 2 623 | tmp_char = loc_symbol(i, j); | ^~~~~~~~~~ ~ misc1.c:545:15: note: declared here 545 | unsigned char loc_symbol(y, x) | ^~~~~~~~~~ misc1.c:625:13: error: too many arguments to function 'print'; expected 0, have 3 625 | print(tmp_char, i, j); | ^~~~~ ~~~~~~~~ externs.h:853:6: note: declared here 853 | void print(); | ^~~~~ misc1.c: In function 'compact_monsters': misc1.c:643:3: error: too many arguments to function 'msg_print'; expected 0, have 1 643 | msg_print("Compacting monsters..."); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ externs.h:858:6: note: declared here 858 | void msg_print(); | ^~~~~~~~~ misc1.c:652:45: error: too many arguments to function 'randint'; expected 0, have 1 652 | if ((cur_dis < mon_ptr->cdis) && (randint(3) == 1)) | ^~~~~~~ ~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:667:19: error: too many arguments to function 'delete_monster'; expected 0, have 1 667 | delete_monster(i); | ^~~~~~~~~~~~~~ ~ externs.h:1047:6: note: declared here 1047 | void delete_monster(); | ^~~~~~~~~~~~~~ misc1.c:673:17: error: too many arguments to function 'fix1_delete_monster'; expected 0, have 1 673 | fix1_delete_monster(i); | ^~~~~~~~~~~~~~~~~~~ ~ externs.h:1048:6: note: declared here 1048 | void fix1_delete_monster(); | ^~~~~~~~~~~~~~~~~~~ misc1.c: In function 'add_food': misc1.c:690:6: warning: old-style function definition [-Wold-style-definition] 690 | void add_food(num) | ^~~~~~~~ misc1.c:692:1: error: number of arguments doesn't match prototype 692 | { | ^ externs.h:897:6: error: prototype declaration 897 | void add_food(); | ^~~~~~~~ misc1.c:701:7: error: too many arguments to function 'msg_print'; expected 0, have 1 701 | msg_print("You are bloated from overeating."); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ externs.h:858:6: note: declared here 858 | void msg_print(); | ^~~~~~~~~ misc1.c:718:5: error: too many arguments to function 'msg_print'; expected 0, have 1 718 | msg_print("You are full."); | ^~~~~~~~~ ~~~~~~~~~~~~~~~ externs.h:858:6: note: declared here 858 | void msg_print(); | ^~~~~~~~~ misc1.c: In function 'max_hp': misc1.c:736:5: warning: old-style function definition [-Wold-style-definition] 736 | int max_hp(array) | ^~~~~~ misc1.c:738:1: error: number of arguments doesn't match prototype 738 | { | ^ externs.h:899:5: error: prototype declaration 899 | int max_hp(); | ^~~~~~ misc1.c: In function 'place_monster': misc1.c:744:5: warning: old-style function definition [-Wold-style-definition] 744 | int place_monster(y, x, z, slp) | ^~~~~~~~~~~~~ misc1.c:747:1: error: number of arguments doesn't match prototype 747 | { | ^ externs.h:900:5: error: prototype declaration 900 | int place_monster(); | ^~~~~~~~~~~~~ misc1.c:759:19: error: too many arguments to function 'max_hp'; expected 0, have 1 759 | mon_ptr->hp = max_hp(c_list[z].hd); | ^~~~~~ ~~~~~~~~~~~~ misc1.c:736:5: note: declared here 736 | int max_hp(array) | ^~~~~~ misc1.c:761:19: error: too many arguments to function 'pdamroll'; expected 0, have 1 761 | mon_ptr->hp = pdamroll(c_list[z].hd); | ^~~~~~~~ ~~~~~~~~~~~~ misc1.c:362:5: note: declared here 362 | int pdamroll(array) | ^~~~~~~~ misc1.c:765:19: error: too many arguments to function 'distance'; expected 0, have 4 765 | mon_ptr->cdis = distance(char_row, char_col,y,x); | ^~~~~~~~ ~~~~~~~~ misc1.c:286:5: note: declared here 286 | int distance(y1, x1, y2, x2) | ^~~~~~~~ misc1.c:774:11: error: too many arguments to function 'randint'; expected 0, have 1 774 | randint((int)c_list[z].sleep*10); | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c: In function 'place_win_monster': misc1.c:798:15: error: too many arguments to function 'randint'; expected 0, have 1 798 | y = randint(cur_height-2); | ^~~~~~~ ~~~~~~~~~~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:799:15: error: too many arguments to function 'randint'; expected 0, have 1 799 | x = randint(cur_width-2); | ^~~~~~~ ~~~~~~~~~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:803:16: error: too many arguments to function 'distance'; expected 0, have 4 803 | (distance(y,x,char_row, char_col) <= MAX_SIGHT)); | ^~~~~~~~ ~ misc1.c:286:5: note: declared here 286 | int distance(y1, x1, y2, x2) | ^~~~~~~~ misc1.c:806:23: error: too many arguments to function 'randint'; expected 0, have 1 806 | mon_ptr->mptr = randint(WIN_MON_TOT) - 1 + m_level[MAX_MONS_LEVEL]; | ^~~~~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:808:23: error: too many arguments to function 'max_hp'; expected 0, have 1 808 | mon_ptr->hp = max_hp(c_list[mon_ptr->mptr].hd); | ^~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ misc1.c:736:5: note: declared here 736 | int max_hp(array) | ^~~~~~ misc1.c:810:23: error: too many arguments to function 'pdamroll'; expected 0, have 1 810 | mon_ptr->hp = pdamroll(c_list[mon_ptr->mptr].hd); | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ misc1.c:362:5: note: declared here 362 | int pdamroll(array) | ^~~~~~~~ misc1.c:814:23: error: too many arguments to function 'distance'; expected 0, have 4 814 | mon_ptr->cdis = distance(char_row, char_col,y,x); | ^~~~~~~~ ~~~~~~~~ misc1.c:286:5: note: declared here 286 | int distance(y1, x1, y2, x2) | ^~~~~~~~ misc1.c: In function 'get_mons_num': misc1.c:824:5: warning: old-style function definition [-Wold-style-definition] 824 | int get_mons_num (level) | ^~~~~~~~~~~~ misc1.c:826:1: error: number of arguments doesn't match prototype 826 | { | ^ externs.h:902:5: error: prototype declaration 902 | int get_mons_num(); | ^~~~~~~~~~~~ misc1.c:830:9: error: too many arguments to function 'randint'; expected 0, have 1 830 | i = randint (m_level[0]) - 1; | ^~~~~~~ ~~~~~~~~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:835:11: error: too many arguments to function 'randint'; expected 0, have 1 835 | if (randint (MON_NASTY) == 1) | ^~~~~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:837:15: error: too many arguments to function 'randnor'; expected 0, have 2 837 | i = randnor (0, 4); | ^~~~~~~ ~ misc1.c:122:5: note: declared here 122 | int randnor(mean, stand) | ^~~~~~~ misc1.c:851:15: error: too many arguments to function 'randint'; expected 0, have 1 851 | i = randint (num) - 1; | ^~~~~~~ ~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:852:15: error: too many arguments to function 'randint'; expected 0, have 1 852 | j = randint (num) - 1; | ^~~~~~~ ~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:857:11: error: too many arguments to function 'randint'; expected 0, have 1 857 | i = randint(m_level[level]-m_level[level-1]) - 1 + m_level[level-1]; | ^~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c: In function 'alloc_monster': misc1.c:864:6: warning: old-style function definition [-Wold-style-definition] 864 | void alloc_monster(num, dis, slp) | ^~~~~~~~~~~~~ misc1.c:867:1: error: number of arguments doesn't match prototype 867 | { | ^ externs.h:903:6: error: prototype declaration 903 | void alloc_monster(); | ^~~~~~~~~~~~~ misc1.c:875:15: error: too many arguments to function 'randint'; expected 0, have 1 875 | y = randint(cur_height-2); | ^~~~~~~ ~~~~~~~~~~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:876:15: error: too many arguments to function 'randint'; expected 0, have 1 876 | x = randint(cur_width-2); | ^~~~~~~ ~~~~~~~~~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:879:15: error: too many arguments to function 'distance'; expected 0, have 4 879 | (distance(y, x, char_row, char_col) <= dis)); | ^~~~~~~~ ~ misc1.c:286:5: note: declared here 286 | int distance(y1, x1, y2, x2) | ^~~~~~~~ misc1.c:881:11: error: too many arguments to function 'get_mons_num'; expected 0, have 1 881 | l = get_mons_num (dun_level); | ^~~~~~~~~~~~ ~~~~~~~~~ misc1.c:824:5: note: declared here 824 | int get_mons_num (level) | ^~~~~~~~~~~~ misc1.c:888:14: error: too many arguments to function 'place_monster'; expected 0, have 4 888 | (void) place_monster(y, x, l, slp); | ^~~~~~~~~~~~~ ~ misc1.c:744:5: note: declared here 744 | int place_monster(y, x, z, slp) | ^~~~~~~~~~~~~ misc1.c: In function 'summon_monster': misc1.c:894:5: warning: old-style function definition [-Wold-style-definition] 894 | int summon_monster(y, x, slp) | ^~~~~~~~~~~~~~ misc1.c:897:1: error: number of arguments doesn't match prototype 897 | { | ^ externs.h:904:5: error: prototype declaration 904 | int summon_monster(); | ^~~~~~~~~~~~~~ misc1.c:904:7: error: too many arguments to function 'get_mons_num'; expected 0, have 1 904 | l = get_mons_num (dun_level + MON_SUMMON_ADJ); | ^~~~~~~~~~~~ misc1.c:824:5: note: declared here 824 | int get_mons_num (level) | ^~~~~~~~~~~~ misc1.c:907:20: error: too many arguments to function 'randint'; expected 0, have 1 907 | j = *y - 2 + randint(3); | ^~~~~~~ ~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:908:20: error: too many arguments to function 'randint'; expected 0, have 1 908 | k = *x - 2 + randint(3); | ^~~~~~~ ~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:909:11: error: too many arguments to function 'in_bounds'; expected 0, have 2 909 | if (in_bounds(j, k)) | ^~~~~~~~~ ~ misc1.c:207:5: note: declared here 207 | int in_bounds(y, x) | ^~~~~~~~~ misc1.c:915:20: error: too many arguments to function 'place_monster'; expected 0, have 4 915 | if (!place_monster(j, k, l, slp)) | ^~~~~~~~~~~~~ ~ misc1.c:744:5: note: declared here 744 | int place_monster(y, x, z, slp) | ^~~~~~~~~~~~~ misc1.c: In function 'summon_undead': misc1.c:931:5: warning: old-style function definition [-Wold-style-definition] 931 | int summon_undead(y, x) | ^~~~~~~~~~~~~ misc1.c:933:1: error: number of arguments doesn't match prototype 933 | { | ^ externs.h:905:5: error: prototype declaration 905 | int summon_undead(); | ^~~~~~~~~~~~~ misc1.c:943:11: error: too many arguments to function 'randint'; expected 0, have 1 943 | m = randint(l) - 1; | ^~~~~~~ ~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:966:20: error: too many arguments to function 'randint'; expected 0, have 1 966 | j = *y - 2 + randint(3); | ^~~~~~~ ~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:967:20: error: too many arguments to function 'randint'; expected 0, have 1 967 | k = *x - 2 + randint(3); | ^~~~~~~ ~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:968:11: error: too many arguments to function 'in_bounds'; expected 0, have 2 968 | if (in_bounds(j, k)) | ^~~~~~~~~ ~ misc1.c:207:5: note: declared here 207 | int in_bounds(y, x) | ^~~~~~~~~ misc1.c:974:21: error: too many arguments to function 'place_monster'; expected 0, have 4 974 | if (! place_monster(j, k, m, FALSE)) | ^~~~~~~~~~~~~ ~ misc1.c:744:5: note: declared here 744 | int place_monster(y, x, z, slp) | ^~~~~~~~~~~~~ misc1.c: In function 'compact_objects': misc1.c:996:3: error: too many arguments to function 'msg_print'; expected 0, have 1 996 | msg_print("Compacting objects..."); | ^~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~ externs.h:858:6: note: declared here 858 | void msg_print(); | ^~~~~~~~~ misc1.c:1007:21: error: too many arguments to function 'distance'; expected 0, have 4 1007 | && (distance(i, j, char_row, char_col) > cur_dis)) | ^~~~~~~~ ~ misc1.c:286:5: note: declared here 286 | int distance(y1, x1, y2, x2) | ^~~~~~~~ misc1.c:1031:21: error: too many arguments to function 'randint'; expected 0, have 1 1031 | if (randint (100) <= chance) | ^~~~~~~ ~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c:1033:28: error: too many arguments to function 'delete_object'; expected 0, have 2 1033 | (void) delete_object(i, j); | ^~~~~~~~~~~~~ ~ externs.h:1050:5: note: declared here 1050 | int delete_object(); | ^~~~~~~~~~~~~ misc1.c: In function 'pusht': misc1.c:1056:6: warning: old-style function definition [-Wold-style-definition] 1056 | void pusht(x) | ^~~~~ misc1.c:1058:1: error: number of arguments doesn't match prototype 1058 | { | ^ externs.h:907:6: error: prototype declaration 907 | void pusht(); | ^~~~~ misc1.c:1072:3: error: too many arguments to function 'invcopy'; expected 0, have 2 1072 | invcopy(&t_list[tcptr], OBJ_NOTHING); | ^~~~~~~ ~~~~~~~~~~~~~~ externs.h:804:6: note: declared here 804 | void invcopy(); | ^~~~~~~ misc1.c: In function 'magik': misc1.c:1077:5: warning: old-style function definition [-Wold-style-definition] 1077 | int magik(chance) | ^~~~~ misc1.c:1079:1: error: number of arguments doesn't match prototype 1079 | { | ^ externs.h:908:5: error: prototype declaration 908 | int magik(); | ^~~~~ misc1.c:1080:7: error: too many arguments to function 'randint'; expected 0, have 1 1080 | if (randint(100) <= chance) | ^~~~~~~ ~~~ misc1.c:112:5: note: declared here 112 | int randint(maxval) | ^~~~~~~ misc1.c: In function 'm_bonus': misc1.c:1088:5: warning: old-style function definition [-Wold-style-definition] 1088 | int m_bonus(base, max_std, level) | ^~~~~~~ misc1.c:1090:1: error: number of arguments doesn't match prototype 1090 | { | ^ externs.h:909:5: error: prototype declaration 909 | int m_bonus(); | ^~~~~~~ misc1.c:1098:9: error: too many arguments to function 'randnor'; expected 0, have 2 1098 | tmp = randnor(0, stand_dev); | ^~~~~~~ ~ misc1.c:122:5: note: declared here 122 | int randnor(mean, stand) | ^~~~~~~ --- main.o --- *** [main.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/games/moria/work/umoria --- misc1.o --- *** [misc1.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/games/moria/work/umoria bmake: 2 errors bmake: stopped making "all" in /home/pbulk/work/games/moria/work/umoria *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/games/moria *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/games/moria