It compiled, but with errors?

Posted by Nonentitydragon on Mon 06 Nov 2006 02:35 AM — 10 posts, 36,795 views.

#0
This is SMAUG 1.4a MXP.
I use Linux Ubuntu Edgy Eft 6.10.


make smaug
make[1]: Entering directory `/home/zero/smaug/dist/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_move.c
act_move.c:393:15: warning: trigraph ??> ignored, use -trigraphs to enable
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_obj.c
act_obj.c: In function ‘can_layer’:
act_obj.c:1389: warning: suggest explicit braces to avoid ambiguous ‘else’
act_obj.c: In function ‘do_auction’:
act_obj.c:2651: warning: suggest explicit braces to avoid ambiguous ‘else’
act_obj.c:2675: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_wiz.c
act_wiz.c:1637:22: warning: trigraph ??! ignored, use -trigraphs to enable
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG boards.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG build.c
build.c: In function ‘fold_area’:
build.c:6058: warning: suggest explicit braces to avoid ambiguous ‘else’
build.c:6061: warning: suggest explicit braces to avoid ambiguous ‘else’
build.c:6064: warning: suggest explicit braces to avoid ambiguous ‘else’
build.c:6070: warning: suggest explicit braces to avoid ambiguous ‘else’
build.c:6075: warning: suggest explicit braces to avoid ambiguous ‘else’
build.c:6078: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG clans.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG comm.c
comm.c: In function ‘turn_on_mxp’:
comm.c:359: warning: pointer targets in passing argument 2 of ‘write_to_buffer’ differ in signedness
comm.c: In function ‘new_descriptor’:
comm.c:883: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness
comm.c: In function ‘read_from_buffer’:
comm.c:1221: warning: pointer targets in assignment differ in signedness
comm.c:1224: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c:1228: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c:1228: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c:1228: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c:1231: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c:1235: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c:1235: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c:1235: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c: In function ‘flush_buffer’:
comm.c:1384: warning: pointer targets in passing argument 2 of ‘write_to_buffer’ differ in signedness
comm.c: In function ‘nanny’:
comm.c:1877: warning: pointer targets in passing argument 2 of ‘write_to_buffer’ differ in signedness
comm.c:1911: warning: pointer targets in passing argument 2 of ‘write_to_buffer’ differ in signedness
comm.c:1953: warning: pointer targets in passing argument 2 of ‘write_to_buffer’ differ in signedness
comm.c:2060: warning: pointer targets in passing argument 2 of ‘write_to_buffer’ differ in signedness
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG comments.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG const.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG db.c
db.c: In function ‘load_resets’:
db.c:1594: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG deity.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG fight.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG handler.c
handler.c: In function ‘get_eq_char’:
handler.c:1335: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG hashstr.c
#1
Rest of the log:

gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG ibuild.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG ident.c
ident.c: In function ‘set_auth’:
ident.c:311: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness
ident.c:316: warning: pointer targets in passing argument 3 of ‘getpeername’ differ in signedness
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG interp.c
interp.c: In function ‘interpret’:
interp.c:758: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘__time_t’
interp.c:758: warning: format ‘%06d’ expects type ‘int’, but argument 8 has type ‘__suseconds_t’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG magic.c
magic.c: In function ‘process_spell_components’:
magic.c:985: warning: suggest explicit braces to avoid ambiguous ‘else’
magic.c:1003: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG makeobjs.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mapout.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG misc.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mpxset.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mud_comm.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mud_prog.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG player.c
player.c:1024:12: warning: trigraph ??) ignored, use -trigraphs to enable
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG polymorph.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG requests.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG reset.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG save.c
save.c: In function ‘fwrite_obj’:
save.c:583: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
save.c:585: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
save.c:587: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
save.c:589: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
save.c: In function ‘fwrite_mobile’:
save.c:2295: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
save.c:2297: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
save.c:2299: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
save.c:2301: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG shops.c
shops.c: In function ‘appraise_all’:
shops.c:1090: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG skills.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG special.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG tables.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG track.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG update.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG grub.c
grub.c:23: warning: conflicting types for built-in function ‘trunc’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG stat_obj.c
stat_obj.c:147:13: warning: extra tokens at end of #undef directive
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG ban.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG services.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG planes.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG imm_host.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG colorize.c
colorize.c: In function ‘load_colors’:
colorize.c:39: warning: implicit declaration of function ‘strcpy’
colorize.c:39: warning: incompatible implicit declaration of built-in function ‘strcpy’
rm -f smaug
gcc -o smaug act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o build.o clans.o comm.o comments.o const.o db.o deity.o fight.o handler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o mapout.o misc.o mpxset.o mud_comm.o mud_prog.o player.o polymorph.o requests.o reset.o save.o shops.o skills.o special.o tables.o track.o update.o grub.o stat_obj.o ban.o services.o planes.o imm_host.o colorize.o
chmod g+w smaug
chmod a+x smaug
chmod g+w act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o build.o clans.o comm.o comments.o const.o db.o deity.o fight.o handler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o mapout.o misc.o mpxset.o mud_comm.o mud_prog.o player.o polymorph.o requests.o reset.o save.o shops.o skills.o special.o tables.o track.o update.o grub.o stat_obj.o ban.o services.o planes.o imm_host.o colorize.o
make[1]: Leaving directory `/home/zero/smaug/dist/src'


I'm not sure if the errors are harmless or not.
USA #2
Those are warnings, not errors. It will run with them, but is better to fix the warnings I suppose.

Why not use FUSS though?
#3
Thanks, I just realized that they are warnings :P

I have FUSS, and it runs and compiles very nicely, but I have this problem with it not letting me make new areas...aassign is the only assign that works. Unless of course I messed up somewhere?
USA #4
You should be using vassign.
#5
OMG I am dumb, thanks it works. Now my problems are solved :) thanks again
USA #6
I'm guessing that the use of vassign needs to be more widely published :)
USA #7
It sure does sound that way. :(
Maybe in the stock codebase the helpfiles and command.dat entries for aasign should be removed/rewritten to refer to vassign for primary use?
#8
hey i'm compiling rom on 6.10 and i'm getting some of the same warnings. these specifically:

comm.c:944: warning: pointer targets in passing argument 3 of âgetsocknameâ differ in signedness
comm.c:945: warning: pointer targets in passing argument 3 of âacceptâ differ in signedness
comm.c:981: warning: pointer targets in passing argument 3 of âgetpeernameâ differ in signedness

any idea on how to fix those?
USA #9
Wrong section.

And once again, those are only warnings. It should still compile.