tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Radius and 4.0D
@ 2000-05-16 23:00 J Bacher
  0 siblings, 0 replies; only message in thread
From: J Bacher @ 2000-05-16 23:00 UTC (permalink / raw)
  To: tru64-unix-managers


I am compling Cistron's 1.6.3 radius on 4.0D and am receiving a
compilation error that the variable "CLIENT" in the radiusd.h has a prior
declaration in /usr/include/rpc/clnt.h.

I cannot get the compiler to ignore a previous declaration since the rpc
header files are called by the system header files.

I can sometimes successfully hack code but am not a programmer
professionally.

Has anyone made a change to successfully compile this version of radius?

Any recommendations on the best method to pursue?


ERROR:

cc: Error: radiusd.h, line 102: In this declaration, "CLIENT" has no
linkage and has a prior declaration in this scope at line number 142 in
file /usr/include/rpc/clnt.h.
} CLIENT;
--^


FROM THE RADIUSD.H

typedef struct client {
        UINT4                   ipaddr;
        char                    longname[256];
        u_char                  secret[16];  
        char                    shortname[32];
        struct client           *next;    
} CLIENT;


FROM /USR/INCLUDE/RPC/CLNT.H

/*
 * Client rpc handle.
 * Created by individual implementations, see e.g. rpc_udp.c.
 * Client is responsible for initializing auth, see e.g. auth_none.c.
 */                     
typedef struct __client {
        AUTH    *cl_auth;                       /* authenticator */
        struct clnt_ops {
                enum clnt_stat (*cl_call) __((struct __client *, u_long,
                        xdrproc_t, char *, xdrproc_t,
                        char *, struct timeval));       /* call remote
procedur$
                void    (*cl_abort) __(());     /* abort a call */
                void    (*cl_geterr) __((struct __client *,
                        struct rpc_err *));     /* get specific error code
*/
                bool_t  (*cl_freeres) __((struct __client *, xdrproc_t,
                        char *)); /* frees results */
                void    (*cl_destroy) __((struct __client *));/* destroy
this s$
                bool_t  (*cl_control) __((struct __client *, int, char
*));/* t$
        } *cl_ops;
        caddr_t                 cl_private;     /* private stuff */
} CLIENT;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-05-16 23:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-16 23:00 Radius and 4.0D J Bacher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox