Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ Compiling the server ➜ It compiled, but with errors?

It compiled, but with errors?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Nonentitydragon   (4 posts)  Bio
Date Mon 06 Nov 2006 02:35 AM (UTC)
Message
This is SMAUG 1.4a MXP.
I use Linux Ubuntu Edgy Eft 6.10.


make smaug
make[1]: Entering directory `/home/zero/smaug/dist/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_move.c
act_move.c:393:15: warning: trigraph ??> ignored, use -trigraphs to enable
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_obj.c
act_obj.c: In function ‘can_layer’:
act_obj.c:1389: warning: suggest explicit braces to avoid ambiguous ‘else’
act_obj.c: In function ‘do_auction’:
act_obj.c:2651: warning: suggest explicit braces to avoid ambiguous ‘else’
act_obj.c:2675: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_wiz.c
act_wiz.c:1637:22: warning: trigraph ??! ignored, use -trigraphs to enable
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG boards.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG build.c
build.c: In function ‘fold_area’:
build.c:6058: warning: suggest explicit braces to avoid ambiguous ‘else’
build.c:6061: warning: suggest explicit braces to avoid ambiguous ‘else’
build.c:6064: warning: suggest explicit braces to avoid ambiguous ‘else’
build.c:6070: warning: suggest explicit braces to avoid ambiguous ‘else’
build.c:6075: warning: suggest explicit braces to avoid ambiguous ‘else’
build.c:6078: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG clans.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG comm.c
comm.c: In function ‘turn_on_mxp’:
comm.c:359: warning: pointer targets in passing argument 2 of ‘write_to_buffer’ differ in signedness
comm.c: In function ‘new_descriptor’:
comm.c:883: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness
comm.c: In function ‘read_from_buffer’:
comm.c:1221: warning: pointer targets in assignment differ in signedness
comm.c:1224: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c:1228: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c:1228: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c:1228: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c:1231: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c:1235: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c:1235: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c:1235: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness
comm.c: In function ‘flush_buffer’:
comm.c:1384: warning: pointer targets in passing argument 2 of ‘write_to_buffer’ differ in signedness
comm.c: In function ‘nanny’:
comm.c:1877: warning: pointer targets in passing argument 2 of ‘write_to_buffer’ differ in signedness
comm.c:1911: warning: pointer targets in passing argument 2 of ‘write_to_buffer’ differ in signedness
comm.c:1953: warning: pointer targets in passing argument 2 of ‘write_to_buffer’ differ in signedness
comm.c:2060: warning: pointer targets in passing argument 2 of ‘write_to_buffer’ differ in signedness
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG comments.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG const.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG db.c
db.c: In function ‘load_resets’:
db.c:1594: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG deity.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG fight.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG handler.c
handler.c: In function ‘get_eq_char’:
handler.c:1335: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG hashstr.c
Top

Posted by Nonentitydragon   (4 posts)  Bio
Date Reply #1 on Mon 06 Nov 2006 02:35 AM (UTC)
Message
Rest of the log:

gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG ibuild.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG ident.c
ident.c: In function ‘set_auth’:
ident.c:311: warning: pointer targets in passing argument 3 of ‘getsockname’ differ in signedness
ident.c:316: warning: pointer targets in passing argument 3 of ‘getpeername’ differ in signedness
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG interp.c
interp.c: In function ‘interpret’:
interp.c:758: warning: format ‘%d’ expects type ‘int’, but argument 7 has type ‘__time_t’
interp.c:758: warning: format ‘%06d’ expects type ‘int’, but argument 8 has type ‘__suseconds_t’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG magic.c
magic.c: In function ‘process_spell_components’:
magic.c:985: warning: suggest explicit braces to avoid ambiguous ‘else’
magic.c:1003: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG makeobjs.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mapout.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG misc.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mpxset.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mud_comm.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG mud_prog.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG player.c
player.c:1024:12: warning: trigraph ??) ignored, use -trigraphs to enable
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG polymorph.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG requests.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG reset.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG save.c
save.c: In function ‘fwrite_obj’:
save.c:583: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
save.c:585: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
save.c:587: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
save.c:589: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
save.c: In function ‘fwrite_mobile’:
save.c:2295: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
save.c:2297: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
save.c:2299: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
save.c:2301: warning: comparisons like X<=Y<=Z do not have their mathematical meaning
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG shops.c
shops.c: In function ‘appraise_all’:
shops.c:1090: warning: suggest explicit braces to avoid ambiguous ‘else’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG skills.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG special.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG tables.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG track.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG update.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG grub.c
grub.c:23: warning: conflicting types for built-in function ‘trunc’
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG stat_obj.c
stat_obj.c:147:13: warning: extra tokens at end of #undef directive
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG ban.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG services.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG planes.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG imm_host.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG colorize.c
colorize.c: In function ‘load_colors’:
colorize.c:39: warning: implicit declaration of function ‘strcpy’
colorize.c:39: warning: incompatible implicit declaration of built-in function ‘strcpy’
rm -f smaug
gcc -o smaug act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o build.o clans.o comm.o comments.o const.o db.o deity.o fight.o handler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o mapout.o misc.o mpxset.o mud_comm.o mud_prog.o player.o polymorph.o requests.o reset.o save.o shops.o skills.o special.o tables.o track.o update.o grub.o stat_obj.o ban.o services.o planes.o imm_host.o colorize.o
chmod g+w smaug
chmod a+x smaug
chmod g+w act_comm.o act_info.o act_move.o act_obj.o act_wiz.o boards.o build.o clans.o comm.o comments.o const.o db.o deity.o fight.o handler.o hashstr.o ibuild.o ident.o interp.o magic.o makeobjs.o mapout.o misc.o mpxset.o mud_comm.o mud_prog.o player.o polymorph.o requests.o reset.o save.o shops.o skills.o special.o tables.o track.o update.o grub.o stat_obj.o ban.o services.o planes.o imm_host.o colorize.o
make[1]: Leaving directory `/home/zero/smaug/dist/src'


I'm not sure if the errors are harmless or not.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #2 on Mon 06 Nov 2006 02:36 AM (UTC)
Message
Those are warnings, not errors. It will run with them, but is better to fix the warnings I suppose.

Why not use FUSS though?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nonentitydragon   (4 posts)  Bio
Date Reply #3 on Mon 06 Nov 2006 02:41 AM (UTC)
Message
Thanks, I just realized that they are warnings :P

I have FUSS, and it runs and compiles very nicely, but I have this problem with it not letting me make new areas...aassign is the only assign that works. Unless of course I messed up somewhere?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #4 on Mon 06 Nov 2006 02:42 AM (UTC)
Message
You should be using vassign.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Nonentitydragon   (4 posts)  Bio
Date Reply #5 on Mon 06 Nov 2006 02:43 AM (UTC)
Message
OMG I am dumb, thanks it works. Now my problems are solved :) thanks again
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #6 on Mon 06 Nov 2006 01:20 PM (UTC)
Message
I'm guessing that the use of vassign needs to be more widely published :)
Top

Posted by Conner   USA  (381 posts)  Bio
Date Reply #7 on Tue 07 Nov 2006 08:20 AM (UTC)
Message
It sure does sound that way. :(
Maybe in the stock codebase the helpfiles and command.dat entries for aasign should be removed/rewritten to refer to vassign for primary use?

-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
Top

Posted by Jetpig   (8 posts)  Bio
Date Reply #8 on Mon 04 Dec 2006 07:13 PM (UTC)
Message
hey i'm compiling rom on 6.10 and i'm getting some of the same warnings. these specifically:

comm.c:944: warning: pointer targets in passing argument 3 of âgetsocknameâ differ in signedness
comm.c:945: warning: pointer targets in passing argument 3 of âacceptâ differ in signedness
comm.c:981: warning: pointer targets in passing argument 3 of âgetpeernameâ differ in signedness

any idea on how to fix those?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #9 on Tue 05 Dec 2006 12:06 AM (UTC)
Message
Wrong section.

And once again, those are only warnings. It should still compile.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


28,704 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.