Hello everyone OLaD here. I'm new to coding and found this old DBSaga codebase. I've spent a week on this forum and other boards trying to get this to compile on my widows 10 x64 with cygwin.
I know this has been addressed many times and is an old topic. I hope you all are still around to help a newbie like me!
This is the newest result of running 'make' in cygwin.
NOTE; per instructions with the read me with the code, the folder dbs is moved into the c:\cygwin64\home\ohloo\ dir
this is the make file
I know this has been addressed many times and is an old topic. I hope you all are still around to help a newbie like me!
This is the newest result of running 'make' in cygwin.
NOTE; per instructions with the read me with the code, the folder dbs is moved into the c:\cygwin64\home\ohloo\ dir
Quote:
OhLoo@LAPTOP-SCPLGT8K ~
$ cd dbs/src
OhLoo@LAPTOP-SCPLGT8K ~/dbs/src
$ make
Makefile:93: warning: ignoring prerequisites on suffix rule definition
Starting the Compile.. ...
make -s dbs
Makefile:93: warning: ignoring prerequisites on suffix rule definition
Compiling DBS - < o/act_comm.o >
make[1]: gcc34: No such file or directory
make[1]: *** [Makefile:90: o/act_comm.o] Error 127
make: *** [Makefile:64: all] Error 2
OhLoo@LAPTOP-SCPLGT8K ~
$ cd dbs/src
OhLoo@LAPTOP-SCPLGT8K ~/dbs/src
$ make
Makefile:93: warning: ignoring prerequisites on suffix rule definition
Starting the Compile.. ...
make -s dbs
Makefile:93: warning: ignoring prerequisites on suffix rule definition
Compiling DBS - < o/act_comm.o >
make[1]: gcc34: No such file or directory
make[1]: *** [Makefile:90: o/act_comm.o] Error 127
make: *** [Makefile:64: all] Error 2
this is the make file
Quote:
CC = gcc34
#PROF = -p
NOCRYPT =
# Uncomment the line below if you have problems with math functions
MATH_LINK = -lm
# 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 = -NOCRYPT
#DBUGFLG = -DREQUESTS
#IMC2 - Comment out to disable IMC2 support
IMC = 1
#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
OPT_FLAG = -DMCCP
C_FLAGS = $(OPT_FLAG) -O -g3 -Wall $(PROF) $(NOCRYPT) $(DBUGFLG) -DSMAUG $(SOLARIS_FLAG) $(TIME) $(REG)
L_FLAGS = $(OPT_FLAG) $(PROF) $(SOLARIS_LINK) $(NEED_CRYPT) ${MATH_LINK} -lz
#D_FLAGS : For the DNS Slave process. No need in linking all the extra libs for this.
D_FLAGS = -g3 -O $(PROF) $(SOLARIS_LINK)
O_FILES = $(patsubst %.c,o/%.o,$(C_FILES))
C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c ban.c \
board.c boards.c bounty.c build.c changes.c clans.c colorize.c comm.c \
comments.c const.c db.c deity.c editor.c fight.c finger.c grub.c \
handler.c hashstr.c hiscores.c hotboot.c house.c ibuild.c ident.c \
imm_host.c interp.c magic.c makeobjs.c mapout.c mapper.c marry.c md5.c\
misc.c mpxset.c mud_comm.c mud_prog.c new_fun.c pfiles.c planes.c \
planet.c player.c polymorph.c rare.c requests.c reset.c save.c \
services.c shops.c skills.c skills_android.c skills_dbs.c\
space.c special.c stat_obj.c tables.c track.c update.c dns.c skills_genie.c \
new_auth.c
H_FILES = mud.h bet.h board.h finger.h hotboot.h house.h pfiles.h rare.h new_auth.h
#ifdef IMC
# C_FILES := imc.c $(C_FILES)
# O_FILES := imc.o $(O_FILES)
# C_FLAGS := $(C_FLAGS) -DIMC -DIMCSMAUG
#endif
all:
@echo Starting the Compile.. $< ...
$(MAKE) -s dbs
dbs: $(O_FILES)
rm -f dbsaga
$(CC) $(L_FLAGS) -o dbsaga $(O_FILES) -lcrypt
echo "DBS is fully compiled. Enjoy.";
chmod g+w dbsaga
chmod a+x dbsaga
chmod g+w $(O_FILES)
dbs2: $(O_FILES)
rm -f dbsaga2
$(CC) $(L_FLAGS) -o dbsaga2 $(O_FILES)
chmod g+w dbsaga2
chmod a+x dbsaga2
chmod g+w $(O_FILES)
dns: resolver.o
rm -f resolver
$(CC) $(D_FLAGS) -o resolver resolver.o
chmod g+w resolver
chmod a+x resolver
chmod g+w resolver.o
o/%.o: %.c
echo "Compiling DBS - < $@ >";
$(CC) -c $(C_FLAGS) $< -o $@
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
clean:
@echo Cleaning Code $< ...
rm -f o/*.o dbsaga *~
@echo Done.
CC = gcc34
#PROF = -p
NOCRYPT =
# Uncomment the line below if you have problems with math functions
MATH_LINK = -lm
# 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 = -NOCRYPT
#DBUGFLG = -DREQUESTS
#IMC2 - Comment out to disable IMC2 support
IMC = 1
#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
OPT_FLAG = -DMCCP
C_FLAGS = $(OPT_FLAG) -O -g3 -Wall $(PROF) $(NOCRYPT) $(DBUGFLG) -DSMAUG $(SOLARIS_FLAG) $(TIME) $(REG)
L_FLAGS = $(OPT_FLAG) $(PROF) $(SOLARIS_LINK) $(NEED_CRYPT) ${MATH_LINK} -lz
#D_FLAGS : For the DNS Slave process. No need in linking all the extra libs for this.
D_FLAGS = -g3 -O $(PROF) $(SOLARIS_LINK)
O_FILES = $(patsubst %.c,o/%.o,$(C_FILES))
C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c ban.c \
board.c boards.c bounty.c build.c changes.c clans.c colorize.c comm.c \
comments.c const.c db.c deity.c editor.c fight.c finger.c grub.c \
handler.c hashstr.c hiscores.c hotboot.c house.c ibuild.c ident.c \
imm_host.c interp.c magic.c makeobjs.c mapout.c mapper.c marry.c md5.c\
misc.c mpxset.c mud_comm.c mud_prog.c new_fun.c pfiles.c planes.c \
planet.c player.c polymorph.c rare.c requests.c reset.c save.c \
services.c shops.c skills.c skills_android.c skills_dbs.c\
space.c special.c stat_obj.c tables.c track.c update.c dns.c skills_genie.c \
new_auth.c
H_FILES = mud.h bet.h board.h finger.h hotboot.h house.h pfiles.h rare.h new_auth.h
#ifdef IMC
# C_FILES := imc.c $(C_FILES)
# O_FILES := imc.o $(O_FILES)
# C_FLAGS := $(C_FLAGS) -DIMC -DIMCSMAUG
#endif
all:
@echo Starting the Compile.. $< ...
$(MAKE) -s dbs
dbs: $(O_FILES)
rm -f dbsaga
$(CC) $(L_FLAGS) -o dbsaga $(O_FILES) -lcrypt
echo "DBS is fully compiled. Enjoy.";
chmod g+w dbsaga
chmod a+x dbsaga
chmod g+w $(O_FILES)
dbs2: $(O_FILES)
rm -f dbsaga2
$(CC) $(L_FLAGS) -o dbsaga2 $(O_FILES)
chmod g+w dbsaga2
chmod a+x dbsaga2
chmod g+w $(O_FILES)
dns: resolver.o
rm -f resolver
$(CC) $(D_FLAGS) -o resolver resolver.o
chmod g+w resolver
chmod a+x resolver
chmod g+w resolver.o
o/%.o: %.c
echo "Compiling DBS - < $@ >";
$(CC) -c $(C_FLAGS) $< -o $@
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
clean:
@echo Cleaning Code $< ...
rm -f o/*.o dbsaga *~
@echo Done.