Help with Compiling Silly

 
Post new topic   Reply to topic    mudlab.org Forum Index -> Newbie
View previous topic :: View next topic  
Author Message
LuckyIam



Joined: 12 Apr 2007
Posts: 1

PostPosted: Thu Apr 12, 2007 2:29 am    Post subject: Help with Compiling Silly Reply with quote

i have spent the last 2 days trying to get silly to run on cygwin

The first time i compled it, it spit a ton of log errors at me and a few strdup conflit messages. I spent hours going through each file and deleting all log and strdup arguements i can find and i actually got it to compile but when i go to run the server it starts loading each area then stops at "Last Area" with no apparent error message...it just stops


ive recently decided that maybe going through each file and deleting all arguements that give errors isnt the best solution so ive decided to fix the problem rather then deleting it, but the lack of sillymud support online makes it very hard for someone with a basic knowledge of C and linux, but if anyone here can help that would be great

ive played on sillymuds for years but for some reason its the only codebase i never got to work...so im rather determined

here are my errors from a fresh untar


$ make
gcc -g -DIMPL_SECURITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGRO
URITY -DNEW_RENT -DLEVEL_LOSS -DNEWEXP -DGROUP_NAMES -c -o c
In file included from comm.c:21:
protos.h:21: error: conflicting types for 'strdup'
protos.h:21: error: conflicting types for 'strdup'
comm.c: In function `main':
comm.c:133: error: incompatible type for argument 1 of `log'
comm.c:141: error: incompatible type for argument 1 of `log'
comm.c:147: error: incompatible type for argument 1 of `log'
comm.c:152: error: incompatible type for argument 1 of `log'
comm.c:171: error: incompatible type for argument 1 of `log'
comm.c:179: error: incompatible type for argument 1 of `log'
comm.c: In function `run_the_game':
comm.c:226: error: incompatible type for argument 1 of `log'
comm.c:229: error: incompatible type for argument 1 of `log'
comm.c:234: error: incompatible type for argument 1 of `log'
comm.c:240: error: incompatible type for argument 1 of `log'
comm.c:249: error: incompatible type for argument 1 of `log'
comm.c:253: error: incompatible type for argument 1 of `log'
comm.c: In function `game_loop':
comm.c:287: warning: passing arg 2 of `gettimeofday' from inc
ype
comm.c:340: warning: passing arg 2 of `gettimeofday' from inc
ype
comm.c: In function `write_to_q':
comm.c:630: error: incompatible type for argument 1 of `log'
comm.c:637: error: incompatible type for argument 1 of `log'
comm.c: In function `init_socket':
comm.c:747: warning: passing arg 2 of `bind' from incompatibl
comm.c:747: error: too many arguments to function `bind'
comm.c:771:8: macro names must be identifiers
comm.c: In function `printhost':
comm.c:809: warning: passing arg 1 of `gethostbyaddr' from in
type
comm.c:810: warning: assignment discards qualifiers from poin
comm.c: In function `printhostaddr':
comm.c:828: warning: passing arg 1 of `gethostbyaddr' from in
type
comm.c:829: warning: assignment discards qualifiers from poin
comm.c: In function `new_descriptor':
comm.c:881: warning: passing arg 2 of `strncpy' makes pointer
ut a cast
comm.c: In function `process_input':
comm.c:1002: error: incompatible type for argument 1 of `log'
comm.c: In function `close_sockets':
comm.c:1083: error: incompatible type for argument 1 of `log'
comm.c: In function `close_socket':
comm.c:1124: error: incompatible type for argument 1 of `log'
comm.c:1141: error: incompatible type for argument 1 of `log'
comm.c:1146: error: incompatible type for argument 1 of `log'
comm.c: In function `coma':
comm.c:1239: error: incompatible type for argument 1 of `log'
comm.c:1258: error: incompatible type for argument 1 of `log'
comm.c:1271: error: incompatible type for argument 1 of `log'
comm.c:1277: error: incompatible type for argument 1 of `log'
comm.c: In function `act':
comm.c:1524: error: incompatible type for argument 1 of `log'
comm.c:1525: error: incompatible type for argument 1 of `log'
Back to top
View user's profile Send private message
Author Message
Drey



Joined: 15 May 2005
Posts: 24
Location: Livonia, MI

PostPosted: Mon Apr 16, 2007 5:16 pm    Post subject: Reply with quote

The "strdup error" goes away if you comment out it's declaration in the protos.h file (probably not the right answer, but it works). The "log error" will only be fixed by renaming that function and all references to it in the code -- log() is a math library function that the Silly author(s) used the name of for a logging function.

Update: log(s) is just a wrapped around log_sev(s,1). Replacing all of the calls to log with that call should fix that error.

Update: also, the calls to bind, gettimeofday and some other functions are wrong. It looks like this hasn't been updated in some time.

Update: even after the strdup and log errors are cleaned up, it whines a lot about needing crypt (I don't have it on my Cygwin install) and about sigmask and other signal handling stuff, all of which are deprecated.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    mudlab.org Forum Index -> Newbie All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group
BBTech Template by © 2003-04 MDesign