Compiling Error, SWfote

Posted by Dawastedpanda on Mon 12 Nov 2012 10:16 PM — 3 posts, 19,181 views.

#0
Getting this error when using Make Command in cygwin, So far I've tar zxvf and all that, changed directories to the swfote12fuss/src and when I tyop make, I get the following



make -s swr
Compiling o/imc.o....
cc1: warnings being treated as errors
imc.c: In function ‘imcone_argument’:
imc.c:368:4: error: array subscript has type ‘char’
imc.c:392:4: error: array subscript has type ‘char’
imc.c: In function ‘imccapitalize’:
imc.c:557:7: error: array subscript has type ‘char’
imc.c:559:4: error: array subscript has type ‘char’
imc.c: In function ‘imcfread_number’:
imc.c:1144:4: error: array subscript has type ‘char’
imc.c:1157:4: error: array subscript has type ‘char’
imc.c:1163:4: error: array subscript has type ‘char’
imc.c: In function ‘imcfread_line’:
imc.c:1213:4: error: array subscript has type ‘char’
imc.c: In function ‘imcfread_word’:
imc.c:1273:4: error: array subscript has type ‘char’
imc.c:1295:7: error: array subscript has type ‘char’
imc.c: In function ‘imcfread_letter’:
imc.c:1351:4: error: array subscript has type ‘char’
imc.c: In function ‘imc_recv_broadcast’:
imc.c:1929:8: error: the address of ‘sender’ will always evaluate as ‘true’
imc.c: In function ‘imc_recv_isalive’:
imc.c:2524:8: error: the address of ‘url’ will always evaluate as ‘true’
imc.c:2530:8: error: the address of ‘version’ will always evaluate as ‘true’
imc.c:2536:8: error: the address of ‘netname’ will always evaluate as ‘true’
imc.c:2548:8: error: the address of ‘host’ will always evaluate as ‘true’
imc.c:2554:8: error: the address of ‘iport’ will always evaluate as ‘true’
imc.c: In function ‘imc_recv_iceupdate’:
imc.c:2631:8: error: the address of ‘chan’ will always evaluate as ‘true’
imc.c: In function ‘imc_process_authentication’:
imc.c:3111:8: error: the address of ‘rname’ will always evaluate as ‘true’
imc.c:3124:11: error: the address of ‘pw’ will always evaluate as ‘true’
imc.c:3167:11: error: the address of ‘md5’ will always evaluate as ‘true’
imc.c: In function ‘imcsetup’:
imc.c:5326:8: error: the address of ‘imccmd’ will always evaluate as ‘true’
imc.c:5326:40: error: the address of ‘chan’ will always evaluate as ‘true’
imc.c:5394:11: error: the address of ‘arg1’ will always evaluate as ‘true’
imc.c: In function ‘imctell’:
imc.c:5786:7: error: array subscript has type ‘char’
imc.c:5802:7: error: array subscript has type ‘char’
imc.c: In function ‘imcreply’:
imc.c:5866:7: error: array subscript has type ‘char’
imc.c:5882:7: error: array subscript has type ‘char’
imc.c: In function ‘imcfinger’:
imc.c:5948:8: error: the address of ‘arg’ will always evaluate as ‘true’
imc.c: In function ‘imcconfig’:
imc.c:6305:8: error: the address of ‘arg1’ will always evaluate as ‘true’
imc.c: In function ‘imcignore’:
imc.c:6576:8: error: the address of ‘arg’ will always evaluate as ‘true’
imc.c: In function ‘imcban’:
imc.c:6644:8: error: the address of ‘arg’ will always evaluate as ‘true’
imc.c: In function ‘imc_deny_channel’:
imc.c:6703:8: error: the address of ‘vic_name’ will always evaluate as ‘true’
imc.c: In function ‘imcpermset’:
imc.c:6819:8: error: the address of ‘arg’ will always evaluate as ‘true’
imc.c: In function ‘imcremoteadmin’:
imc.c:6976:8: error: the address of ‘server’ will always evaluate as ‘true’
imc.c:6976:40: error: the address of ‘cmd’ will always evaluate as ‘true’
imc.c: In function ‘imccedit’:
imc.c:7129:8: error: the address of ‘name’ will always evaluate as ‘true’
imc.c:7129:36: error: the address of ‘option’ will always evaluate as ‘true’
imc.c: In function ‘imchedit’:
imc.c:7346:8: error: the address of ‘name’ will always evaluate as ‘true’
imc.c:7346:36: error: the address of ‘cmd’ will always evaluate as ‘true’
imc.c: In function ‘imc_find_social’:
imc.c:7484:4: error: array subscript has type ‘char’
imc.c: In function ‘imc_act_string’:
imc.c:7662:7: error: array subscript has type ‘char’
imc.c: In function ‘imc_send_social’:
imc.c:7820:11: error: the address of ‘socbuf’ will always evaluate as ‘true’
imc.c:7827:11: error: the address of ‘socbuf’ will always evaluate as ‘true’
imc.c:7834:11: error: the address of ‘socbuf’ will always evaluate as ‘true’
imc.c: In function ‘imc_command_hook’:
imc.c:8150:10: error: array subscript has type ‘char’
imc.c:8159:10: error: array subscript has type ‘char’
Makefile:72: recipe for target `o/imc.o' failed
make[1]: *** [o/imc.o] Error 1
Makefile:32: recipe for target `all' failed
make: *** [all] Error 2
#1
Also, I've searched your archives for every possible solution...I could find none, please help me compile this in cygwin...if you could walk me through it'd be greatly appreciated. I'm using Windows 7, I've downloaded CYGWIN and all the packages, and I got the source code from this site.
Amended on Mon 12 Nov 2012 10:18 PM by Dawastedpanda
Australia Forum Administrator #2
That file is dated 2005 - that is about 7 years old. Compiler improvements mean extra warnings are now thrown which are being marked as errors.

I suggest you get a more up-to-date copy from the SMAUG FUSS site:

http://www.smaugmuds.org/index.php?a=files