Samba 2.0.2 with AFS

Ken Weiss krweiss at ucdavis.edu
Tue Feb 16 18:42:22 GMT 1999


Has anyone successfully built Samba 2.0.2 with AFS support? Are there any
hints or tips available? The documentation that ships with 2.0.2 still
refers to editing the AFS section of the Makefile, which no longer applies.
I tried pasting the includes and libraries from the 1.9.18 Makefile into
the 2.0.2 Makefile generated by the configure script, but I get a bunch of
conflicts and redefinitions between the AFS headers and the standard
headers. I can still build 1.9.18 with AFS support with no problems. If
anyone can point me to some help on getting the latest version built with
AFS support I'd be most grateful.

I've appended the errors that I'm getting when I try to compile
pass_check.c (the first module that calls for the AFS includes and
libraries). I've tried this under both Linux and HPUX 10.20, with identical
results. This run was attempted on a RedHat 5.2 system with kernel version
2.0.32. Linux-AFS is installed and running on this system.

--Ken


Using FLAGS =  -O -Iinclude -I/usr/afsws/include -I./include -I./ubiqx
-I./smbwr
apper  -DSMBLOGFILE="/opt/samba/var/log.smb"
-DNMBLOGFILE="/opt/samba/var/log.nm
b" -DCONFIGFILE="/opt/samba/lib/smb.conf"
-DLMHOSTSFILE="/opt/samba/lib/lmhosts"
   -DSWATDIR="/opt/samba/swat" -DSBINDIR="/opt/samba/bin"
-DLOCKDIR="/opt/samba/
var/locks" -DSMBRUN="/opt/samba/bin/smbrun"
-DCODEPAGEDIR="/opt/samba/lib/codepa
ges" -DDRIVERFILE="/opt/samba/lib/printers.def" -DBINDIR="/opt/samba/bin"
-DHAVE
_INCLUDES_H -DPASSWD_PROGRAM="/bin/passwd"
-DSMB_PASSWD_FILE="/opt/samba/private
/smbpasswd"
Using FLAGS32 =  -O -Iinclude -I/usr/afsws/include -I./include -I./ubiqx
-I./smb
wrapper  -DSMBLOGFILE="/opt/samba/var/log.smb"
-DNMBLOGFILE="/opt/samba/var/log.
nmb" -DCONFIGFILE="/opt/samba/lib/smb.conf"
-DLMHOSTSFILE="/opt/samba/lib/lmhost
s"   -DSWATDIR="/opt/samba/swat" -DSBINDIR="/opt/samba/bin"
-DLOCKDIR="/opt/samb
a/var/locks" -DSMBRUN="/opt/samba/bin/smbrun"
-DCODEPAGEDIR="/opt/samba/lib/code
pages" -DDRIVERFILE="/opt/samba/lib/printers.def" -DBINDIR="/opt/samba/bin"
-DHA
VE_INCLUDES_H -DPASSWD_PROGRAM="/bin/passwd"
-DSMB_PASSWD_FILE="/opt/samba/priva
te/smbpasswd"
Using LIBS = -lreadline -ldl  -lcrypt -lpam -L/usr/afsws/lib
-L/usr/afsws/lib/af
s -lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err -laudit
usr/afsws/lib/afs/util.a
Compiling passdb/pass_check.c
In file included from passdb/pass_check.c:140:
/usr/afsws/include/afs/stds.h:118: warning: `uint32' redefined
include/includes.h:420: warning: this is the location of the previous
definition
In file included from /usr/afsws/include/afs/kautils.h:42,
                 from passdb/pass_check.c:141:
/usr/afsws/include/rx/xdr.h:43: warning: `FALSE' redefined
/usr/include/rpc/types.h:40: warning: this is the location of the previous
defin
ition
/usr/afsws/include/rx/xdr.h:44: warning: `TRUE' redefined
/usr/include/rpc/types.h:41: warning: this is the location of the previous
defin
ition
/usr/afsws/include/rx/xdr.h:237: warning: `IXDR_GET_BOOL' redefined
/usr/include/rpc/xdr.h:231: warning: this is the location of the previous
defini
tion
/usr/afsws/include/rx/xdr.h:238: warning: `IXDR_GET_ENUM' redefined
/usr/include/rpc/xdr.h:232: warning: this is the location of the previous
defini
tion
/usr/afsws/include/rx/xdr.h:240: warning: `IXDR_GET_SHORT' redefined
/usr/include/rpc/xdr.h:234: warning: this is the location of the previous
defini
tion
/usr/afsws/include/rx/xdr.h:241: warning: `IXDR_GET_U_SHORT' redefined
/usr/include/rpc/xdr.h:235: warning: this is the location of the previous
defini
tion
/usr/afsws/include/rx/xdr.h:243: warning: `IXDR_PUT_BOOL' redefined
/usr/include/rpc/xdr.h:237: warning: this is the location of the previous
defini
tion
/usr/afsws/include/rx/xdr.h:244: warning: `IXDR_PUT_ENUM' redefined
/usr/include/rpc/xdr.h:238: warning: this is the location of the previous
defini
tion
/usr/afsws/include/rx/xdr.h:246: warning: `IXDR_PUT_SHORT' redefined
/usr/include/rpc/xdr.h:240: warning: this is the location of the previous
defini
tion
/usr/afsws/include/rx/xdr.h:247: warning: `IXDR_PUT_U_SHORT' redefined
/usr/include/rpc/xdr.h:241: warning: this is the location of the previous
defini
tion
In file included from passdb/pass_check.c:140:
/usr/afsws/include/afs/stds.h:103: warning: useless keyword or type name in
empt
y declaration
/usr/afsws/include/afs/stds.h:103: warning: empty declaration
/usr/afsws/include/afs/stds.h:109: warning: useless keyword or type name in
empt
y declaration
/usr/afsws/include/afs/stds.h:109: warning: empty declaration
In file included from /usr/afsws/include/afs/kautils.h:42,
                 from passdb/pass_check.c:141:
/usr/afsws/include/rx/xdr.h:106: redeclaration of `enum xdr_op'
/usr/afsws/include/rx/xdr.h:107: conflicting types for `XDR_ENCODE'
/usr/include/rpc/xdr.h:86: previous declaration of `XDR_ENCODE'
/usr/afsws/include/rx/xdr.h:108: conflicting types for `XDR_DECODE'
/usr/include/rpc/xdr.h:87: previous declaration of `XDR_DECODE'
/usr/afsws/include/rx/xdr.h:110: conflicting types for `XDR_FREE'
/usr/include/rpc/xdr.h:89: previous declaration of `XDR_FREE'
/usr/afsws/include/rx/xdr.h:126: conflicting types for `xdrproc_t'
/usr/include/rpc/xdr.h:144: previous declaration of `xdrproc_t'
/usr/afsws/include/rx/xdr.h:136: redefinition of `struct xdr_ops'
/usr/afsws/include/rx/xdr.h:150: conflicting types for `XDR'
/usr/include/rpc/xdr.h:104: previous declaration of `XDR'
/usr/afsws/include/rx/xdr.h:214: redefinition of `struct xdr_discrim'
make: *** [passdb/pass_check.o] Error 1
---------------------------------------------------------------------------
Ken Weiss                                               krweiss at ucdavis.edu
Distributed Computing Analysis & Support               530/752-5554 (voice)
2240 Academic Surge                                    530/523-4617 (pager)
U.C. Davis                          cckweiss at pager.ucdavis.edu (text pager)
Davis, CA 95616                        http://dcas.ucdavis.edu/kenhome.html


More information about the samba mailing list