Compiling SMAUG 1.6 w/ reroll code (error + warnings)

Posted by Dralnu on Thu 08 Sep 2005 06:47 AM — 5 posts, 21,819 views.

USA #0
make -s smaug
  Compiling o/comm.o....
comm.c: In function `nanny':
comm.c:2319: warning: declaration of `check_parse_name' shadows a global declaration
comm.c:119: warning: shadowed declaration is here
comm.c:2382: warning: declaration of `d' shadows a parameter
comm.c:1501: warning: shadowed declaration is here
comm.c:2383: warning: declaration of `check_reconnect' shadows a global declaration
comm.c:120: warning: shadowed declaration is here
comm.c: In function `check_reconnect':
comm.c:2384: warning: declaration of `ch' shadows a previous local
comm.c:1507: warning: shadowed declaration is here
comm.c: In function `nanny':
comm.c:2439: warning: declaration of `d' shadows a parameter
comm.c:1501: warning: shadowed declaration is here
comm.c:2440: warning: declaration of `check_playing' shadows a global declaration
comm.c:121: warning: shadowed declaration is here
comm.c: In function `check_playing':
comm.c:2441: warning: declaration of `ch' shadows a previous local
comm.c:1507: warning: shadowed declaration is here
comm.c: In function `nanny':
comm.c:2504: warning: declaration of `ch' shadows a previous local
comm.c:1507: warning: shadowed declaration is here
comm.c:2505: warning: declaration of `stop_idling' shadows a global declaration
comm.c:126: warning: shadowed declaration is here
comm.c:2547: warning: declaration of `myobj' shadows a global declaration
mud.h:4364: warning: shadowed declaration is here
comm.c:2561: warning: declaration of `obj_short' shadows a global declaration
mud.h:4280: warning: shadowed declaration is here
comm.c: In function `obj_short':
comm.c:2562: warning: declaration of `buf' shadows a previous local
comm.c:1505: warning: shadowed declaration is here
comm.c: In function `nanny':
comm.c:2577: warning: declaration of `ch' shadows a previous local
comm.c:1507: warning: shadowed declaration is here
comm.c: In function `act_string':
comm.c:2582: warning: declaration of `buf' shadows a previous local
comm.c:1505: warning: shadowed declaration is here
comm.c: In function `nanny':
comm.c:2735: warning: declaration of `ch' shadows a previous local
comm.c:1507: warning: shadowed declaration is here
comm.c:2736: warning: declaration of `act' shadows a global declaration
mud.h:4363: warning: shadowed declaration is here
comm.c:2841: warning: declaration of `ch' shadows a previous local
comm.c:1507: warning: shadowed declaration is here
comm.c:2841: warning: declaration of `argument' shadows a parameter
comm.c:1501: warning: shadowed declaration is here
comm.c:2842: warning: declaration of `do_name' shadows a global declaration
mud.h:3807: warning: shadowed declaration is here
comm.c:2895: warning: declaration of `ch' shadows a previous local
comm.c:1507: warning: shadowed declaration is here
comm.c: In function `default_fprompt':
comm.c:2897: warning: declaration of `buf' shadows a previous local
comm.c:1505: warning: shadowed declaration is here
comm.c: In function `nanny':
comm.c:2910: warning: declaration of `ch' shadows a previous local
comm.c:1507: warning: shadowed declaration is here
comm.c: In function `default_prompt':
comm.c:2912: warning: declaration of `buf' shadows a previous local
comm.c:1505: warning: shadowed declaration is here
comm.c: In function `nanny':
comm.c:2936: warning: declaration of `d' shadows a parameter
comm.c:1501: warning: shadowed declaration is here
comm.c:2937: warning: declaration of `display_prompt' shadows a global declaration
comm.c:128: warning: shadowed declaration is here
comm.c: In function `display_prompt':
comm.c:2938: warning: declaration of `ch' shadows a previous local
comm.c:1507: warning: shadowed declaration is here
comm.c:2944: warning: declaration of `buf' shadows a previous local
comm.c:1505: warning: shadowed declaration is here
comm.c: In function `nanny':
comm.c:3246: warning: declaration of `d' shadows a parameter
comm.c:1501: warning: shadowed declaration is here
comm.c:3246: warning: declaration of `argument' shadows a parameter
comm.c:1501: warning: shadowed declaration is here
comm.c:3247: warning: declaration of `set_pager_input' shadows a global declaration
comm.c:129: warning: shadowed declaration is here
comm.c:3254: warning: declaration of `d' shadows a parameter
comm.c:1501: warning: shadowed declaration is here
comm.c:3255: warning: declaration of `pager_output' shadows a global declaration
comm.c:130: warning: shadowed declaration is here
comm.c: In function `pager_output':
comm.c:3257: warning: declaration of `ch' shadows a previous local
comm.c:1507: warning: shadowed declaration is here
comm.c:3329: warning: declaration of `buf' shadows a previous local
comm.c:1505: warning: shadowed declaration is here
comm.c: In function `nanny':
comm.c:3335: error: syntax error at end of input
make[1]: *** [o/comm.o] Error 1
make: *** [all] Error 2


I have all these errors after installing the Reroll code from Samson's site onto FUSS 1.6. The syntax error I don't see. Most of these error's disappear after removing the changes to comm.c (the other code changes remaining). I cann't figure what would cause all the errors, much less all the warnings. The syntax error is supposed to be in the nanny func, but the thing is, the line pointed to in the error isn't anywhere near the code. Anyone have a clue?
USA #1
Nvm, I reinstalled the snippet. Oddly enough, it was a totally clean compile o.O anywho, I think it may have been just a missing ) or something somewhere. If there is anythign I should watch for, do tell so I don't run around trying to figure what the hell went wrong down the road that would show up because of this
USA #2
Umm... watch for mismatched brackets and parentheses? :-)
USA #3
and watch for missing semi-colons too.. those three are your biggest headache sources ... every ( requires a ) and every { requires a } and you've got to make sure your ; is in the right spot every time... beyond that every [ requires a ] as well.. once you get past those, then you have actual code issues to learn to address, but those are the ones that get even the most experienced coder routinely... especially the count of closing parenthesis ) and closing brackets ] and closing braces } .
USA #4
I know about closing ]}). Missed one once in I think db.c and it almost crashed the program from errors. LOL