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
➜ makefile error how do i fix this
|
makefile error how do i fix this
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Darzeth
(36 posts) Bio
|
| Date
| Thu 15 Jun 2006 02:12 AM (UTC) |
| Message
| $ make
make smaug
make[1]: Entering directory `/cygdrive/c/dist/src'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_comm.c
act_comm.c: In function `init_profanity_checker':
act_comm.c:3180: warning: implicit declaration of function `re_comp'
act_comm.c:3180: warning: assignment makes pointer from integer without a cast
act_comm.c: In function `is_profane':
act_comm.c:3295: warning: implicit declaration of function `re_exec'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_info.c
act_info.c: In function `do_password':
act_info.c:3344: warning: implicit declaration of function `crypt'
act_info.c:3344: warning: assignment makes pointer from integer without a cast
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_move.c
act_move.c:393:15: warning: trigraph ??> ignored, use -trigraphs to enable
act_move.c: In function `generate_exit':
act_move.c:604: warning: use of cast expressions as lvalues is deprecated
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_obj.c
act_obj.c: In function `can_layer':
act_obj.c:1383: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c: In function `do_auction':
act_obj.c:2634: warning: suggest explicit braces to avoid ambiguous `else'
act_obj.c:2658: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG act_wiz.c
act_wiz.c:1552:22: warning: trigraph ??! ignored, use -trigraphs to enable
act_wiz.c: In function `do_form_password':
act_wiz.c:5267: warning: implicit declaration of function `crypt'
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG boards.c
gcc -c -O -g3 -Wall -Wuninitialized -DSMAUG build.c
build.c: In function `do_mset':
build.c:1617: warning: implicit declaration of function `crypt'
build.c:1617: warning: assignment makes pointer from integer without a cast
build.c: In function `fold_area':
build.c:5960: warning: suggest explicit braces to avoid ambiguous `else'
build.c:5963: warning: suggest explicit braces to avoid ambiguous `else'
build.c:5966: warning: suggest explicit braces to avoid ambiguous `else'
build.c:5972: warning: suggest explicit braces to avoid ambiguous `else'
build.c:5977: warning: suggest explicit braces to avoid ambiguous `else'
build.c:5980: 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 `nanny':
comm.c:1652: warning: implicit declaration of function `crypt'
comm.c:1652: warning: passing arg 1 of `strcmp' makes pointer from integer witho
ut a cast
comm.c:1739: warning: assignment makes pointer from integer without a cast
comm.c:1760: warning: passing arg 1 of `strcmp' makes pointer from integer witho
ut a cast
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:675:8: macro names must be identifiers
db.c: In function `load_resets':
db.c:1579: warning: suggest explicit braces to avoid ambiguous `else'
make[1]: *** [db.o] Error 1
make[1]: Leaving directory `/cygdrive/c/dist/src'
make: *** [all] Error 2
i dont get wats wrong can someone help me i went into db.o and i couldnt even read it. | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #1 on Thu 15 Jun 2006 02:20 AM (UTC) |
| Message
| | You shouldn't be looking at db.o, the error message refers to db.c, not db.o. Apparently, there's a problem on line 675 with a bad macro name. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Darzeth
(36 posts) Bio
|
| Date
| Reply #2 on Thu 15 Jun 2006 02:31 AM (UTC) |
| Message
| heres the code ifdef 0 is line 675 im nto sure wat to fix there so i showed more of the code.
/*
* initialize supermob.
* must be done before reset_area!
*
*/
init_supermob();
/*
* Has some bad memory bugs in it
*/
#ifdef 0
init_profanity_checker(); /* as good a place as any */
#endif
/*
* Fix up exits.
* Declare db booting over.
* Reset all areas once.
* Load up the notes file.
*/
{
log_string( "Fixing exits" );
fix_exits( ); | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #3 on Thu 15 Jun 2006 04:17 AM (UTC) |
| Message
| That should be #if 0, not #ifdef 0. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.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.
16,115 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top