Gammon Forum
Entire forum
SMAUG
Compiling the server
Compiling SMAUG 1.6 w/ reroll code (error + warnings)
Compiling SMAUG 1.6 w/ reroll code (error + warnings)
|
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Posted by
| Dralnu
USA (277 posts) bio
|
Date
| Thu 08 Sep 2005 06:47 AM (UTC) |
Message
| 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? | top |
|
Posted by
| Dralnu
USA (277 posts) bio
|
Date
| Reply #1 on Thu 08 Sep 2005 06:57 AM (UTC) |
Message
| 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 | top |
|
Posted by
| David Haley
USA (3,881 posts) bio
|
Date
| Reply #2 on Thu 08 Sep 2005 07:42 AM (UTC) |
Message
| Umm... watch for mismatched brackets and parentheses? :-) |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | top |
|
Posted by
| Conner
USA (381 posts) bio
|
Date
| Reply #3 on Thu 08 Sep 2005 06:09 PM (UTC) |
Message
| 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 } .
|
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org | top |
|
Posted by
| Dralnu
USA (277 posts) bio
|
Date
| Reply #4 on Thu 08 Sep 2005 06:33 PM (UTC) |
Message
| I know about closing ]}). Missed one once in I think db.c and it almost crashed the program from errors. LOL | top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
15,292 views.
It is now over 60 days since the last post. This thread is closed.
  Refresh page
top
Quick links:
MUSHclient.
MUSHclient help.
Forum shortcuts.
Posting templates.
Lua modules.
Lua documentation.
Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.