[1446] in Kerberos_V5_Development

home help back first fref pref prev next nref lref last post

Linux defines struct rpcent in /usr/include/netdb.h

daemon@ATHENA.MIT.EDU (Sam Hartman)
Sun Jul 28 18:24:58 1996

Date: Sun, 28 Jul 1996 18:24:52 -0400
From: Sam Hartman <hartmans@MIT.EDU>
To: krbcore@MIT.EDU



	This creates a compile problem for gssrpc library applications
that include rpc/netdb.h, which also defines the structure.

	Assuming we want to install include files necessary for
libgssrpc, I'm not sure how to solve this problem other than to consider
something along the following lines:

* At configure time, try compiling against the system
/usr/include/netdb.h, declaring a struct rpcent and referencing all
fields.

* Make nedb.h become netdb.hin, with a substitution that either
becomes 
#define _GSSPRC_PROVIDE_STRUCT_RPCENT_
or a blank line.

* If _GSSRPC_PROVIDE_STRUCT_RPCENT_ is defined, then provide the
structure.

	Other options I considered, like defining this value in
config.h don't work because config.h is not installed, and the
resulting rpc/netdb.h should be installed.

	Anyway, we should do something if we want to build on Linux.

--Sam

home help back first fref pref prev next nref lref last post