One possible thing is that you typed in some spaces at the start of the line. Rather confusingly, the make program distinguishes between leading spaces and a tab.
Make sure you have a tab as the first character. Use an editor (eg. Crimson Editor) that lets you see tabs.
If that doesn't to it post the file and indicate which is line 74.
Alright I probably won't see a response since this is such an old topic but I started off having the same problems as a different poster and it ended up leading me to this post. I've done what was needed to be done and I changed the makefile to have the changes that Gammon suggested. When I type make again I get "Makefile:74: *** missing separator. Stop."
Just wondering what I did to make it do that? I am a very newbie coder so I apologize in advance.
Amended on Fri 20 Mar 2009 12:42 PM (UTC) by Jeremy_S
Message
Well I rewrote the directory for dbs2.0/area. That eliminated a few things but I still get this and then it does nothing and I can no longer type in cyg.
$ ./startup
limit: Command not found.
ulimit: Command not found.
mv: cannot stat '../log/syslog.8': No such file or directory
mv: cannot stat '../log/syslog.7': No such file or directory
mv: cannot stat '../log/syslog.6': No such file or directory
mv: cannot stat '../log/syslog.5': 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 have officially logged onto the mud with MUSH. Everything seems to be working well. Will it run succesfully and "smoothly" even with the log errors?
Amended on Fri 20 Mar 2009 03:23 AM (UTC) by Jeremy_S
Message
I do, it is an empty file/ dir.
It is in my dbs2.0 dir, the log dir itself
is not within my src dir. The area dir also is only within
the dbs2.0 dir. It is not within src, do they have to be within src?
I tried putting log and area files within src and that gave me this:
Amended on Thu 19 Mar 2009 01:45 PM (UTC) by Jeremy_S
Message
I am starting the mud with ./startup within src.
It says that I don't have area directory but I do.
There are two startup files that came with my DBS download. The other startup file (which doesn't seem to work either) is this:
#!/bin/csh -f
# Set the port number.
set port = 9000
if ( "$1" != "" ) set port="$1"
# Change to area directory.
cd ../area
# Set limits.
nohup
nice
limit stack 1024k
ulimit -Sc unlimited
if ( -e shutdown.txt ) rm -f shutdown.txt
while ( 1 )
# If you want to have logs in a different directory,
# change the 'set logfile' line to reflect the directory name.
# # Delete this out if no adb.
# if ( -e core ) then
# echo '$c' | adb ../src/smaug
# endif
# Let's see if this works...
# Using old index value, would be nice to have
# it be the date for the file name
if ( -e core ) then
set index = 1000
while ( 1 )
set crashfile = ../crash/$index.crash
if ( ! -e $crashfile ) break
@ index++
end
\mv core ../src
cd ../src
date > $crashfile
gdb -batch -x commands dbsaga core >> $crashfile
rm -f core
cd ../area
endif
# Restart, giving old connections a chance to die.
if ( -e shutdown.txt ) then
rm -f shutdown.txt
exit 0
endif
sleep 5
end
Ok, I made the adjustments and then I had to search through my fight.o file to make a few adjustments and now my makfile has ran and completed. Now my startup file is having problems..:(
Error Message as follows:
$ ./startup
limit: Command not found.
ulimit: Command not found.
mv: cannot stat '../log/syslog.8': No such file or directory
mv: cannot stat '../log/syslog.7': No such file or directory
mv: cannot stat '../log/syslog.6': No such file or directory
mv: cannot stat '../log/syslog.5': No such file or directory
mv: cannot stat '../log/syslog.4': No such file or directory
mv: cannot stat '../log/syslog.3': No such file or directory
mv: cannot stat '../log/syslog.2': No such file or directory
mv: cannot stat '../log/syslog.1': 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
dbs/area: No such file or directory.
Not sure what this means. Here is my startup file.
Sorry for spamming screen:
set port = 9000
if ( "$1" != "" ) set port="$1"
# Change to area directory.
cd ../area
# Set limits.
nohup
nice
limit stack 1024k
ulimit -Sc unlimited
if ( -e shutdown.txt ) rm -f shutdown.txt
while ( 1 )
# If you want to have logs in a different directory,
# change the 'set logfile' line to reflect the directory name.
# rm ../log/syslog.9
# We have space to archive old log files now...
if ( -e ../log/syslog.9 ) then
set index = 1000
while ( 1 )
set archivefile = ../log/archived/$index.log
if ( ! -e $archivefile ) break
@ index++
end
mv ../log/syslog.9 $archivefile
endif
# # Delete this out if no adb.
# if ( -e core ) then
# echo '$c' | adb ../src/smaug
# endif
# Let's see if this works...
# Using old index value, would be nice to have
# it be the date for the file name
if ( -e core ) then
set index = 1000
while ( 1 )
set crashfile = ../crash/$index.crash
if ( ! -e $crashfile ) break
@ index++
end
\mv core ../src
cd ../src
date > $crashfile
gdb -batch -x commands dbsaga core >> $crashfile
# mv core ../crash/core.$index
rm -f core
cd ../area
endif
# Restart, giving old connections a chance to die.
if ( -e shutdown.txt ) then
rm -f shutdown.txt
exit 0
endif
sleep 10
end
The problem is that the linker is told to use the zlib library before any object files that need it, so it ignores it. If you put the flags at the end, the link succeeds.
I'm not exactly sure what to edit within the makefile. Here is the makefile.
CC = gcc
#PROF = -p
NOCRYPT =
# 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
#Uncomment the line below if you are getting undefined crypt errors
#NEED_CRYPT = -NOCRYPT
#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
OPT_FLAG = -DMCCP
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.