smaug fuss 1.6 compiling problem need help
Posted by Gorock
on Tue 13 Sep 2005 06:00 PM
— 28 posts, 92,781 views.
this is what i see when i type make
I just lost my job, I might lose my home, and I might have to sell the server.
make[1]: Entering directory `/home/gorock/mud/src'
gcc -c -g3 -Wall -DREQUESTS -DSMAUG -Dsun -DSYSV act_comm.c
act_comm.c: In function `chan_social':
act_comm.c:462: warning: operation on `argument' may be undefined
act_comm.c: In function `talk_channel':
act_comm.c:777: warning: suggest parentheses around && within ||
act_comm.c: In function `init_profanity_checker':
act_comm.c:3587: warning: implicit declaration of function `re_comp'
act_comm.c:3587: warning: assignment makes pointer from integer without a cast
act_comm.c: In function `is_profane':
act_comm.c:3702: warning: implicit declaration of function `re_exec'
gcc -c -g3 -Wall -DREQUESTS -DSMAUG -Dsun -DSYSV act_info.c
gcc -c -g3 -Wall -DREQUESTS -DSMAUG -Dsun -DSYSV act_move.c
act_move.c:393:14: warning: trigraph ??> ignored
act_move.c: In function `generate_exit':
act_move.c:614: warning: use of cast expressions as lvalues is deprecated
gcc -c -g3 -Wall -DREQUESTS -DSMAUG -Dsun -DSYSV act_obj.c
act_obj.c: In function `can_layer':
act_obj.c:1402: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c: In function `do_auction':
act_obj.c:2670: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c:2694: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -g3 -Wall -DREQUESTS -DSMAUG -Dsun -DSYSV act_wiz.c
act_wiz.c:1749:49: warning: trigraph ??! ignored
act_wiz.c:7507:29: missing terminating " character
act_wiz.c: In function `do_showclass':
act_wiz.c:7508: error: `wWeapon' undeclared (first use in this function)
act_wiz.c:7508: error: (Each undeclared identifier is reported only once
act_wiz.c:7508: error: for each function it appears in.)
act_wiz.c:7508: error: parse error before ':' token
act_wiz.c:7508:15: invalid suffix "d" on integer constant
act_wiz.c:7508:36: invalid suffix "d" on integer constant
act_wiz.c:7508: error: stray '\' in program
act_wiz.c:7508: error: stray '\' in program
act_wiz.c:7508:42: missing terminating " character
make[1]: *** [act_wiz.o] Error 1
make[1]: Leaving directory `/home/gorock/mud/src'
make: *** [all] Error 2
gorock@frostmud:~/mud/src$
please help i have been trying to get it right for days
Are you sure you're using FUSS? FUSS has no warnings normally. If you're using Cygwin, make sure you've enabled the Makefile flag.
Can you show us the lines in act_wiz.c around line 7508?
well i downloaded smaug16fuss.tgz then tar xvzf smaug16fuss.tgz from cygwin home and it said a bunch of stuff then i logout log on to iXplorer transfer the smaug file that was created to the host computer and then chmod +x rmstartup edit it then go to src file and type make and it never compiles right the system admin said there was a bug a stuff but i cant seem to get it right i am gonna delete smaug and re run it for like the 15th time just to see
and how don i enable the makefile flag
ok here is what i get when i type make
gorock@frostmud:~/mud/src$ make
make smaug
make[1]: Entering directory `/home/gorock/mud/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_comm.c
act_comm.c: In function `is_profane':
act_comm.c:3347: warning: implicit declaration of function `re_exec'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_info.c
act_info.c: In function `do_hset':
act_info.c:2041: warning: implicit declaration of function `RENAME'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_move.c
act_move.c:393:14: warning: trigraph ??> ignored
act_move.c: In function `generate_exit':
act_move.c:604: warning: use of cast expressions as lvalues is deprecated
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_obj.c
act_obj.c: In function `can_layer':
act_obj.c:1389: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c: In function `do_auction':
act_obj.c:2651: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c:2675: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_wiz.c
act_wiz.c:1637:49: warning: trigraph ??! ignored
act_wiz.c: In function `do_balzhur':
act_wiz.c:3258: warning: implicit declaration of function `RENAME'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG boards.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG build.c
build.c: In function `fold_area':
build.c:5889: warning: implicit declaration of function
`RENAME'
build.c:6058: warning: suggest explicit braces to avoid ambiguous `else'
build.c:6061: warning: suggest explicit braces to avoid ambiguous `else'
build.c:6064: warning: suggest explicit braces to avoid ambiguous `else'
build.c:6070: warning: suggest explicit braces to avoid ambiguous `else'
build.c:6075: warning: suggest explicit braces to avoid ambiguous `else'
build.c:6078: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG clans.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG comm.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG comments.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG const.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG db.c
db.c: In function `load_resets':
db.c:1594: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG deity.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG fight.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG handler.c
handler.c: In function `get_eq_char':
handler.c:1335: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG hashstr.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG ibuild.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG ident.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG interp.c
interp.c: In function `interpret':
interp.c:757: warning: int format, __time_t arg (arg 7)
interp.c:757: warning: int format, __suseconds_t arg (arg 8)
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG magic.c
magic.c: In function `process_spell_components':
magic.c:985: warning: suggest explicit braces to avoid ambiguous `else'
magic.c:1003: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG makeobjs.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mapout.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG misc.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mpxset.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mud_comm.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mud_prog.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG player.c
player.c:1024:18: warning: trigraph ??) ignored
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG polymorph.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG requests.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG reset.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG save.c
save.c: In function `save_char_obj':
save.c:191: warning: implicit declaration of function
`RENAME'
save.c: In function `load_char_obj':
save.c:951: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG shops.c
shops.c: In function `appraise_all':
shops.c:1090: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG skills.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG special.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG tables.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG track.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG update.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG grub.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG stat_obj.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG ban.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG services.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG planes.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG imm_host.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG colorize.c
colorize.c: In function `load_colors':
colorize.c:39: warning: implicit declaration of function `strcpy'
rm -f smaug
gcc -o smaug act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o build.o clans.o comm.o comments.o const.o db.o deity.o fight.o handler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o mapout.o misc.o mpxset.o mud_comm.o mud_prog.o player.o polymorph.o requests.o reset.o save.o shops.o skills.o special.o tables.o track.o update.o grub.o stat_obj.o ban.o services.o planes.o imm_host.o colorize.o
act_info.o(.text+0x3f02): In function `do_hset':
/home/gorock/mud/src/act_info.c:2041: undefined reference to `RENAME'
act_info.o(.text+0x7085): In function `do_password':
/home/gorock/mud/src/act_info.c:3474: undefined reference to `crypt'
act_wiz.o(.text+0x67da): In function `do_balzhur':
/home/gorock/mud/src/act_wiz.c:3258: undefined reference to `RENAME'
act_wiz.o(.text+0x9ce2): In function `do_mortalize':
/home/gorock/mud/src/act_wiz.c:4880: undefined reference to `RENAME'
act_wiz.o(.text+0xb03d): In function `do_form_password':
/home/gorock/mud/src/act_wiz.c:5441: undefined reference to `crypt'
act_wiz.o(.text+0xc713): In function `do_destroy':
/home/gorock/mud/src/act_wiz.c:5756: undefined reference to `RENAME'
act_wiz.o(.text+0xc882):/home/gorock/mud/src/act_wiz.c:5784: undefined reference to `RENAME'
act_wiz.o(.text+0x1555a): In function `do_pcrename':
/home/gorock/mud/src/act_wiz.c:9922: undefined reference to `RENAME'
act_wiz.o(.text+0x155a9):/home/gorock/mud/src/act_wiz.c:9925: undefined reference to `RENAME'
build.o(.text+0x2bdc): In function `do_mset':
/home/gorock/mud/src/build.c:1692: undefined reference to `crypt'
build.o(.text+0xd213): In function `fold_area':
/home/gorock/mud/src/build.c:5889: undefined reference to `RENAME'
build.o(.text+0xe95b): In function `do_installarea':
/home/gorock/mud/src/build.c:6613: undefined reference to `RENAME'
comm.o(.text+0x2215): In function `nanny':
/home/gorock/mud/src/comm.c:1663: undefined reference to `crypt'
comm.o(.text+0x24e3):/home/gorock/mud/src/comm.c:1750: undefined reference to `crypt'
comm.o(.text+0x25be):/home/gorock/mud/src/comm.c:1771: undefined reference to `crypt'
save.o(.text+0x270): In function `save_char_obj':
/home/gorock/mud/src/save.c:191: undefined reference to `RENAME'
save.o(.text+0x4ba):/home/gorock/mud/src/save.c:258: undefined reference to `RENAME'
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make[1]: Leaving directory `/home/gorock/mud/src'
make: *** [all] Error 2
ok thats everything that happens and im lost
Look in the makefile, there should be a comment in there explaining what to do if you're using Cygwin.
ok here is the edited makefile is this right now?
CC = gcc
#PROF = -p
NOCRYPT =
# Uncomment the two lines below if compiling on a Solaris box
#SOLARIS_FLAG = -Dsun -DSYSV
#SOLARIS_LINK = -lnsl -lsocket
#Uncomment the line below if you are getting a line like:
#interp.c:757: warning: int format, time_t arg (arg 7)
#TIME = -DTIMEFORMAT
#Uncomment the line below if you are getting implicit decleration of re_exec
#REG = -DREGEX
#Uncomment the line below if you are getting undefined re_exec errors
NEED_REG = -lgnuregex
#Uncomment the line below if you are getting undefined crypt errors
NEED_CRYPT = -lcrypt
#DBUGFLG = -DREQUESTS
#Uncomment the line below if you want a performance increase though beware
#your core files may not be as much of a benefit if you do.
#OPT_FLAG = -finline-functions -funroll-loops -fdefer-pop -fstrength-reduce
C_FLAGS = $(OPT_FLAG) -O -g3 -Wall -Wuninitialized $(PROF) $(NOCRYPT) $(DBUGFLG) -DSMAUG $(SOLARIS_FLAG) $(TIME) $(REG)
L_FLAGS = $(OPT_FLAG) $(PROF) $(SOLARIS_LINK) $(NEED_CRYPT)
#Uncomment the next three comments below if you want to use IMC
#USE_IMC = -DUSE_IMC
#IMC_OFILES = imc.o imc-mail.o imc-interp.o imc-util.o imc-config.o \
# imc-events.o imc-version.o imc-mercbase.o ice.o icec.o icec-mercbase.o
#IMC_CFILES = imc.c imc-mail.c imc-interp.c imc-util.c imc-config.c \
# imc-events.c imc-version.c imc-mercbase.c ice.c icec.c icec-mercbase.c
O_FILES = act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o \
build.o clans.o comm.o comments.o const.o db.o deity.o fight.o \
handler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o \
mapout.o misc.o mpxset.o mud_comm.o mud_prog.o player.o polymorph.o \
requests.o reset.o save.o shops.o skills.o special.o tables.o \
track.o update.o grub.o stat_obj.o ban.o services.o planes.o \
imm_host.o $(IMC_OFILES) colorize.o
C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c boards.c \
build.c clans.c comm.c comments.c const.c db.c deity.c fight.c \
handler.c hashstr.c ibuild.c ident.c interp.c magic.c makeobjs.c \
mapout.c misc.c mpxset.c mud_comm.c mud_prog.c player.c polymorph.c \
requests.c reset.c save.c shops.c skills.c special.c tables.c \
track.c update.c grub.c stat_obj.c ban.c services.c planes.c \
imm_host.c $(IMC_CFILES) colorize.c
H_FILES = mud.h bet.h imc-config.h imc-mercbase.h imc-mercdefs.h imc.h \
ice.h icec.h icec-mercbase.h
all:
make smaug
smaug: $(O_FILES)
rm -f smaug
$(CC) $(L_FLAGS) $(USE_IMC) -o smaug $(O_FILES)
chmod g+w smaug
chmod a+x smaug
chmod g+w $(O_FILES)
.c.o: mud.h
$(CC) -c $(C_FLAGS) $(USE_IMC) $<
clean:
rm -f *.o smaug *~
I'll ask again, are you sure that's FUSS? Because that is not the FUSS Makefile. This is:
CC = gcc
#PROF = -p
#Uncomment to compile in Cygwin
#CYGWIN = -DCYGWIN
# Uncomment the two lines below if compiling on a Solaris box
#SOLARIS_FLAG = -Dsun -DSYSV
#SOLARIS_LINK = -lnsl -lsocket
#IMC2 - Comment out to disable IMC2 support
IMC = 1
W_FLAGS = -Wall -Werror -Wshadow -Wformat-security -Wpointer-arith -Wcast-align -Wredundant-decls
C_FLAGS = -g2 $(W_FLAGS) $(SOLARIS_FLAG) $(PROF)
L_FLAGS = $(PROF) $(SOLARIS_LINK)
C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c ban.c boards.c \
build.c clans.c color.c comm.c comments.c const.c db.c deity.c fight.c \
handler.c hashstr.c hotboot.c imm_host.c interp.c magic.c makeobjs.c mapout.c \
md5.c misc.c mpxset.c mud_comm.c mud_prog.c planes.c player.c polymorph.c \
reset.c save.c services.c shops.c skills.c special.c tables.c \
track.c update.c
ifdef IMC
C_FILES := imc.c $(C_FILES)
C_FLAGS := $(C_FLAGS) -DIMC -DIMCSMAUG
endif
O_FILES := $(patsubst %.c,o/%.o,$(C_FILES))
H_FILES = $(wildcard *.h)
all:
$(MAKE) -s smaug
ifdef CYGWIN
smaug: $(O_FILES)
rm -f smaug.exe
$(CC) -o smaug.exe $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod g+w smaug.exe
chmod a+x smaug.exe
chmod g+w $(O_FILES)
clean:
rm -f o/*.o smaug.exe *~
else
smaug: $(O_FILES)
rm -f smaug
$(CC) -o smaug $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod g+w smaug
chmod a+x smaug
chmod g+w $(O_FILES)
clean:
rm -f o/*.o smaug *~
endif
indent:
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(C_FILES)
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(H_FILES)
indentclean:
rm *.c~ *.h~
o/%.o: %.c
echo " Compiling $@....";
$(CC) -c $(C_FLAGS) $< -o $@
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
It seems like your problem is that you're not using FUSS.
ok i deleted smaug then i redid it i went to smaugfuss.ord and download smaugfuss 1.6 the make file is as what you said but i still cant get it to work right here is exactly what im doing. i have cygwin putty iXplorer and after i download i put it in the cygwin home file then i open cygwin and type tar xvzf smaug16fuss.tgz then it goes through a lot of stuff and then i open startup and change the port to the one i was assigned then i log on to iXplorer and change the smaug file from me to the server then i open putty rename the smaug fuss dirt to mud then i go into /dirt/src and chmod +x startup then cp startup startup.bak then i pico into it to make sure that the port is right then i leave go back into src and type make and thats when everything goes wrong....i put everything i down in order i am going to do it yet again to see if i am missing something... i think i may need to compile it in cygwin (even though i think tar xvzf smaug16fuss.tgz would compile it) or my makefile or something is wrong, the errors i get each time are different though sometimes i get crypt errors sometimes i get comm.c errors just all kinds of random things but keep in mind i am fairly new to this i have read a little bit in a c++ book and i read the readme files in the smaugfuss file but i just cant get to get it compiled in putty right... either way thanks so far for the help im gonna go try it again now
Quote:
i think i may need to compile it in cygwin (even though i think tar xvzf smaug16fuss.tgz would compile it
Yes, you need to compile it with Cygwin. Tar extracts it, it does not compile it.
As for the errors, like I said, look in the Makefile for the Cygwin flag.
ok so i uncomment cygwin by taking out the # then here is my make file
CC = gcc
#PROF = -p
Uncomment to compile in Cygwin
CYGWIN = -DCYGWIN
Uncomment the two lines below if compiling on a Solaris box
#SOLARIS_FLAG = -Dsun -DSYSV
#SOLARIS_LINK = -lnsl -lsocket
#IMC2 - Comment out to disable IMC2 support
IMC = 1
W_FLAGS = -Wall -Werror -Wshadow -Wformat-security -Wpointer-arith -Wcast-align -Wredundant-decls
C_FLAGS = -g2 $(W_FLAGS) $(SOLARIS_FLAG) $(PROF)
L_FLAGS = $(PROF) $(SOLARIS_LINK)
C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c ban.c boards.c \
build.c clans.c color.c comm.c comments.c const.c db.c deity.c fight.c \
handler.c hashstr.c hotboot.c imm_host.c interp.c magic.c makeobjs.c mapout.c \
md5.c misc.c mpxset.c mud_comm.c mud_prog.c planes.c player.c polymorph.c \
reset.c save.c services.c shops.c skills.c special.c tables.c \
track.c update.c
ifdef IMC
C_FILES := imc.c $(C_FILES)
C_FLAGS := $(C_FLAGS) -DIMC -DIMCSMAUG
endif
O_FILES := $(patsubst %.c,o/%.o,$(C_FILES))
H_FILES = $(wildcard *.h)
all:
$(MAKE) -s smaug
ifdef CYGWIN
smaug: $(O_FILES)
rm -f smaug.exe
$(CC) -o smaug.exe $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod g+w smaug.exe
chmod a+x smaug.exe
chmod g+w $(O_FILES)
clean:
rm -f o/*.o smaug.exe *~
else
smaug: $(O_FILES)
rm -f smaug
$(CC) -o smaug $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod g+w smaug
chmod a+x smaug
chmod g+w $(O_FILES)
clean:
rm -f o/*.o smaug *~
endif
indent:
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(C_FILES)
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(H_FILES)
indentclean:
rm *.c~ *.h~
o/%.o: %.c
echo " Compiling $@....";
$(CC) -c $(C_FLAGS) $< -o $@
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
i believe it is uncommented now, so how do i compile it because typeing make does not work in cygwin and when i type in ./startup & it says bad interpreter but after it says that i type ls and now i see something new that says
[1]+ Exit 126 ./startup
so what do i do here i am lost
Can you paste the exact lines of the error?
Was going to say, that first batch was not the FUSS code by any stretch, could never have been. Anyway, good you got that part worked out.
As for "make" not working, are you sure you downloaded the Cygwin version of make from the setup utility? It's in the devel section not far below where you installed gcc
Well I think by his last error "bad interpreter", he didn't install the correct Cygwin packages...
ok i decided to go a different route i downloaded smaug.14a_mxp .tgz and i am working through it but im sure ill run into some errors but i dont think i downloaded cygwin properly so i think ill look through that and download gcc and the other thing you mentioned
grrr ok i am about to download cygwin correctly then ill delete the smaug i have in my pc now and download smaug fuss then go through the cygwin until it compiles properly
ok i could not find exactly what i was looking for in the cygwin download box so i just checked everything and it is downloading right now
Yes, I suggest to stick with FUSS. With the Cygwin flag on in the Makefile, it should compile without problems.
ok so could i get a detailed walk through that way i can see if i am missing anything out please
ok i clicked and downloaded everything to cygwin but it still says bash: make: command not found
i am baffled i really dont want to give up the mud idea because i want to get through it and i dont want to give up but this is seeming really hard but it seems like you guys think these are the dumbest questions ever
here is my makefile
CC = gcc
#PROF = -p
#Uncomment to compile in Cygwin
#CYGWIN =
-DCYGWIN
# Uncomment the two lines below if compiling on a Solaris box
#SOLARIS_FLAG = -Dsun -DSYSV
#SOLARIS_LINK = -lnsl -lsocket
#IMC2 -
Comment out to disable IMC2 support
IMC = 1
W_FLAGS = -Wall -Werror
-Wshadow -Wformat-security -Wpointer-arith -Wcast-align -Wredundant-decls
C_FLAGS = -g2 $(W_FLAGS) $(SOLARIS_FLAG) $(PROF)
L_FLAGS = $(PROF)
$(SOLARIS_LINK)
C_FILES = act_comm.c act_info.c act_move.c act_obj.c
act_wiz.c ban.c boards.c \
build.c clans.c color.c comm.c comments.c const.c db.c
deity.c fight.c \
handler.c hashstr.c hotboot.c imm_host.c interp.c magic.c makeobjs.c
mapout.c \
md5.c misc.c mpxset.c mud_comm.c mud_prog.c planes.c player.c
polymorph.c \
reset.c save.c services.c shops.c skills.c special.c tables.c \
track.c update.c
ifdef IMC
C_FILES := imc.c $(C_FILES)
C_FLAGS :=
$(C_FLAGS) -DIMC -DIMCSMAUG
endif
O_FILES := $(patsubst
%.c,o/%.o,$(C_FILES))
H_FILES = $(wildcard *.h)
all:
$(MAKE) -s
smaug
ifdef CYGWIN
smaug: $(O_FILES)
rm -f smaug.exe
$(CC) -o
smaug.exe $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod
g+w smaug.exe
chmod a+x smaug.exe
chmod g+w $(O_FILES)
clean:
rm -f o/*.o smaug.exe *~
else
smaug: $(O_FILES)
rm -f smaug
$(CC) -o smaug $(O_FILES) $(L_FLAGS)
echo "Done compiling mud.";
chmod
g+w smaug
chmod a+x smaug
chmod g+w $(O_FILES)
clean:
rm -f o/*.o smaug *~
endif
indent:
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl
-ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt
$(C_FILES)
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs
-bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(H_FILES)
indentclean:
rm *.c~ *.h~
o/%.o: %.c
echo " Compiling $@....";
$(CC) -c
$(C_FLAGS) $< -o $@
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
All you need is:
Basic Cygwin install.
gcc ( and g++ if you ever decide to go that route )
make
tcsh shell package ( sometimes )
tar and gzip if they aren't already selected.
Then once it's all setup, use the cygwin.bat file so it can properly create the home dir etc.
Unpack the tgz package: tar -xzvf smaug16fuss.tgz
cd SmaugFUSS/src
Edit the Makefile, uncomment the Cygwin flag.
Save, then type make. Should sail along nice and smooth.
If you get trouble from the time stuff, see my other post on this for the solution.
this would probally work except for one error....i uninstalled cygwin completely and downloaded it again but the make and all in devel were n/a n/a so i cant even put them in cygwin is there somewhere where i can download something other then cygwin or down load a cygwin that will have all this stuff in it?
ok i am downloading cygwin and now i found a site that has cygwin packages such ass gcc make and stuff so i am going to download gcc and make so that it will work right
also what gcc do i need
here is the list
gcc C compiler upgrade helper
gcc-ada Ada compiler
gcc-core C compiler
gcc-g++ C++ compiler
gcc-g77 Fortran compiler
gcc-gdc D compiler
gcc-gm2 GNU Modula 2 compiler
gcc-gpc GNU Pascal compiler
gcc-java Java compiler
gcc-mingw Mingw32 GCC compiler upgrade helper
gcc-mingw-ada Mingw32 support headers and libraries for GCC Ada
gcc-mingw-core Mingw32 support headers and libraries for GCC
gcc-mingw-g++ Mingw32 support headers and libraries for GCC C++
gcc-mingw-g77 Mingw32 support headers and libraries for GCC Fortran
gcc-mingw-gdc D compiler
gcc-mingw-gpc Mingw32 support headers and libraries for GCC Pascal
gcc-mingw-java Mingw32 support headers and libraries for GCC Java
gcc-mingw-objc Mingw32 support headers and libraries for GCC ObjC
gcc-objc ObjC compiler
gcc-testsuite GCC testsuite sources
ok i am missing a lot of stuff so i am going to backdate and start all over so after this note anything i ask will be about something new because i am going to downlaod cygwin putty pueblo smaugfuss 1.6 and i am going to try this whole thing over thanks for the help so far it has gotten me this far hopefully i will have my mud up and running before long