Login
User Name:

Password:



Register
Forgot your password?
LOP 1.39r1
Author: Remcon
Submitted by: Remcon
Yaeger areas
Author: Yaeger
Submitted by: Cyberthrope
The City of Anon
Author: Yaeger
Submitted by: Cyberthrope
The Walls of Anon - Smaug
Author: Yaeger
Submitted by: Cyberthrope
LOP 1.39
Author: Remcon
Submitted by: Remcon
CommonCrawl, Yahoo!, Remcon, Yandex, Google

Members: 1
Guests: 0
Stats
Files
Topics
Posts
Members
Newest Member
375
3,323
16,512
561
Aurin
Affiliates
Smaug Building Institute Arthmoor
» SmaugMuds.org » Codebases » SmaugFUSS » Smaugfuss in Cygwin
Forum Rules | Mark all | Recent Posts

Smaugfuss in Cygwin
< Newer Topic :: Older Topic > Makefile errors

Pages:<< prev 1, 2, 3, 4 next >>
Post is unread #1 Dec 9, 2009, 8:49 am
Go to the bottom of the page Go to the top of the page
Zaphod
Fledgling
GroupMembers
Posts38
JoinedMar 13, 2006

I've been trying to get smaugfuss to run in cygwin, which i know i had working several years ago when i coded before. However this time around, when i makefile, i am getting a whole ton of "command not found" errors.

I read the post here about what packages you need for cygwin, and have included them in the cygwin dload, but the errors remain.

Could someone please tell me what i'm doing wrong/missing?

       
Post is unread #2 Dec 9, 2009, 8:53 am
Go to the bottom of the page Go to the top of the page


Hanaisse
Magician
GroupMembers
Posts196
JoinedNov 25, 2007
WWW

#Uncomment to compile in Cygwin
#CYGWIN = -DCYGWIN

Did you uncomment this? .........................
******************************
aka Hana Owner in Training: Fury of the Gods (in development)
laugh. dance. cure.
       
Post is unread #3 Dec 9, 2009, 9:20 am   Last edited Dec 9, 2009, 9:23 am by Zaphod
Go to the bottom of the page Go to the top of the page
Zaphod
Fledgling
GroupMembers
Posts38
JoinedMar 13, 2006

no i haven't, but i'm not seeing that line in the makefile file...am i looking in the wrong place?

*edit* yes i was, was looking at the makefile in the smaugfuss folder, not in the src folder

thanks :)
       
Post is unread #4 Dec 9, 2009, 9:35 am
Go to the bottom of the page Go to the top of the page
Zaphod
Fledgling
GroupMembers
Posts38
JoinedMar 13, 2006

hmm, still getting a ton of missing command error messages, and i see a huge section of code commented out in makefile:

clean:
@rm -f o/*.o smaug dependencies.d resolver resolver.o *~
endif

dns: resolver.o
rm -f resolver
$(CC) $(D_FLAGS) -o resolver resolver.o
@echo "Done compiling DNS resolver.";
chmod g+w resolver
chmod a+x resolver
chmod g+w resolver.o

indent:
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(C_FILES)
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(H_FILES)

indentclean:
rm *.c~ *.h~

o/%.o: %.c
echo " Compiling $@....";
$(CC) -c $(C_FLAGS) $< -o $@

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

This looks like part of the problem here, what should this line of code be: @rm -f o/*.o smaug dependencies.d resolver resolver.o *~
       
Post is unread #5 Dec 9, 2009, 9:44 am
Go to the bottom of the page Go to the top of the page


David Haley
Sorcerer
GroupMembers
Posts902
JoinedJan 29, 2007
WWW

Are you sure that you have all the necessary Cygwin packages installed, like gcc etc.? You say you have the packages installed but getting "command not found" when running 'make' is a very strong hint that packages are missing.

Try, e.g., just "gcc --version" and see what you get. .........................
David Haley
Head Coder, Legends of the Darkstone
BabbleMUD Project
http://david.the-haleys.org
       
Post is unread #6 Dec 9, 2009, 9:46 am
Go to the bottom of the page Go to the top of the page


Caius
Magician
GroupMembers
Posts118
JoinedJan 29, 2006
WWW

I think you'll have to post those error messages, otherwise it's impossible to guess what's wrong with the setup.
       
Post is unread #7 Dec 9, 2009, 9:49 am
Go to the bottom of the page Go to the top of the page


Hanaisse
Magician
GroupMembers
Posts196
JoinedNov 25, 2007
WWW

Looks fine to me.
Maybe you could show us exactly what errors you're getting when you make? (use code tags) That might help better.
I'm also assuming you're using the latest version of SmaugFUSS 1.9? .........................
******************************
aka Hana Owner in Training: Fury of the Gods (in development)
laugh. dance. cure.
       
Post is unread #8 Dec 9, 2009, 9:50 am
Go to the bottom of the page Go to the top of the page
Zaphod
Fledgling
GroupMembers
Posts38
JoinedMar 13, 2006

gcc-- version
bash: gcc--version: command not found.

all the packages *should* be there, i completely reinstalled cygwin more than once already, the last time i did it i not only selected gcc, make, perl and tcsh, but also included all the gcc packages thinking maybe that would help, since just including the gcc, perl, make, and tcsh didn't resolve the errors.

It's been 3 or more years since i've used cygwin, sorry if i seem like a n00b
       
Post is unread #9 Dec 9, 2009, 9:52 am
Go to the bottom of the page Go to the top of the page


Caius
Magician
GroupMembers
Posts118
JoinedJan 29, 2006
WWW


Zaphod said:

gcc-- version
bash: gcc--version: command not found.

all the packages *should* be there, i completely reinstalled cygwin more than once already, the last time i did it i not only selected gcc, make, perl and tcsh, but also included all the gcc packages thinking maybe that would help, since just including the gcc, perl, make, and tcsh didn't resolve the errors.

It's been 3 or more years since i've used cygwin, sorry if i seem like a n00b

gcc <space> --version
You put the space in the wrong place.
       
Post is unread #10 Dec 9, 2009, 9:54 am
Go to the bottom of the page Go to the top of the page
Zaphod
Fledgling
GroupMembers
Posts38
JoinedMar 13, 2006

i'm actually using smaugfuss 1.7, the mud i've been asked to code for is running on 1.6, but the 1.6 download link only gave me a patch, not the whole version, so i dloaded 1.7 instead. I'd prefer to do the coding on my own machine, then port it over after it's debugged.

I would love to copy/paste my cygwin output here for you, but can't figure out how to do that, linux/cygwin is something i'm still learning, i'm a windows guy :(
       
Post is unread #11 Dec 9, 2009, 9:55 am
Go to the bottom of the page Go to the top of the page
Zaphod
Fledgling
GroupMembers
Posts38
JoinedMar 13, 2006

gcc version 3.4.4
       
Post is unread #12 Dec 9, 2009, 9:59 am
Go to the bottom of the page Go to the top of the page


Hanaisse
Magician
GroupMembers
Posts196
JoinedNov 25, 2007
WWW

Does your makefile say
CC      = g++

at the top?
Sorry, I've never looked at 1.7. .........................
******************************
aka Hana Owner in Training: Fury of the Gods (in development)
laugh. dance. cure.
       
Post is unread #13 Dec 9, 2009, 10:03 am
Go to the bottom of the page Go to the top of the page
Zaphod
Fledgling
GroupMembers
Posts38
JoinedMar 13, 2006


Hanaisse said:

Does your makefile say
CC      = g++

at the top?
Sorry, I've never looked at 1.7.


it has CC = gcc
       
Post is unread #14 Dec 9, 2009, 10:07 am
Go to the bottom of the page Go to the top of the page


Hanaisse
Magician
GroupMembers
Posts196
JoinedNov 25, 2007
WWW

Just guessing here, but try changing it to g++?
Also, to copy try CTRL+C. It would really help to see what the errors are. .........................
******************************
aka Hana Owner in Training: Fury of the Gods (in development)
laugh. dance. cure.
       
Post is unread #15 Dec 9, 2009, 10:16 am
Go to the bottom of the page Go to the top of the page
Zaphod
Fledgling
GroupMembers
Posts38
JoinedMar 13, 2006

i tried control c on the cygwin screen, all that happened was it showing me the current path i am in, and a new line
also tried shift print screen, control print screen, and alt print screen, none will copy :(
       
Post is unread #16 Dec 9, 2009, 10:26 am
Go to the bottom of the page Go to the top of the page
Zaphod
Fledgling
GroupMembers
Posts38
JoinedMar 13, 2006

ok, doing this the hard way...

CC: =: no such file or directory
CC: g++: no such file or directory

./makefile line 5: cygwin: command not found
./makefile line 12 EXPORT_SYMBOLS: command not found
./makefile line 19: IMC: command not found
./makefile line 21: W_FLAGS: command not found
./makefile line 23: W_FLAGS: command not found
./makefile line 23: SOLARIS_FLAGS: command not found
./makefile line 23: PROF: command not found
./makefile line 23: EXPORT_SYMBOLS: command not found
./makefile line 23: C_FLAGS: command not found

it continues like that with anywhere from 1 to 4 "command not found" errors on most lines up to line 68
       
Post is unread #17 Dec 9, 2009, 10:31 am
Go to the bottom of the page Go to the top of the page


David Haley
Sorcerer
GroupMembers
Posts902
JoinedJan 29, 2007
WWW

Try clicking on the window icon in the upper-left, go to edit, then 'Mark' -- then you should be able to select a block of text, then press 'enter' to copy it. You should then be able to paste it here.

It looks like the makefile is borked somehow... Not entirely sure how, but it shouldn't be trying to use those as commands. Can you post the whole makefile? (You can open it from Windows if it's easier to copy/paste for you) .........................
David Haley
Head Coder, Legends of the Darkstone
BabbleMUD Project
http://david.the-haleys.org
       
Post is unread #18 Dec 9, 2009, 10:38 am
Go to the bottom of the page Go to the top of the page
Zaphod
Fledgling
GroupMembers
Posts38
JoinedMar 13, 2006

ahh THANK YOU, that was driving me nuts

$ ./makefile
CC: =: No such file or directory
CC: g++: No such file or directory
CC: no input files
./makefile: line 5: CYGWIN: command not found
./makefile: line 12: EXPORT_SYMBOLS: command not found
./makefile: line 19: IMC: command not found
./makefile: line 21: W_FLAGS: command not found
./makefile: line 23: W_FLAGS: command not found
./makefile: line 23: SOLARIS_FLAG: command not found
./makefile: line 23: PROF: command not found
./makefile: line 23: EXPORT_SYMBOLS: command not found
./makefile: line 23: C_FLAGS: command not found
./makefile: line 24: PROF: command not found
./makefile: line 24: SOLARIS_LINK: command not found
./makefile: line 24: NEED_DL: command not found
./makefile: line 24: L_FLAGS: command not found
./makefile: line 25: D_FLAGS: command not found
./makefile: line 26: PROF: command not found
./makefile: line 26: SOLARIS_LINK: command not found
./makefile: line 26: D_FLAGS: command not found
./makefile: line 28: C_FILES: command not found
./makefile: line 35: ifdef: command not found
./makefile: line 36: C_FILES: command not found
./makefile: line 36: C_FILES: command not found
./makefile: line 37: C_FLAGS: command not found
./makefile: line 37: C_FLAGS: command not found
./makefile: line 38: endif: command not found
./makefile: line 40: C_FILES: command not found
./makefile: line 40: patsubst: command not found
./makefile: line 40: O_FILES: command not found
./makefile: line 42: wildcard: command not found
./makefile: line 42: H_FILES: command not found
./makefile: line 44: all:: command not found
MAKE: *** No rule to make target `For', needed by `D_FLAGS'. Stop.
./makefile: line 45: -s: command not found
MAKE: *** No rule to make target `For', needed by `D_FLAGS'. Stop.
./makefile: line 46: -s: command not found
./makefile: line 49: -include: command not found
./makefile: line 51: ifdef: command not found
./makefile: line 52: O_FILES: command not found
./makefile: line 52: smaug:: command not found
./makefile: line 54: O_FILES: command not found
CC: no input files
./makefile: line 56: O_FILES: command not found
./makefile: line 56: L_FLAGS: command not found
./makefile: line 56: -o: command not found
./makefile: line 57: @echo: command not found
CC: no input files
./makefile: line 58: C_FLAGS: command not found
./makefile: line 58: C_FILES: command not found
./makefile: line 58: @: command not found
./makefile: line 59: @perl: command not found
./makefile: line 60: @echo: command not found
chmod: cannot access `smaug.exe': No such file or directory
chmod: cannot access `smaug.exe': No such file or directory
./makefile: line 63: O_FILES: command not found
chmod: missing operand after `g+w'
Try `chmod --help' for more information.
./makefile: line 65: clean:: command not found
./makefile: line 66: @rm: command not found
./makefile: line 68: syntax error near unexpected token `else'
./makefile: line 68: `else'
       
Post is unread #19 Dec 9, 2009, 10:40 am
Go to the bottom of the page Go to the top of the page
Zaphod
Fledgling
GroupMembers
Posts38
JoinedMar 13, 2006

and here is the makefile:

CC = g++
#PROF = -p

#Uncomment to compile in Cygwin
CYGWIN = -DCYGWIN

#Uncomment the line below if you are getting undefined references to dlsym, dlopen, and dlclose.
#Comment it out if you get errors about ldl not being found.
#NEED_DL = -ldl

#Some systems need this for dynamic linking to work.
EXPORT_SYMBOLS = -export-dynamic

# Uncomment the two lines below if compiling on a Solaris box
#SOLARIS_FLAG = -Dsun -DSYSV
#SOLARIS_LINK = -lnsl -lsocket

#IMC2 - Comment out to disable IMC2 support
IMC = 1

W_FLAGS = -Wall -Werror -Wshadow -Wformat-security -Wpointer-arith -Wcast-align -Wredundant-decls -Wstrict-prototypes

C_FLAGS = -g2 $(W_FLAGS) $(SOLARIS_FLAG) $(PROF) $(EXPORT_SYMBOLS)
L_FLAGS = $(PROF) $(SOLARIS_LINK) -lz $(NEED_DL)
D_FLAGS : For the DNS Slave process. No need in linking all the extra libs for this.
D_FLAGS = -g2 -O $(PROF) $(SOLARIS_LINK)

C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c ban.c boards.c \
build.c clans.c color.c comm.c comments.c const.c db.c deity.c dns.c fight.c \
handler.c hashstr.c hotboot.c imm_host.c interp.c magic.c makeobjs.c mapout.c mccp.c \
misc.c mpxset.c mud_comm.c mud_prog.c planes.c player.c polymorph.c \
reset.c save.c services.c sha256.c shops.c skills.c special.c tables.c \
track.c update.c

ifdef IMC
C_FILES := imc.c $(C_FILES)
C_FLAGS := $(C_FLAGS) -DIMC -DIMCSMAUG
endif

O_FILES := $(patsubst %.c,o/%.o,$(C_FILES))

H_FILES = $(wildcard *.h)

all:
$(MAKE) -s smaug
$(MAKE) -s dns

# pull in dependency info for *existing* .o files
-include dependencies.d

ifdef CYGWIN
smaug: $(O_FILES)
rm -f smaug.exe
dlltool --export-all --output-def smaug.def $(O_FILES)
dlltool --dllname smaug.exe --output-exp smaug.exp --def smaug.def
$(CC) -o smaug.exe $(O_FILES) smaug.exp $(L_FLAGS)
@echo "Generating dependency file ...";
@$(CC) -MM $(C_FLAGS) $(C_FILES) > dependencies.d
@perl -pi -e 's.^([a-z]).o/$$1.g' dependencies.d
@echo "Done compiling mud.";
chmod g+w smaug.exe
chmod a+x smaug.exe
chmod g+w $(O_FILES)

clean:
@rm -f o/*.o smaug.exe dependencies.d resolver.exe resolver.o */

else
smaug: $(O_FILES)
rm -f smaug
$(CC) -export-dynamic -o smaug $(O_FILES) $(L_FLAGS)
@echo "Generating dependency file ...";
@$(CC) -MM $(C_FLAGS) $(C_FILES) > dependencies.d
@perl -pi -e 's.^([a-z]).o/$$1.g' dependencies.d
@echo "Done compiling mud.";
chmod g+w smaug
chmod a+x smaug
chmod g+w $(O_FILES)

clean:
@rm -f o/*.o smaug dependencies.d resolver resolver.o *~
endif

dns: resolver.o
rm -f resolver
$(CC) $(D_FLAGS) -o resolver resolver.o
@echo "Done compiling DNS resolver.";
chmod g+w resolver
chmod a+x resolver
chmod g+w resolver.o

indent:
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(C_FILES)
indent -ts3 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(H_FILES)

indentclean:
rm *.c~ *.h~

o/%.o: %.c
echo " Compiling $@....";
$(CC) -c $(C_FLAGS) $< -o $@

.c.o: mud.h
$(CC) -c $(C_FLAGS) $<
       
Post is unread #20 Dec 9, 2009, 10:54 am
Go to the bottom of the page Go to the top of the page


Hanaisse
Magician
GroupMembers
Posts196
JoinedNov 25, 2007
WWW

Hrm, are you in the src directory when typing make? (I just use make, not makefile with no / in front) .........................
******************************
aka Hana Owner in Training: Fury of the Gods (in development)
laugh. dance. cure.
       
Pages:<< prev 1, 2, 3, 4 next >>

 
Contact Us