Re: ALIAS MOD in pl 11

From: Thomas Pedersen (classic@cloud9.net)
Date: 05/15/96


> I tried adding the alias mod found in the circle ftp sight but cannot get it to 
> work.  Everything compiles up to alias.c at wich point I get the following error
> 
> 	gcc -c -g -O -Wall -fno-strict-prototypes  alias.c
> 	In file included from alias.c:16:
> 	structs.h:876: parse error before `socket_t'
> 	structs.h:876: warning: no semicolon at end of struct or union
> 	structs.h:905: parse error before `}'
> 	make[1]: *** [alias.o] Error 1
> 	make[1]: Leaving directory `/usr/src/circle30bpl11/src'
> 	make: *** [default] Error 2
> 
> I have examined the code and I cannot find any reason for the problem to be 
> there.  below is the code referenced above.
> 
> line 16 of alias.c
> 

U need these includes in alias.c (look at eg. castle.c as example)

#include "conf.h"
#incluse "sysdep.h"

(nothing wrong with struct.h)

> #include "structs.h"
> 
> Lines 876 to 905 of structs.h
> 
> struct descriptor_data {
>    socket_t     descriptor;     /* file descriptor for socket           */
>    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;                /*              -
>    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             */
> };
> 
> I'd appreciate any help I can get.
> 
> Thanks,
> William
> 
> 

_/_/_/_/_/_/_/_/_/_/
_/ Classic@Cloud9.net
_/ http://www.cloud9.net/~classic
_/_/_/_/_/_/_/_/_/_/



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