Possible zlib problem?

Posted by Daraku on Tue 15 Dec 2009 02:08 PM — 7 posts, 27,265 views.

#0
I've been reading through some of the posts, and although one of them seems to be alike to my problem, I am unaware if that is still the problem. I'm trying to make DBS2.0 with Cygwin, here's the error.


Quote:

Vengeance@user1 ~/dbs/src
$ make
make dbs
make[1]: Entering directory `/home/Vengeance/dbs/src'
rm -f dbsaga
gcc -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 de
ity.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 malloc.o mapout.
o marry.o misc.o mpxset.o mud_comm.o mud_prog.o new_fun.o pfiles.o planes.o plan
et.o player.o polymorph.o rare.o requests.o reset.o save.o services.o shops.o sk
ills.o skills_android.o skills_dbs.o space.o special.o stat_obj.o tables.o track
.o update.o dns.o -lcrypt -DMCCP -lm -lz
fight.o: In function `damage':
/home/Vengeance/dbs/src/fight.c:2545: undefined reference to `_floorl'
/home/Vengeance/dbs/src/fight.c:2558: undefined reference to `_floorl'
collect2: ld returned 1 exit status
make[1]: *** [dbs] Error 1
make[1]: Leaving directory `/home/Vengeance/dbs/src'
make: *** [all] Error 2


It's been a loong time(like, I've forgotten almost everything) since I've coded, and I've never had to put a MUD up on my machine.
Canada #1
Two things you could try..

In your Makefile find
#NEED_CRYPT = -NOCRYPT

and uncomment. That may take care of the lcrypt error.

Also in the Makefile find
OPT_FLAG = -DMCCP

and comment that line out. MCCP and Cygwin don't like each other.

Make clean and make. If you still have problems let us know.
#2
Alright, I fixed that, got the file to make, and now I'm seeing this;
Quote:

Vengeance@user1 ~/dbs/src
$ ./startup 6000
limit: Command not found.
ulimit: Command not found.
mv: cannot move `../log/syslog.9' to `../log/archived/1000.log': No such file or directory
mv: cannot stat `backup/dbsbackup.current.tar.gz': No such file or directory
tar: backup/exclude.list: No such file or directory
tar: Error is not recoverable: exiting now


I was getting an entire line about the syslogs, 2-9, so I made those files in the log folder, that fixed it up until syslog.9
Canada #3
Interesting. Don't be worried about the limits, that can be ignored.

Try this; in your startup file uncomment these lines:
#    rm ../log/syslog.9

and a little further down all this:
#
# cd ../../
#
# mv backup/dbsbackup.current.tar.gz backup/dbsbackup.previous.tar.gz
#
# tar -czf backup/dbsbackup.current.tar.gz -X backup/exclude.list ./dbs
#
# cd dbs/area

See if that helps. I'm just guessing at this point but they look as close as possible to the errors you got.
Don't forget to make clean/make again.
#4
The MUD is running. I checked through the syslog, and it said it was up, so I logged, and viola, it does work.

I haven't made any of those changes, though. Should I, if the MUD is up and working(for now)?
Canada #5
Nice. There may possibly be errors with logging but if it works no, don't change it.

Enjoy :)
#6
Thanks for the help.