Ok, here's a bit of background.
Successfully run a SmaugFUSS server on Ubuntu 10 (Lucid). At the request of players I've decided to upgrade and begin a new world on AFKMud (mainly for the features and abilities). However I am running into some issues during compiling.
During the make process I get the following warnings:
Compiling o/boards.o....
boards.cpp: In function ‘void load_boards()’:
boards.cpp:1132: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
Compiling o/build.o....
Compiling o/comm.o....
comm.cpp: In function ‘void directory_check()’:
comm.cpp:234: warning: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result
comm.cpp:241: warning: ignoring return value of ‘int chdir(const char*)’, declared with attribute warn_unused_result
comm.cpp:242: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
Compiling o/commands.o....
Compiling o/hotboot.o....
hotboot.cpp: In function ‘void hotboot_recover()’:
hotboot.cpp:792: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result
Compiling o/imm_host.o....
Compiling o/object.o....
new_auth.cpp: In function ‘void name_generator(std::string&)’:
new_auth.cpp:76: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
new_auth.cpp:80: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
new_auth.cpp:86: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
new_auth.cpp:93: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
new_auth.cpp:100: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
new_auth.cpp: In function ‘void pick_name(std::string&, const char*)’:
new_auth.cpp:146: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
new_auth.cpp:150: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
new_auth.cpp:155: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result
Compiling o/objindex.o....
Compiling o/pfiles.o....
pfiles.cpp: In function ‘void do_pfiles(char_data*, std::string)’:
pfiles.cpp:854: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
pfiles.cpp: In function ‘void check_pfiles(time_t)’:
pfiles.cpp:907: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result
Compiling o/player.o....
Now aside of those upon compiling, everything works fine. I can load the MUD and telnet in without any issue, including admin/admin. However though; When I create a new character I get buffer overflows. I'm pretty sure it's due to the errors but I'm not 100%.
I have searched and found gdb and valgrind solutions (kind of) unfortunately gdb and valgrind don't work, or I'm still a bit linux retarded.
Any help is appreciated. All I need to do is get running without crashing and from there I'm golden.