When you install Cygwin you can select it to be a mimic more or less like DOS or Unix base I believe. Not sure if that effects how it compiles. I should have said Unix rather then Mac.
I reinstalled a few things and it works fine. Thanks for the speedy reply though.
Can you please paste the make output? You said you got the "same error" but one person reported getting "cannot find -luser32" and later reported getting "undefined reference to `_deflate'".
Quote:
And I'm using the Cygwin like Mac terminal not PC DOS.
I don't understand what you mean by this. Is a Mac involved?
Amended on Mon 26 Jan 2009 06:00 PM (UTC) by Muchalipski
Message
Hello, I've been having the same problem. I get that same error. I've downloaded the Zlib for Cygwin do I need to add a line somewhere?
Here are the instructions I've followed. And I'm using the Cygwin like Mac terminal not PC DOS.
DragonBall Saga Codebase Cygwin Install Instructions
----------------------------------------------------
1) Download the Cygwin setup program from http://www.cygwin.com/
2) Run setup.exe
3) Select the following packages if they are not already:
Base
- zlib
Devel
- gcc-g++
- make
- patchutils
Libs
- crypt
- gmp
Shells
- tcsh
4) Select any other packages you wish to download. I'd suggest getting
Devel->gdb also as it is a very useful debugging tool.
5) Wait while Cygwin downloads and installs.
6) After Cygwin is installed, run it and let Cygwin set up your home folder.
7) Copy the DBSC files to "C:\cygwin\home\username" (default location).
8) Open up and edit "dbsc/src/Makefile" and find the following lines:
#Uncomment if you wish to enable the Mud Client Compression Protocol
#Comment it out it if you are compiling with Cygwin
OPT_FLAG = -DMCCP
Comment out "OPT_FLAG = -DMCCP" by putting a pound (#) symbol just before
that line. It should now look like this:
#Uncomment if you wish to enable the Mud Client Compression Protocol
#Comment it out it if you are compiling with Cygwin
#OPT_FLAG = -DMCCP
9) Now in Cygwin just head over to the dbsc/src folder and type "make".
10) After DBSC is compiled, while still in the dbsc/src folder type "./startup"
or if you want to do other things in Cygwin while DBSC is running type
"nohup ./startup &"
11) Finally start up your favorite MUD client and connect to the following
address: localhost and use "9000" as the port number. If you want to change
what port DBSC starts on, open up and edit "dbsc/src/startup" and find the
following lines:
# Set the port number.
set port = 9000
Just change the "9000" to what ever number you want DBSC to use. Most MUD's
use numbers between 1000 and 9999.
=============================================
Last Update
May 2005
---------------------------------------------
And here is the makefile... any way I can add a line to make an exe?
CC = gcc
#PROF = -p
# 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
#IMC2 - Comment out to disable IMC2 support
IMC = 1
#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
#Uncomment if you wish to enable the Mud Client Compression Protocol
#Comment it out it if you are compiling with Cygwin
#OPT_FLAG = -DMCCP
C_FLAGS = $(OPT_FLAG) -O -g3 -Wall $(PROF) $(DBUGFLG) $(SOLARIS_FLAG) $(TIME) $(REG)
L_FLAGS = $(OPT_FLAG) $(PROF) $(SOLARIS_LINK) ${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 = act_comm.o act_info.o act_move.o act_obj.o act_wiz.o ban.o \
board.o boards.o bounty.o build.o clans.o colorize.o comm.o \
comments.o const.o db.o deity.o editor.o fight.o finger.o grub.o \
handler.o hashstr.o hiscores.o hotboot.o house.o ibuild.o ident.o \
imm_host.o interp.o magic.o makeobjs.o mapout.o marry.o \
misc.o mpxset.o mud_comm.o mud_prog.o new_fun.o pfiles.o planes.o \
planet.o player.o polymorph.o rare.o requests.o reset.o save.o \
services.o shops.o skills.o skills_android.o skills_dbs.o skills_genie.o \
space.o special.o stat_obj.o tables.o track.o update.o dns.o new_auth.o \
sha256.o
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 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 marry.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 sha256.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:
make dbs
dbs: $(O_FILES)
rm -f dbsaga
$(CC) $(L_FLAGS) -o dbsaga $(O_FILES)
chmod g+w dbsaga
chmod a+x dbsaga
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
.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
clean:
rm -f *.o dbsaga *~
ok, after downloading some new files for cygwin this is how it looks after I make...I personally don't know how to code, but trying to learn so all help is appreciated
$ make
make dbs
make[1]: Entering directory `/cygdrive/c/dbsc/src'
rm -f dbsaga
gcc -DMCCP -lm -lz -o dbsaga act_comm.o act_info.o act_move.o act_obj.o act_
wiz.o ban.o board.o boards.o bounty.o build.o clans.o colorize.o comm.o comments
.o const.o db.o deity.o editor.o fight.o finger.o grub.o handler.o hashstr.o his
cores.o hotboot.o house.o ibuild.o ident.o imm_host.o interp.o magic.o makeobjs.
o malloc.o mapout.o marry.o misc.o mpxset.o mud_comm.o mud_prog.o new_fun.o pfil
es.o planes.o planet.o player.o polymorph.o rare.o requests.o reset.o save.o ser
vices.o shops.o skills.o skills_android.o skills_dbs.o skills_genie.o space.o sp
ecial.o stat_obj.o tables.o track.o update.o dns.o new_auth.o -lcrypt
comm.o: In function `write_to_descriptor':
/cygdrive/c/dbsc/src/comm.c:1778: undefined reference to `_deflate'
comm.o: In function `compressStart':
/cygdrive/c/dbsc/src/comm.c:5835: undefined reference to `_deflateInit_'
comm.o: In function `compressEnd':
/cygdrive/c/dbsc/src/comm.c:5870: undefined reference to `_deflate'
/cygdrive/c/dbsc/src/comm.c:5876: undefined reference to `_deflateEnd'
fight.o: In function `damage':
/cygdrive/c/dbsc/src/fight.c:2795: undefined reference to `_floorl'
/cygdrive/c/dbsc/src/fight.c:2816: undefined reference to `_floorl'
collect2: ld returned 1 exit status
make[1]: *** [dbs] Error 1
make[1]: Leaving directory `/cygdrive/c/dbsc/src'
make: *** [all] Error 2
Well, trying to install all the files for cygwin, Zeno helped out, trying to get the correct packages now, when I get done with that I'll post if there is another problem, Thanks
I think perhaps you should copy and paste what you're seeing when Cygwin "doesn't work" so that people here can better understand your problem. It could be something simple for all we know, but just saying that it doesn't work leaves way too many questions unanswered about how to get it working.
Again, show us what you're seeing and someone will probably be able to help you.
"The world of men is dreaming, it has gone mad in its sleep, and a snake is strangling it, but it can't wake up." -D.H. Lawrence
ok, I know I probably sound like an ediot but I've reinstalled cygwin and still can't get it to compile, I went through the smaug help on compiling here and the commands wouldn't work, I even tried making sure I had everything downloaded and still nothing, what am I doing wrong?
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.