Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Google, DotBot, Bing

Members: 0
Guests: 13
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Coding » need help with this
Forum Rules | Mark all | Recent Posts

need help with this
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Jul 29, 2013, 6:40 pm
Go to the top of the page
Go to the bottom of the page

Kirito
Fledgling
GroupMembers
Posts4
JoinedJul 29, 2013

I tried to compile this code base i got from a friend and keep getting this

make
make -s -j8 swr
Compiling o/act_comm.o....
Compiling o/act_info.o....
make[1]: gcc-3.4: Command not found
make[1]: gcc-3.4: Command not found
make[1]: *** [o/act_comm.o] Error 127
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [o/act_info.o] Error 127
make: *** [all] Error 2


any suggestions?
       
Post is unread #2 Jul 29, 2013, 7:00 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,858
JoinedJul 26, 2005

open up the makefile and look for a line that contains CC = gcc-3.4 and take off the -3.4 and give that a try
       
Post is unread #3 Jul 29, 2013, 7:04 pm
Go to the top of the page
Go to the bottom of the page

Kirito
Fledgling
GroupMembers
Posts4
JoinedJul 29, 2013

nope still get the same errors
       
Post is unread #4 Jul 29, 2013, 7:08 pm   Last edited Jul 29, 2013, 7:10 pm by Remcon
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,858
JoinedJul 26, 2005

can you copy and paste what you have in your makefile? try doing a "make clean" (or maybe "make purge" and then "make";) depending on how you have everything setup.
       
Post is unread #5 Jul 29, 2013, 7:11 pm
Go to the top of the page
Go to the bottom of the page

Kirito
Fledgling
GroupMembers
Posts4
JoinedJul 29, 2013

CC = gcc-3.4
PROF =
NOCRYPT = -lcrypt

#Memory Debugger - comment out to turn the debugger off, uncomment to use it.
#MEMDEBUG = 1

#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 line below if you are getting warnings about undefined math functions
NEED_MATH = -lm

C_FLAGS = -g2 -Wall -DNS_SLAVE $(PROF) $(DBUGFLG) $(EXPORT_SYMBOLS)
L_FLAGS = $(PROF) $(NEED_MATH) -lz $(NEED_DL)

#D_FLAGS : For the DNS Slave process. No need in linking all the extra libs for this.
D_FLAGS = $(PROF) $(SOLARIS_LINK)

C_FILES = act_comm.c act_info.c act_move.c act_obj.c act_wiz.c arena.c bits.c \
board.c bounty.c build.c clans.c comm.c comments.c const.c db.c fight.c \
freeze.c handler.c hashstr.c hiscores.c host.c id.c immcomm.c interp.c land.c \
magic.c makeobjs.c misc.c msweapons.c mud_comm.c mud_prog.c pfiles.c player.c \
relationship.c renumber.c reset.c save.c sha256.c shops.c skills.c space.c \
special.c swskills.c tables.c track.c update.c xbv.c

ifdef MEMDEBUG
C_FILES := fortify.c $(C_FILES)
C_FLAGS := $(C_FLAGS) -DFORTIFY
endif

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

H_FILES = $(wildcard *.h)

all:
make -s -j8 swr

dns: dns_slave.o
rm -f dns_slave
$(CC) $(D_FLAGS) -o dns_slave dns_slave.o
chmod g+w dns_slave
chmod a+x dns_slave
chmod g+w dns_slave.o

ifdef CYGWIN
swr: $(O_FILES)
rm -f swr.exe
dlltool --export-all --output-def swr.def $(O_FILES)
dlltool --dllname swr.exe --output-exp swr.exp --def swr.def
$(CC) -o swr.exe $(O_FILES) swr.exp $(L_FLAGS) $(NOCRYPT)
echo "Done compiling mud.";
chmod g+w swr.exe
chmod a+x swr.exe
chmod g+w $(O_FILES)
else
swr: $(O_FILES)
rm -f swr
$(CC) -export-dynamic -o swr $(O_FILES) $(L_FLAGS) $(NOCRYPT)
echo "Done compiling mud.";
chmod g+w swr
chmod g+w $(O_FILES)
endif

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

clean:
rm -f o/*.o

indent:
indent -ts4 -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 -ts4 -nut -nsaf -nsai -nsaw -npcs -npsl -ncs -nbc -bls -prs -bap -cbi0 -cli3 -bli0 -l125 -lp -i3 -cdb -c1 -cd1 -sc -pmt $(H_FILES)

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




thats what it was originally
       
Post is unread #6 Jul 29, 2013, 7:17 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,858
JoinedJul 26, 2005

yea try making it
CC = gcc
PROF = 
NOCRYPT = -lcrypt 

and doing a make clean and then a make at the very least when it complains it should say
make[1]: gcc: Command not found 

instead. In which case you will need to make sure gcc is installed.
       
Post is unread #7 Jul 29, 2013, 7:20 pm
Go to the top of the page
Go to the bottom of the page

Kirito
Fledgling
GroupMembers
Posts4
JoinedJul 29, 2013

new stuff since i changed that

make
make -s -j8 swr
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/arena.o....
Compiling o/bits.o....
Compiling o/board.o....
bits.c: In function âdo_setabitâ:
bits.c:449: warning: the address of âargâ will always evaluate as âtrueâ
bits.c: In function âdo_abitâ:
bits.c:552: warning: the address of âbufâ will always evaluate as âtrueâ
bits.c:566: warning: the address of âbufâ will always evaluate as âtrueâ
bits.c: In function âdo_qbitâ:
bits.c:613: warning: the address of âbufâ will always evaluate as âtrueâ
bits.c:633: warning: the address of âbufâ will always evaluate as âtrueâ
bits.c: In function âdo_mpasetâ:
bits.c:693: warning: the address of âarg1â will always evaluate as âtrueâ
bits.c:699: warning: the address of âarg2â will always evaluate as âtrueâ
bits.c: In function âdo_mpqsetâ:
bits.c:739: warning: the address of âarg1â will always evaluate as âtrueâ
bits.c:745: warning: the address of âarg2â will always evaluate as âtrueâ
act_wiz.c: In function âdo_invisâ:
act_wiz.c:4275: warning: the address of âargâ will always evaluate as âtrueâ
act_wiz.c: In function âdo_bestowâ:
act_wiz.c:4933: warning: the address of âargâ will always evaluate as âtrueâ
act_wiz.c:4953: warning: the address of âcmd_tmpâ will always evaluate as âtrueâ
act_wiz.c: In function âdo_makeimmâ:
act_wiz.c:7476: warning: the address of âarg1â will always evaluate as âtrueâ
act_wiz.c:7476: warning: the address of âarg2â will always evaluate as âtrueâ
Assembler messages:
Assembler messages:
Fatal error: Assembler messages:
Assembler messages:
can't create o/act_info.o: No such file or directoryFatal error: Fatal error: Fa tal error:
can't create o/bits.o: No such file or directorycan't create o/act_obj.o: No suc h file or directorycan't create o/arena.o: No such file or directory


Assembler messages:
Assembler messages:
Assembler messages:
Fatal error: Assembler messages:
Fatal error: Fatal error: Fatal error: can't create o/act_move.o: No such file o r directory
can't create o/act_wiz.o: No such file or directorycan't create o/board.o: No su ch file or directorycan't create o/act_comm.o: No such file or directory


make[1]: *** [o/arena.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [o/board.o] Error 1
make[1]: *** [o/bits.o] Error 1
make[1]: *** [o/act_obj.o] Error 1
make[1]: *** [o/act_info.o] Error 1
make[1]: *** [o/act_move.o] Error 1
make[1]: *** [o/act_comm.o] Error 1
make[1]: *** [o/act_wiz.o] Error 1
make: *** [all] Error 2
       
Post is unread #8 Jul 29, 2013, 7:28 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,858
JoinedJul 26, 2005

can't create o/act_info.o: No such file or directoryFatal error: Fatal error: Fa tal error: 
can't create o/bits.o: No such file or directorycan't create o/act_obj.o: No suc h file or directorycan't create o/arena.o: No such file or directory 

this and the one like it means that while in your src add another directory named "o" for it to put the files in. the others are warnings and we will go over them if you post the lines of code in question.
       
Post is unread #9 Jul 29, 2013, 7:45 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,858
JoinedJul 26, 2005

it should be something like "mkdir o" while in the src directory.
       
Pages:<< prev 1 next >>