Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Compiling the server ➜ Smaug1.4a (cygwin) x FreeBSD

Smaug1.4a (cygwin) x FreeBSD

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Wishmaster   (2 posts)  Bio
Date Fri 07 May 2004 02:27 PM (UTC)
Message
Hi guys ! Hi Nick !

I'am trying to compile my Smaug1.4a (custom, not FUSS) on a FreeBSD box.
I don't know what is wrong, but when a try to compile I'am getting errors like:

~/KRYNN/src]$ make
"Makefile", line 32: Missing dependency operator
"Makefile", line 33: Missing dependency operator
"Makefile", line 34: Missing dependency operator
"Makefile", line 35: Missing dependency operator
"Makefile", line 36: Missing dependency operator
"Makefile", line 37: Missing dependency operator
"Makefile", line 40: Missing dependency operator
"Makefile", line 41: Missing dependency operator
"Makefile", line 42: Missing dependency operator
"Makefile", line 43: Missing dependency operator
"Makefile", line 44: Missing dependency operator
"Makefile", line 45: Missing dependency operator
make: fatal errors encountered -- cannot continue

Removing the slashes on these lines I get:

~/KRYNN/src]$ make
make smaug
. Stopdon't know how to make smaug
*** Error code 2


Here is my makefile:

CC = gcc
#PROF = -p
NOCRYPT =

# 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 = -lregex

#Uncomment the line below if you are getting undefined crypt errors
NEED_CRYPT = -lcrypt

#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

C_FLAGS = $(OPT_FLAG) -O -g3 -Wall -Wuninitialized $(PROF) $(NOCRYPT) $(DBUGFLG) -DSMAUG $(SOLARIS_FLAG) $(TIME) $(REG)
L_FLAGS = $(OPT_FLAG) $(PROF) $(SOLARIS_LINK) $(NEED_CRYPT) $(NEED_REG)

O_FILES = renumber.o auth.o alias.o 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 \
handler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o \
mapout.o misc.o mpxset.o mud_comm.o mud_prog.o player.o polymorph.o \
requests.o reset.o save.o shops.o skills.o special.o tables.o \
track.o update.o grub.o stat_obj.o ban.o services.o planes.o \
imm_host.o colorize.o who.o

C_FILES = renumber.c auth.c alias.c act_comm.c act_info.c act_move.c act_obj.c act_wiz.c boards.c \
build.c clans.c comm.c comments.c const.c db.c deity.c fight.c \
handler.c hashstr.c ibuild.c ident.c interp.c magic.c makeobjs.c \
mapout.c misc.c mpxset.c mud_comm.c mud_prog.c player.c polymorph.c \
requests.c reset.c save.c shops.c skills.c special.c tables.c \
track.c update.c grub.c stat_obj.c ban.c services.c planes.c \
imm_host.c colorize.c who.c

H_FILES = mud.h bet.h planes.h

all:
make krynn

krynn: $(O_FILES)
rm -f krynn.exe
$(CC) -o krynn.exe $(O_FILES) $(L_FLAGS)

.c.o: mud.h
$(CC) -c $(C_FLAGS) $<

clean:
rm -f *.o smaug *~


In Cygwin all is done ok ;/
Is possible to compile Smaug for Cygwin in FreeBSD ? How ? What is wrong ?

Thanks and sorry about my english ;)
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Sat 08 May 2004 02:12 PM (UTC)
Message
Ah well, SmaugFUSS can compile fine under Cygwin because it has a flag for it in the Makefile.

CC      = gcc
#PROF    = -p
NOCRYPT =

#Uncomment to compile in Cygwin
#CYGWIN = -DCYGWIN


It can be found under the Downloads section.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #2 on Mon 10 May 2004 06:55 AM (UTC)
Message
For a start I would get rid of the .exe in the makefile, as that only applies to Windows. ie. change krynn.exe to krynn.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Wishmaster   (2 posts)  Bio
Date Reply #3 on Mon 10 May 2004 12:44 PM (UTC)
Message
Thanks Nick and all guys who support us.

Looking my makefile under joe editor, I see in the end of all lines a underlined M. I think this is a windows specific character, so I removed this.
Now my error message is:

~/KRYNN/src]$ make clean
rm -f *.o smaug *~
[ircadmin@reggazzo:~/KRYNN/src]$ make
make krynn
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG renumber.c
In file included from renumber.c:15:
mud.h:5: crypt.h: No such file or directory
*** Error code 1

Stop in /usr/home/ircadmin/KRYNN/src.
*** Error code 1

Anyone can help me ?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #4 on Mon 10 May 2004 09:38 PM (UTC)
Message
Search this forum for "crypt" - this question must have come up 100 times.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Jobey5000   (13 posts)  Bio
Date Reply #5 on Wed 12 May 2004 04:24 AM (UTC)

Amended on Wed 12 May 2004 10:22 PM (UTC) by Nick Gammon

Message
here is somthing interesting...

Quote:
Search this forum for "crypt" - this question must have come up 100 times.


i searched for an hour or two looking at posts that say somthing close to that, so ill tell you all what i was told, to disable crypt and get rid of the errors make sure the NOCRYPT line near the top of the makefile says

NOCRYPT = -DNOCRYPT

this worked for my Star Wars MUD witch was derrived from SMAUG.
Top

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.


20,952 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.