Compiling Smaug

Posted by Mike on Wed 13 Mar 2002 06:18 AM — 6 posts, 22,929 views.

#0
Umm yeah I did the stuff it said at http://www.gammon.com.au/smaug/howtocompile.htm#example
and umm yeah i got this error (oh and theres no smaug.exe file)
if you could tell me whats wrong thanks! Oh and i'm compiling the source file thats found in the download section of your site and it has that mxp stuff. Also i'm running windows me(man it sucks) and umm yeah heres the stuff it said at the end:

rm -f smaug
gcc -lcrypt -lregex -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 ha
ndler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o mapout.o misc.o m
pxset.o mud_comm.o mud_prog.o player.o polymorph.o requests.o reset.o save.o sho
ps.o skills.o special.o tables.o track.o update.o grub.o stat_obj.o ban.o servic
es.o planes.o imm_host.o colorize.o
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: cann
ot find -lcrypt
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make[1]: Leaving directory `/cygdrive/c/smaug/dist/src'
make: *** [all] Error 2
#1
Ok i fixed that problem. I opened makefile and it had in there some notes about some lines in there one of them was something about the type of error i got and it said to delete that line (i assume thats what it meant for me to do) but.... got a new problem now (this probably should go on running the server bit but anyway)
I try running smaug.exe....

Wed Mar 13 20:10:48 2002 :: Loading commands
Wed Mar 13 20:10:48 2002 :: Loading sysdata configuration...
Wed Mar 13 20:10:48 2002 :: Loading socials
Wed Mar 13 20:10:48 2002 :: Loading skill table
Wed Mar 13 20:10:48 2002 :: Sorting skill table...
Wed Mar 13 20:10:48 2002 :: Remapping slots to sns
Wed Mar 13 20:10:48 2002 :: Loading classes
Wed Mar 13 20:10:48 2002 :: Loading races
Wed Mar 13 20:10:48 2002 :: Loading herb table
Wed Mar 13 20:10:48 2002 :: Loading tongues
Wed Mar 13 20:10:48 2002 :: Making wizlist
Wed Mar 13 20:10:48 2002 :: [*****] BUG: fread_word: EOF encountered on read.

Wed Mar 13 20:10:48 2002 :: [*****] BUG: fread_number: EOF encountered on read.

Wed Mar 13 20:10:48 2002 :: [*****] BUG: fread_to_eol: EOF encountered on read.

Wed Mar 13 20:10:48 2002 :: Initializing request pipe
Wed Mar 13 20:10:48 2002 :: Initializing random number generator
Wed Mar 13 20:10:48 2002 :: Setting time and weather
Wed Mar 13 20:10:48 2002 :: Assigning gsn's
Wed Mar 13 20:10:48 2002 :: Reading in area files...
area.lst: No such file or directory

If you could tell me whats wrong thanks.
Australia Forum Administrator #2
No area.lst file? Sounds like you aren't in the area directory. I usually do this after a compile:


cd ../area
../src/smaug
#3
Ok thanks alot for that it works now
#4
rm -f smaug
gcc -lcrypt -lregex -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 ha
ndler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o mapout.o misc.o m
pxset.o mud_comm.o mud_prog.o player.o polymorph.o requests.o reset.o save.o sho
ps.o skills.o special.o tables.o track.o update.o grub.o stat_obj.o ban.o servic
es.o planes.o imm_host.o colorize.o
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld: cann
ot find -lregex
collect2: ld returned 1 exit status
make[1]: *** [smaug] Error 1
make[1]: Leaving directory `/home/kaero/smaug/dist/src'
make: *** [all] Error 2

I don't know what's wrong, but I keep getting this error when I try to make
Australia Forum Administrator #5
Search the forum (see link below) for "regex". There are quite a few posts on the subject. One should be able to help you.