Having problems compiling SMAUGFUSS1.9 under Cygwin.

Posted by JWT2k6 on Thu 09 Jun 2011 02:32 PM — 5 posts, 26,955 views.

#0
Here is the error I am getting:

$ make
Compiling o/imc.o...
cc1plus: warnings being treated as errors
imc.c:106: error: deprecated conversion from string constant to ‘char*’
imc.c:106: error: deprecated conversion from string constant to ‘char*’
imc.c:106: error: deprecated conversion from string constant to ‘char*’
imc.c:106: error: deprecated conversion from string constant to ‘char*’
imc.c:106: error: deprecated conversion from string constant to ‘char*’
imc.c:106: error: deprecated conversion from string constant to ‘char*’

That isn't all of the errors, but they all seem to be coming from this one c file. I imagine that if the errors are fixed in this file, then the next file to be compiled will have a bunch of errors as well.

I made sure to uncomment the Cygwin line in the makefile. I have no idea what could be causing the problem.

Also disregard the undisplayable text (boxes around the char*). My lack of experience with Linux didn't allow for a clean copy+paste :P
Amended on Thu 09 Jun 2011 02:35 PM by JWT2k6
USA #1
You could just disable IMC.

There's been a few topics on this. Better to be posted over at the SmaugFUSS forums: http://www.smaugmuds.org/index.php?a=topic&t=4173&p=18908
#2
I guess I kinda found a fix for it?

I removed the -Werror flag. I get a bunch of warnings now, but it compiles and the MUD runs fine.

I'd like to get rid of the errors though. I tried removing the -Wconversion flag as the thread you linked suggested, but it didn't seem to do anything.
USA #3
Try here: http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=8655

Check the part about Wwrite-strings
#4
I'm really a newbie at this muds and smaugfuss stuff but I couldn't help myself to stop and read this post from you, folks. I just downloaded smaugfuss1.9 from http://www.smaugmuds.org
I downloaded and installed the latest version of Cygwin August 23rd 2011
1) I tar xvzf smaugfuss1.9.tgz then
2) I went to the src dir and did just one change in Makefile
3) Uncomment Cygwin then save Makefile
4) executed the command make
compiled the whole thing without a "fuss" .. :)
NOte: I haven't tested the compiled smaugfuss yet but I will do that in a few and I will post it here..
Hope this might help.
Hubwired
God bless you all....