makefile error how do i fix this

Posted by Darzeth on Thu 15 Jun 2006 02:12 AM — 4 posts, 16,903 views.

#0
$ 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.
USA #1
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.
#2
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( );
USA #3
That should be #if 0, not #ifdef 0.