Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Google, Bing, Yandex

Members: 0
Guests: 15
Stats
Files
Topics
Posts
Members
Newest Member
481
3,739
19,386
621
KellieBusb
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Coding » Smaug Compiling Problem
Forum Rules | Mark all | Recent Posts

Smaug Compiling Problem
< Newer Topic :: Older Topic > [chmod problem]

Pages:<< prev 1 next >>
Post is unread #1 Aug 25, 2003, 4:02 pm   Last edited Nov 24, 2007, 3:57 pm by Samson
Go to the top of the page
Go to the bottom of the page

Matteo2303
Apprentice
GroupMembers
Posts57
JoinedAug 25, 2003

Hello, I'm sorry for my bad english but I'm italian.
I download this smaug source code but when I'm trying to compile it on my SO Linux Redhat 9..

#############################################################
[matteo@localhost src]$ make
make smaug
make[1]: Entering directory `/home/matteo/smaug/smaug/src'
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG i3.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG act_comm.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG act_info.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG act_move.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG act_obj.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG act_wiz.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG boards.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG build.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG clans.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG color.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG comm.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG comments.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG const.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG db.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG deity.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG fight.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG handler.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG hashstr.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG ident.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG interp.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG magic.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG makeobjs.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG mapout.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG misc.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG mpxset.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG mud_comm.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG mud_prog.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG player.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG polymorph.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG reset.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG save.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG shops.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG skills.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG special.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG tables.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG track.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG update.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG grub.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG ban.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG services.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG planes.c
gcc -c -O -g2 -Wall -DI3 -DI3SMAUG imm_host.c
rm -f smaug
gcc -o smaug i3.o act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o build.o clans.o color.o comm.o comments.o const.o db.o deity.o fight.o handler.o hashstr.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 reset.o save.o shops.o skills.o special.o tables.o track.o update.o grub.o ban.o services.o planes.o imm_host.o
-lcrypt
chmod g+w smaug
chmod a+x smaug
chmod g+w i3.o act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o build.o clans.o color.o comm.o comments.o const.o db.o deity.o fight.o handler.o hashstr.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 reset.o save.o shops.o skills.o special.o tables.o track.o update.o grub.o ban.o services.o planes.o imm_host.o
make[1]: Leaving directory `/home/matteo/smaug/smaug/src'
[matteo@localhost src]$
#############################################################

The makefile is...

#############################################################
CC = gcc
#PROF = -p
NOCRYPT =

#Uncomment to compile in Cygwin
#CYGWIN = -DCYGWIN

# 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 undefined crypt errors
NEED_CRYPT = -lcrypt

#Intermud-3 - Comment out to disable I3 support in your code
I3 = 1

#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 -g2 -Wall $(CYGWIN) $(PROF) $(NOCRYPT) $(SOLARIS_FLAG)
L_FLAGS = $(OPT_FLAG) $(PROF) $(SOLARIS_LINK) $(NEED_CRYPT)

O_FILES = act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o
build.o clans.o color.o comm.o comments.o const.o db.o deity.o fight.o
handler.o hashstr.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
reset.o save.o shops.o skills.o special.o tables.o
track.o update.o grub.o ban.o services.o planes.o
imm_host.o

C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c boards.c
build.c clans.c color.c comm.c comments.c const.c db.c deity.c fight.c
handler.c hashstr.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
reset.c save.c shops.c skills.c special.c tables.c
track.c update.c grub.c ban.c services.c planes.c
imm_host.c

H_FILES = mud.h color.h bet.h

ifdef I3
C_FILES := i3.c $(C_FILES)
O_FILES := i3.o $(O_FILES)
C_FLAGS := $(C_FLAGS) -DI3 -DI3SMAUG
endif

all:
$(MAKE) smaug

ifdef CYGWIN
smaug: $(O_FILES)
rm -f smaug.exe
$(CC) -o smaug.exe $(O_FILES) $(L_FLAGS)
chmod g+w smaug.exe
chmod a+x smaug.exe
chmod g+w $(O_FILES)

clean:
rm -f *.o smaug.exe *~
else
smaug: $(O_FILES)
rm -f smaug
$(CC) -o smaug $(O_FILES) $(L_FLAGS)
chmod g+w smaug
chmod a+x smaug
chmod g+w $(O_FILES)

clean:
rm -f *.o smaug *~
endif

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

What's the problem? I'm not a coder so if you can learn me how do, step to step, for fix this bug I'm very happy. (Sorry my long post)

Bye and Thank you of everything
matteo
       
Post is unread #2 Aug 25, 2003, 8:22 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

The results you posted were a success, not a failure. It compiled just fine. If it hadn't, there would be error messages displayed. You're ready to fire it up and have some fun
       
Post is unread #3 Aug 26, 2003, 3:05 am
Go to the top of the page
Go to the bottom of the page

Matteo2303
Apprentice
GroupMembers
Posts57
JoinedAug 25, 2003

HEY !! Thank you a lot , and sorry for my previous question but this is my first time on Linux and much things are "strange" for me.
Bye and thank you again for help and for debugged smaug src code.
matteo
       
Pages:<< prev 1 next >>