Ah. Well, here's the completion of the saga so far:
First, I added the #ifdef USE_TRANSPARENCY around map_info in cave.c, to change the number of args properly.
Then I took, IIRC, static off of wiz_create_itemtype in wizards2.c, to match externs.h.
Finally, I added chuukei.c/o to the list of source files and object files in Makefile.std.
And, naturally, I played around with commenting and uncommenting a few of the different sections, to try compiling as, say, xaw, x11, and ncurses.
It now compiles. It hangs immediately after running the executable, but it compiles. (the x11 or xaw window never comes up, ncurses doesn't draw anything, and gcu clears the screen and sits with a blank screen). Too much voodoo, perhaps...
Note, I was using make -f Makefile.std simply because the main make file seemed to be broken.
I'm not sure it prepared anything beyond that.
As far as the warnings go, a lot are, yeah, but there are others. Some arguments probably just need to be recast, etc. Here's the warnings, for reference:
Code:
lux src # make -f Makefile.std
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o z-util.o z-util.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o z-virt.o z-virt.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o z-form.o z-form.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o z-rand.o z-rand.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o z-term.o z-term.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o variable.o variable.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o tables.o tables.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o util.o util.c
util.c: In function 'quarks_free':
util.c:1919: warning: value computed is not used
util.c: In function 'messages_free':
util.c:2312: warning: value computed is not used
util.c:2313: warning: value computed is not used
util.c:2314: warning: value computed is not used
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o cave.o cave.c
cave.c: In function 'prt_path':
cave.c:1443: warning: unused variable 'tc'
cave.c:1442: warning: unused variable 'ta'
cave.c: In function 'cave_set_feat':
cave.c:3538: warning: suggest parentheses around && within ||
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o object1.o object1.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o object2.o object2.c
object2.c: In function 'compact_objects_aux':
object2.c:389: warning: value computed is not used
object2.c: In function 'object_copy':
object2.c:1512: warning: value computed is not used
object2.c: In function 'inven_item_optimize':
object2.c:3751: warning: value computed is not used
object2.c: In function 'combine_pack':
object2.c:4308: warning: value computed is not used
object2.c: In function 'inven_takeoff':
object2.c:20: warning: 'mechmax' may be used uninitialized in this function
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o monster1.o monster1.c
monster1.c: In function 'roff_aux':
monster1.c:166: warning: value computed is not used
monster1.c:1376: warning: value computed is not used
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o monster2.o monster2.c
monster2.c: In function 'compact_monsters_aux':
monster2.c:146: warning: value computed is not used
monster2.c: In function 'monster_place':
monster2.c:1412: warning: value computed is not used
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o xtra1.o xtra1.c
xtra1.c: In function 'calc_bonuses':
xtra1.c:2197: warning: unused variable 'r_ptr'
xtra1.c: In function 'prt_hp':
xtra1.c:463: warning: 'mechmax' may be used uninitialized in this function
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o xtra2.o xtra2.c
xtra2.c:3965: warning: 'target_set_interactive_accept_monster' defined but not used
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o spells1.o spells1.c
spells1.c: In function 'take_hit':
spells1.c:455: warning: unused variable 'old_c_meter'
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o spells2.o spells2.c
spells2.c:3923:2: warning: no newline at end of file
spells2.c: In function 'do_cmd_cook':
spells2.c:1773: warning: 'o_ptr' may be used uninitialized in this function
spells2.c:1774: warning: 'o_ptr2' may be used uninitialized in this function
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o melee1.o melee1.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o melee2.o melee2.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o save.o save.c
save.c:1181:2: warning: "/*" within comment
save.c:1182:2: warning: "/*" within comment
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o files.o files.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o cmd1.o cmd1.c
cmd1.c: In function 'py_attack':
cmd1.c:1864: warning: unused variable 'dir'
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o cmd2.o cmd2.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o cmd3.o cmd3.c
cmd3.c: In function 'do_cmd_query_symbol':
cmd3.c:1560: warning: value computed is not used
cmd3.c:1594: warning: value computed is not used
cmd3.c:1694: warning: value computed is not used
cmd3.c: In function 'do_cmd_wield':
cmd3.c:19: warning: 'mechmax' may be used uninitialized in this function
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o cmd4.o cmd4.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o cmd5.o cmd5.c
cmd5.c: In function 'do_cmd_study_chi_warrior':
cmd5.c:361: warning: unused variable 'p'
cmd5.c: In function 'do_cmd_ninjutsu':
cmd5.c:1434: warning: unused variable 'px'
cmd5.c:1433: warning: unused variable 'py'
cmd5.c: In function 'do_cmd_intrinsic':
cmd5.c:3469: warning: unused variable 'redraw'
cmd5.c:3468: warning: unused variable 'flag'
cmd5.c:3457: warning: unused variable 'px'
cmd5.c:3456: warning: unused variable 'py'
cmd5.c:4301:4: warning: "/*" within comment
cmd5.c: In function 'do_cmd_chi_power':
cmd5.c:4880: warning: unused variable 'redraw'
cmd5.c:4879: warning: unused variable 'flag'
cmd5.c: In function 'do_cmd_mimic_cast':
cmd5.c:5333: warning: unused variable 'redraw'
cmd5.c:5332: warning: unused variable 'flag'
cmd5.c:5317: warning: unused variable 'px'
cmd5.c:5316: warning: unused variable 'py'
cmd5.c: In function 'do_cmd_mknight':
cmd5.c:6069: warning: unused variable 'redraw'
cmd5.c:6068: warning: unused variable 'flag'
cmd5.c:5991: warning: unused variable 'px'
cmd5.c:5990: warning: unused variable 'py'
cmd5.c: In function 'do_cmd_sentai_power':
cmd5.c:6564: warning: unused variable 'plev'
cmd5.c:6561: warning: unused variable 'redraw'
cmd5.c:6560: warning: unused variable 'flag'
cmd5.c: In function 'do_cmd_power':
cmd5.c:6931: warning: unused variable 'redraw'
cmd5.c:6930: warning: unused variable 'flag'
cmd5.c:6901: warning: unused variable 'px'
cmd5.c:6900: warning: unused variable 'py'
cmd5.c: In function 'do_cmd_mecha':
cmd5.c:7145: warning: unused variable 'plev'
cmd5.c:7142: warning: unused variable 'redraw'
cmd5.c:7141: warning: unused variable 'flag'
cmd5.c:7123: warning: unused variable 'px'
cmd5.c:7122: warning: unused variable 'py'
cmd5.c:7792:4: warning: "/*" within comment
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o cmd6.o cmd6.c
cmd6.c: In function 'do_cmd_read_scroll':
cmd6.c:1429: warning: 'mechmax' may be used uninitialized in this function
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o store.o store.c
store.c: In function 'handle_special_store':
store.c:989: warning: unused variable 'o_ptr'
store.c:2285:3: warning: "/*" within comment
store.c: In function 'store_request_item':
store.c:4504: warning: unused variable 'px'
store.c:4503: warning: unused variable 'py'
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o birth.o birth.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o load2.o load2.c
load2.c:1543:2: warning: "/*" within comment
load2.c:1544:2: warning: "/*" within comment
load2.c: In function 'rd_extra':
load2.c:1637: warning: pointer targets in passing argument 1 of 'rd_byte' differ in signedness
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o wizard1.o wizard1.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o wizard2.o wizard2.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o generate.o generate.c
generate.c: In function 'town_gen':
generate.c:4878: warning: unused variable 'a'
generate.c: In function 'wilderness_gen':
generate.c:1185: warning: 'daytime' may be used uninitialized in this function
generate.c:813: warning: 'py' may be used uninitialized in this function
generate.c:812: warning: 'px' may be used uninitialized in this function
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o dungeon.o dungeon.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o init1.o init1.c
init1.c: In function 'parse_c_info':
init1.c:2996: warning: format '%d' expects type 'int *', but argument 3 has type 'byte_hack *'
init1.c:2996: warning: format '%d' expects type 'int *', but argument 4 has type 'byte_hack *'
init1.c:2996: warning: format '%d' expects type 'int *', but argument 5 has type 'byte_hack *'
init1.c:2996: warning: format '%d' expects type 'int *', but argument 6 has type 'byte_hack *'
init1.c:2996: warning: format '%d' expects type 'int *', but argument 7 has type 'byte_hack *'
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o init2.o init2.c
init2.c: In function 'init_info_raw':
init2.c:318: warning: value computed is not used
init2.c: In function 'free_info':
init2.c:607: warning: value computed is not used
init2.c:610: warning: value computed is not used
init2.c:613: warning: value computed is not used
init2.c: In function 'init_angband':
init2.c:1868: warning: format '%d' expects type 'int', but argument 3 has type 'long int'
init2.c: In function 'cleanup_angband':
init2.c:2026: warning: value computed is not used
init2.c:2027: warning: value computed is not used
init2.c:2039: warning: value computed is not used
init2.c:2040: warning: value computed is not used
init2.c:2041: warning: value computed is not used
init2.c:2052: warning: value computed is not used
init2.c:2058: warning: value computed is not used
init2.c:2063: warning: value computed is not used
init2.c:2066: warning: value computed is not used
init2.c:2069: warning: value computed is not used
init2.c:2072: warning: value computed is not used
init2.c:2073: warning: value computed is not used
init2.c:2074: warning: value computed is not used
init2.c:2080: warning: value computed is not used
init2.c:2081: warning: value computed is not used
init2.c:2086: warning: value computed is not used
init2.c:2087: warning: value computed is not used
init2.c:2088: warning: value computed is not used
init2.c:2089: warning: value computed is not used
init2.c:2092: warning: value computed is not used
init2.c:2095: warning: value computed is not used
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o randart.o randart.c
randart.c: In function 'init_names':
randart.c:827: warning: value computed is not used
randart.c: In function 'scramble':
randart.c:2103: warning: value computed is not used
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o chuukei.o chuukei.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o main-cap.o main-cap.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o main-gcu.o main-gcu.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o main-x11.o main-x11.c
main-x11.c: In function 'init_x11':
main-x11.c:2469: warning: assignment from incompatible pointer type
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o main-xaw.o main-xaw.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o main.o main.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -c -o maid-x11.o maid-x11.c
gcc -I/usr/include/ncurses -Wall -O2 -fno-strength-reduce -fomit-frame-pointer -D"USE_X11" -D"USE_GCU" -D"USE_TPOSIX" -D"USE_CURS_SET" -s -o angband z-util.o z-virt.o z-form.o z-rand.o z-term.o variable.o tables.o util.o cave.o object1.o object2.o monster1.o monster2.o xtra1.o xtra2.o spells1.o spells2.o melee1.o melee2.o save.o files.o cmd1.o cmd2.o cmd3.o cmd4.o cmd5.o cmd6.o store.o birth.o load2.o wizard1.o wizard2.o generate.o dungeon.o init1.o init2.o randart.o chuukei.o main-cap.o main-gcu.o main-x11.o main-xaw.o main.o maid-x11.o -lX11 -lncurses
util.o: In function `my_fopen_temp':
util.c:(.text+0x2f56): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
And sorry if I sort of hijacked the thread with compilation issues. I'm sure people that actually can play the game would like to comment on it, as well...
--Shanoah