You can find the Makefile in the code repository by simply going to the merc2.2 page, and hit 'view' for the archive, then just go through the archive. Or I can directly link you :)
Ok removed the charges comment section of the file will try to run it now. :-) From what the installation steps i have taken would they be correct. I have no edited the Makefile or anything just ran the make -k >&! make.out command.
Ok changed the file ran ./startup & I cannot connect to the port 4000 I have also changed to port to make sure it was not a port issue. I am also still getting the charges error. Hmmm weird. I have also tried to install this onto a fedora core 2 system.
Here is what i get when i run make -k [root@www src]# make -k gcc -c -O -Wall comm.c comm.c:151: error: conflicting types for 'accept' /usr/include/sys/socket.h:210: error: previous declaration of 'accept' was here comm.c:151: error: conflicting types for 'accept' /usr/include/sys/socket.h:210: error: previous declaration of 'accept' was here comm.c:152: error: conflicting types for 'bind' /usr/include/sys/socket.h:111: error: previous declaration of 'bind' was here comm.c:152: error: conflicting types for 'bind' /usr/include/sys/socket.h:111: error: previous declaration of 'bind' was here comm.c:154: error: conflicting types for 'getpeername' /usr/include/sys/socket.h:129: error: previous declaration of 'getpeername' was here comm.c:154: error: conflicting types for 'getpeername' /usr/include/sys/socket.h:129: error: previous declaration of 'getpeername' was here comm.c:155: error: conflicting types for 'getsockname' /usr/include/sys/socket.h:115: error: previous declaration of 'getsockname' was here comm.c:155: error: conflicting types for 'getsockname' /usr/include/sys/socket.h:115: error: previous declaration of 'getsockname' was here comm.c: In function `process_output': comm.c:1202: warning: suggest explicit braces to avoid ambiguous `else' make: *** [comm.o] Error 1 make: Target `merc' not remade because of errors. [root@www src]# charges: Command not found.
[root@www src]# make -k gcc -c -O -Wall act_comm.c act_comm.c: In function `note_remove': act_comm.c:171: warning: int format, time_t arg (arg 3) act_comm.c: In function `do_note': act_comm.c:424: warning: int format, time_t arg (arg 3) gcc -c -O -Wall act_info.c gcc -c -O -Wall act_move.c gcc -c -O -Wall act_obj.c gcc -c -O -Wall act_wiz.c gcc -c -O -Wall comm.c comm.c:151: error: conflicting types for 'accept' /usr/include/sys/socket.h:210: error: previous declaration of 'accept' was here comm.c:151: error: conflicting types for 'accept' /usr/include/sys/socket.h:210: error: previous declaration of 'accept' was here comm.c:152: error: conflicting types for 'bind' /usr/include/sys/socket.h:111: error: previous declaration of 'bind' was here comm.c:152: error: conflicting types for 'bind' /usr/include/sys/socket.h:111: error: previous declaration of 'bind' was here comm.c:154: error: conflicting types for 'getpeername' /usr/include/sys/socket.h:129: error: previous declaration of 'getpeername' was here comm.c:154: error: conflicting types for 'getpeername' /usr/include/sys/socket.h:129: error: previous declaration of 'getpeername' was here comm.c:155: error: conflicting types for 'getsockname' /usr/include/sys/socket.h:115: error: previous declaration of 'getsockname' was here comm.c:155: error: conflicting types for 'getsockname' /usr/include/sys/socket.h:115: error: previous declaration of 'getsockname' was here comm.c: In function `process_output': comm.c:1202: warning: suggest explicit braces to avoid ambiguous `else' make: *** [comm.o] Error 1 gcc -c -O -Wall const.c gcc -c -O -Wall db.c db.c: In function `load_mobprogs': db.c:2699: warning: suggest parentheses around assignment used as truth value gcc -c -O -Wall fight.c gcc -c -O -Wall handler.c gcc -c -O -Wall interp.c gcc -c -O -Wall magic.c gcc -c -O -Wall mob_commands.c gcc -c -O -Wall mob_prog.c mob_prog.c: In function `mprog_process_if': mob_prog.c:955: warning: function returns address of local variable mob_prog.c:951: warning: suggest explicit braces to avoid ambiguous `else' mob_prog.c:966: warning: function returns address of local variable mob_prog.c:975: warning: function returns address of local variable mob_prog.c:971: warning: suggest explicit braces to avoid ambiguous `else' mob_prog.c:990: warning: function returns address of local variable mob_prog.c:997: warning: function returns address of local variable mob_prog.c:1012: warning: function returns address of local variable mob_prog.c:1026: warning: function returns address of local variable mob_prog.c:1042: warning: function returns address of local variable mob_prog.c:1057: warning: function returns address of local variable mob_prog.c:1070: warning: function returns address of local variable mob_prog.c:1080: warning: function returns address of local variable mob_prog.c:1083: warning: function returns address of local variable mob_prog.c:1095: warning: function returns address of local variable mob_prog.c: In function `mprog_translate': mob_prog.c:1141: warning: suggest explicit braces to avoid ambiguous `else' mob_prog.c:1164: warning: suggest explicit braces to avoid ambiguous `else' mob_prog.c:1187: warning: suggest explicit braces to avoid ambiguous `else' gcc -c -O -Wall save.c save.c: In function `fwrite_char': save.c:133: warning: int format, time_t arg (arg 3) gcc -c -O -Wall special.c gcc -c -O -Wall update.c make: Target `merc' not remade because of errors.
Btw, I strongly suggest you don't use the root user for casual development. Use root ONLY when you actually need to be able to write to system directories.
Steps i have taken
gzip -d Merc_22.tar.gz | tar xvf -
make -k >&! make.out
Having issues running
./startup &
Get and error
charges: Command not found.
thanks for the help.