While building Samba 3 for SuSE linux 9.0 I have a problem with the AFS component (it builds fine if I omit the --with-afs and --with-fake-kaserver options). During configure I did get a warning: checking whether to use AFS clear-text auth... yes checking whether to use AFS fake-kaserver... yes checking for /usr/include/afs... yes checking afs.h usability... no checking afs.h presence... no checking for afs.h... no checking afs/afs.h usability... no checking afs/afs.h presence... yes configure: WARNING: afs/afs.h: present but cannot be compiled configure: WARNING: afs/afs.h: check for missing prerequisite headers? configure: WARNING: afs/afs.h: proceeding with the preprocessor's result checking for afs/afs.h... yes RPM reports that I have OpenAFS 1.2.10 (I installed SuSE's openafs-devel package) Here are the error messages from make: In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:149: error: redeclaration of `enum xdr_op' /usr/include/afs/rx/xdr.h:150: error: conflicting types for `XDR_ENCODE' /usr/include/rpc/xdr.h:84: error: previous declaration of `XDR_ENCODE' /usr/include/afs/rx/xdr.h:151: error: conflicting types for `XDR_DECODE' /usr/include/rpc/xdr.h:85: error: previous declaration of `XDR_DECODE' /usr/include/afs/rx/xdr.h:153: error: conflicting types for `XDR_FREE' /usr/include/rpc/xdr.h:87: error: previous declaration of `XDR_FREE' /usr/include/afs/rx/xdr.h:169: error: conflicting types for `xdrproc_t' /usr/include/rpc/xdr.h:154: error: previous declaration of `xdrproc_t' /usr/include/afs/rx/xdr.h:179: error: redefinition of `struct xdr_ops' /usr/include/afs/rx/xdr.h:208: error: conflicting types for `XDR' /usr/include/rpc/xdr.h:111: error: previous declaration of `XDR' In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:266:1: warning: "XDR_DESTROY" redefined In file included from /usr/include/rpc/rpc.h:45, from include/includes.h:371, from auth/pass_check.c:24: /usr/include/rpc/xdr.h:212:1: warning: this is the location of the previous definition In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:269:1: warning: "xdr_destroy" redefined In file included from /usr/include/rpc/rpc.h:45, from include/includes.h:371, from auth/pass_check.c:24: /usr/include/rpc/xdr.h:217:1: warning: this is the location of the previous definition /usr/include/afs/rx/xdr.h:284: error: redefinition of `struct xdr_discrim' In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:304:1: warning: "IXDR_GET_INT32" redefined In file included from /usr/include/rpc/rpc.h:45, from include/includes.h:371, from auth/pass_check.c:24: /usr/include/rpc/xdr.h:256:1: warning: this is the location of the previous definition In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:305:1: warning: "IXDR_PUT_INT32" redefined In file included from /usr/include/rpc/rpc.h:45, from include/includes.h:371, from auth/pass_check.c:24: /usr/include/rpc/xdr.h:257:1: warning: this is the location of the previous definition In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:307:1: warning: "IXDR_GET_BOOL" redefined In file included from /usr/include/rpc/rpc.h:45, from include/includes.h:371, from auth/pass_check.c:24: /usr/include/rpc/xdr.h:273:1: warning: this is the location of the previous definition In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:308:1: warning: "IXDR_GET_ENUM" redefined In file included from /usr/include/rpc/rpc.h:45, from include/includes.h:371, from auth/pass_check.c:24: /usr/include/rpc/xdr.h:274:1: warning: this is the location of the previous definition In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:309:1: warning: "IXDR_GET_U_INT32" redefined In file included from /usr/include/rpc/rpc.h:45, from include/includes.h:371, from auth/pass_check.c:24: /usr/include/rpc/xdr.h:258:1: warning: this is the location of the previous definition In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:310:1: warning: "IXDR_GET_SHORT" redefined In file included from /usr/include/rpc/rpc.h:45, from include/includes.h:371, from auth/pass_check.c:24: /usr/include/rpc/xdr.h:275:1: warning: this is the location of the previous definition In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:311:1: warning: "IXDR_GET_U_SHORT" redefined In file included from /usr/include/rpc/rpc.h:45, from include/includes.h:371, from auth/pass_check.c:24: /usr/include/rpc/xdr.h:276:1: warning: this is the location of the previous definition In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:313:1: warning: "IXDR_PUT_BOOL" redefined In file included from /usr/include/rpc/rpc.h:45, from include/includes.h:371, from auth/pass_check.c:24: /usr/include/rpc/xdr.h:278:1: warning: this is the location of the previous definition In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:314:1: warning: "IXDR_PUT_ENUM" redefined In file included from /usr/include/rpc/rpc.h:45, from include/includes.h:371, from auth/pass_check.c:24: /usr/include/rpc/xdr.h:279:1: warning: this is the location of the previous definition In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:315:1: warning: "IXDR_PUT_U_INT32" redefined In file included from /usr/include/rpc/rpc.h:45, from include/includes.h:371, from auth/pass_check.c:24: /usr/include/rpc/xdr.h:259:1: warning: this is the location of the previous definition In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:316:1: warning: "IXDR_PUT_SHORT" redefined In file included from /usr/include/rpc/rpc.h:45, from include/includes.h:371, from auth/pass_check.c:24: /usr/include/rpc/xdr.h:280:1: warning: this is the location of the previous definition In file included from /usr/include/afs/afs/kautils.h:35, from auth/pass_check.c:39: /usr/include/afs/rx/xdr.h:317:1: warning: "IXDR_PUT_U_SHORT" redefined In file included from /usr/include/rpc/rpc.h:45, from include/includes.h:371, from auth/pass_check.c:24: /usr/include/rpc/xdr.h:281:1: warning: this is the location of the previous definition In file included from /usr/include/afs/afs/kautils.h:39, from auth/pass_check.c:39: /usr/include/afs/afs/kauth.h:103: error: redefinition of `struct EncryptionKey' /usr/include/afs/afs/kauth.h:106: error: redefinition of `EncryptionKey' /usr/include/heimdal/krb5_asn1.h:529: error: `EncryptionKey' previously declared here make: *** [auth/pass_check.o] Error 1 -- Simon Oliver