Ive compiled alot of different codebases so far, and the only one thats giving me alot of trouble is dystopia. This is the smaug board but this error is kind of like some of the ones that I had with smaug last night so here goes.
Near the end of the make, when it reaches comm.c, i get several implicit declarations. They are as follows.
comm.c:48:48: execinfo.h: No such file or directory
comm.c: In function 'lookup_address':
comm.c:1141: warning: implicit declaration of function 'gethostbyaddr_r'
comm.c: In function 'iBacktrace':
comm.c:1554: warning: implicit declaration of function 'backtrace'
comm.c:1556: warning: implicit declaration of function 'backtrace_symbols'
comm.c:1556: warning: assignment makes pointed from integer without a cast
make: *** [comm.o] Error 1
I had to hand type all of that (havent figured out how to copy paste yet) heh. Anyhow, my makefile is as follows.
CC = gcc
NOCRYPT = -DNOCRYPT
C_FLAGS = -Wall -g $(NOCRYPT)
L_FLAGS = -lz -lpthread -rdynamic
O_FILES = act_comm.o act_info.o act_move.o act_obj.o act_wiz.o kav_wiz.o \
kav_soundex.o kav_fight.o kav_info.o board.o build.o social-edit.o \
fight.o arena.o mccp.o db.o x-socials.o interp.o handler.o \
mem.o olc.o olc_act.o olc_save.o desc_map.o wizutil.o magic.o bit.o \
update.o const.o save.o special.o string.o jope.o msp.o comm.o \
jobo_quest.o jobo_update.o jobo_save.o jobo_comm.o jobo_fight.o \
jobo_act.o jobo_wiz.o jobo_util.o jobo_shop.o
merc: $(O_FILES)
rm -f dystopia
$(CC) -o dystopia $(O_FILES) $(L_FLAGS)
chmod g+w dystopia
chmod g+w $(O_FILES)
.c.o: merc.h
$(CC) -c $(C_FLAGS) $<
clean :
rm -f *.o
could anyone please help me figure out whats wrong? =P Thanks.
Near the end of the make, when it reaches comm.c, i get several implicit declarations. They are as follows.
comm.c:48:48: execinfo.h: No such file or directory
comm.c: In function 'lookup_address':
comm.c:1141: warning: implicit declaration of function 'gethostbyaddr_r'
comm.c: In function 'iBacktrace':
comm.c:1554: warning: implicit declaration of function 'backtrace'
comm.c:1556: warning: implicit declaration of function 'backtrace_symbols'
comm.c:1556: warning: assignment makes pointed from integer without a cast
make: *** [comm.o] Error 1
I had to hand type all of that (havent figured out how to copy paste yet) heh. Anyhow, my makefile is as follows.
CC = gcc
NOCRYPT = -DNOCRYPT
C_FLAGS = -Wall -g $(NOCRYPT)
L_FLAGS = -lz -lpthread -rdynamic
O_FILES = act_comm.o act_info.o act_move.o act_obj.o act_wiz.o kav_wiz.o \
kav_soundex.o kav_fight.o kav_info.o board.o build.o social-edit.o \
fight.o arena.o mccp.o db.o x-socials.o interp.o handler.o \
mem.o olc.o olc_act.o olc_save.o desc_map.o wizutil.o magic.o bit.o \
update.o const.o save.o special.o string.o jope.o msp.o comm.o \
jobo_quest.o jobo_update.o jobo_save.o jobo_comm.o jobo_fight.o \
jobo_act.o jobo_wiz.o jobo_util.o jobo_shop.o
merc: $(O_FILES)
rm -f dystopia
$(CC) -o dystopia $(O_FILES) $(L_FLAGS)
chmod g+w dystopia
chmod g+w $(O_FILES)
.c.o: merc.h
$(CC) -c $(C_FLAGS) $<
clean :
rm -f *.o
could anyone please help me figure out whats wrong? =P Thanks.