[OpenAFS-devel] Compiling problems

Derrick J Brashear shadow@dementia.org
Wed, 2 Jul 2003 12:35:13 -0400 (EDT)


On Wed, 2 Jul 2003 atfani@uni-hohenheim.de wrote:

> When trying to compile Samba 3.0 with afs I get the following errors:
>
> In file included from /usr/include/afs/kautils.h:35,
>                  from auth/pass_check.c:39:
> /usr/include/rx/xdr.h:143: redeclaration of `enum xdr_op'
> /usr/include/rx/xdr.h:144: conflicting types for `XDR_ENCODE'
> /usr/include/rpc/xdr.h:84: previous declaration of `XDR_ENCODE'
> /usr/include/rx/xdr.h:145: conflicting types for `XDR_DECODE'
> /usr/include/rpc/xdr.h:85: previous declaration of `XDR_DECODE'
> /usr/include/rx/xdr.h:147: conflicting types for `XDR_FREE'
> /usr/include/rpc/xdr.h:87: previous declaration of `XDR_FREE'
>
> It seems to be an afs problem, not a Samba problem.
> Both header files are part of the " openafs-devel-1.2.9-rh9.0.1.i386.rpm "
> package.

/usr/include/rpc/xdr.h does *not* come from afs.

It doesn't surprise me that they conflict. Pick one or the other to
include.