Compiling Dikumud:Pirate

Posted by Jake on Mon 31 Dec 2001 08:04 AM — 2 posts, 12,768 views.

#0
I couldn't figure where else to post this but hopefully here is acceptable. I have been mudding for years and finally decided it time to try and start one of my own. I've been screwing around with different sourcecodes and such and managed to get some of them compiled but I've run into a problem with this dikumud: Pirate sourcecode. When compiling it I get the following errors:

comm.c: In function 'game_loop':
comm.c:262: warning passing arg 2 of 'gettimeofday' from incompatible pointer type
comm.c:297: warning: passing arg 2 of 'gettimeofday' from incompatible pointer type
comm.c: In function 'init_socket':
comm.c:619: warning: passing arg 1 of 'bzero' from incompatible pointer type
comm.c:650: too many arguments to function 'bind'
comm.c: In function 'new_connection':
comm.c:637: warning: passing arg 2 of 'getsockname' from incompatible pointer type
comm.c:673: warning: passing arg 2 of 'accept' from incompatible pointer type

Any help at all would be great, I am new to all this but it seems like so much fun!
Thanks,
Jake
Australia Forum Administrator #1
These are just warnings, I wouldn't worry unless it doesn't link or work.

However to work on them you would need to look up the function (eg. "man gettimeofday") find what arguments are expected, edit the source and see what it is actually passing as a parameter.