Not sure if this has been seen a thousand times or not but I am trying to compile the dbsc2.5.2 source to run a MUD and I keep getting this error
update.c: In function ‘time_update’:
update.c:4203: warning: the address of ‘buf’ will always evaluate as ‘true’
update.c:4144: warning: ‘buf[0u]’ may be used uninitialized in this function
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG -DTIMEFORMAT -DNOCRYPT dns.c
rm -f dbsaga
gcc -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 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 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 space.o special.o stat_obj.o tables.o track.o update.o dns.o
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[1]: *** [dbs] Error 1
make[1]: Leaving directory `/home/xxx/Desktop/dbsc2.5.2/src'
make: *** [all] Error 2
Not sure what it means so any help would be greatly appreciated! I am running this in Terminal off of UBuntu too
update.c: In function ‘time_update’:
update.c:4203: warning: the address of ‘buf’ will always evaluate as ‘true’
update.c:4144: warning: ‘buf[0u]’ may be used uninitialized in this function
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG -DTIMEFORMAT -DNOCRYPT dns.c
rm -f dbsaga
gcc -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 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 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 space.o special.o stat_obj.o tables.o track.o update.o dns.o
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make[1]: *** [dbs] Error 1
make[1]: Leaving directory `/home/xxx/Desktop/dbsc2.5.2/src'
make: *** [all] Error 2
Not sure what it means so any help would be greatly appreciated! I am running this in Terminal off of UBuntu too