[Circle] Wierd Problem....

From: BlackWind (BlackWind@multiplex.com)
Date: 11/23/96


Wow, I got a really wierd problem....something I've never had before.
I've added mobprogs TOTALLY successfully up until this error, and I have
the feeling it ALL has to do with one line.  Here are the errors for
mobcmd.c;

cc -c -g   mobcmd.c
"structs.h", line 1007.4: 1506-046 (S) Syntax error.
"comm.h", line 33.38: 1506-275 (S) Unexpected text desc ignored.
"comm.h", line 33.44: 1506-276 (S) Syntax error: possible missing
identifier?
"comm.h", line 33.9: 1506-282 (S) The type of the parameters must be
specified in a prototype.
"comm.h", line 43.9: 1506-166 (S) Definition of function RETSIGTYPE
requires parentheses.
"comm.h", line 43.20: 1506-276 (S) Syntax error: possible missing '{'?
"mobcmd.c", line 71.15: 1506-045 (S) Undeclared identifier type.
"mobcmd.c", line 123.51: 1506-045 (S) Undeclared identifier mob_index.
"mobcmd.c", line 133.22: 1506-045 (S) Undeclared identifier world.
"mobcmd.c", line 166.17: 1506-045 (S) Undeclared identifier mob_index.
"mobcmd.c", line 198.10: 1506-098 (E) Missing argument(s).
"mobcmd.c", line 222.49: 1506-045 (S) Undeclared identifier mob_index.
"mobcmd.c", line 269.55: 1506-045 (S) Undeclared identifier mob_index.
"mobcmd.c", line 304.12: 1506-045 (S) Undeclared identifier mob_index.
"mobcmd.c", line 334.13: 1506-045 (S) Undeclared identifier mob_index.
"mobcmd.c", line 365.52: 1506-045 (S) Undeclared identifier mob_index.
"mobcmd.c", line 369.22: 1506-068 (W) Operation between types "struct
index_data*" and "int" is not allowed.
"mobcmd.c", line 397.13: 1506-045 (S) Undeclared identifier mob_index.
"mobcmd.c", line 401.22: 1506-068 (W) Operation between types "struct
index_data*" and "int" is not allowed.
"mobcmd.c", line 443.23: 1506-045 (S) Undeclared identifier world.
"mobcmd.c", line 464.52: 1506-045 (S) Undeclared identifier mob_index.
"mobcmd.c", line 496.47: 1506-045 (S) Undeclared identifier mob_index.
"mobcmd.c", line 534.46: 1506-045 (S) Undeclared identifier mob_index.
"mobcmd.c", line 583.50: 1506-045 (S) Undeclared identifier mob_index.
"mobcmd.c", line 589.18: 1506-045 (S) Undeclared identifier
descriptor_list.
"mobcmd.c", line 594.18: 1506-045 (S) Undeclared identifier world.
"mobcmd.c", line 668.47: 1506-045 (S) Undeclared identifier mob_index.
"mobcmd.c", line 676.18: 1506-045 (S) Undeclared identifier
descriptor_list.
"mobcmd.c", line 680.52: 1506-045 (S) Undeclared identifier world.


Notice the "Syntax error" in structs.h? Here's that area of structs.h;

struct descriptor_data {
   char	host[HOST_LENGTH+1];	/* hostname				
   byte	bad_pws;		/* number of bad pw attemps this login	
   byte idle_tics;		/* tics idle at password prompt		
   int	connected;		/* mode of 'connectedness'		
   int	wait;			/* wait for how many loops		
   int	desc_num;		/* unique num assigned to desc		
   time_t login_time;		/* when the person connected		
   char *showstr_head;		/* for keeping track of an internal str	
   char **showstr_vector;	/* for paging through texts		
   int  showstr_count;		/* number of pages to page through	
   int  showstr_page;		/* which page are we currently showing?	
   char	**str;			/* for the modify-str system		
   size_t	max_str;	/*		-			
   socket_t 	descriptor;	/* file descriptor for socket		
   long	mail_to;		/* name for mail system			
   int	prompt_mode;		/* control of prompt-printing		
   char	inbuf[MAX_RAW_INPUT_LENGTH];  /* buffer for raw input		
   char	last_input[MAX_INPUT_LENGTH]; /* the last input			
   char small_outbuf[SMALL_BUFSIZE];  /* standard output buffer		
   char *output;		/* ptr to the current output buffer	
   int  bufptr;			/* ptr to end of current output		
   int	bufspace;		/* space left in the output buffer	
   struct txt_block *large_outbuf; /* ptr to large buffer, if we need it 
   struct txt_q input;		/* q of unprocessed input		
   struct char_data *character;	/* linked to char			
   struct char_data *original;	/* original char if switched		
   struct descriptor_data *snooping; /* Who is this char snooping	
   struct descriptor_data *snoop_by; /* And who is snooping this char	
   struct descriptor_data *next; /* link to next descriptor		
   struct olc_data *olc;         /*. OLC info - defined in olc.h  


};

This is the error line (from that last section);

socket_t 	descriptor;	/* file descriptor for socket	*/

	I'm really sorry for the length and all here, but this is REALLY
confuseing...What's wrong with that line?  I just can't figure it out.
I'm almost CERTAIN that's what's causing all of the errors.  Your help
would be MUCh appriciated.

	Thanx in advance,
			Blackwind
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/18/00 PST