# gmake Using FLAGS = -s -O3 -march=i686 -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/mysql/include/mysql -Iinclude -I/tmp/samba-3.0.5pre1/source/include -I/tmp/samba-3.0.5pre1/source/ubiqx -I/tmp/samba-3.0.5pre1/source/smbwrapper -I. -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/usr/local/include -I/tmp/samba-3.0.5pre1/source LIBS = -lcrypt -lresolv -lnsl -ldl LDSHFLAGS = -shared -Wl,-rpath,/usr/lib LDFLAGS = -Wl,-rpath,/usr/lib Compiling auth/pass_check.c In file included from /usr/local/include/afs/kautils.h:35, from auth/pass_check.c:39: /usr/local/include/rx/xdr.h:116: error: redeclaration of `enum xdr_op' /usr/local/include/rx/xdr.h:117: error: conflicting types for 'XDR_ENCODE' /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include/rpc/xdr.h:93: error: previous definition of 'XDR_ENCODE' was here /usr/local/include/rx/xdr.h:118: error: conflicting types for 'XDR_DECODE' /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include/rpc/xdr.h:94: error: previous definition of 'XDR_DECODE' was here /usr/local/include/rx/xdr.h:120: error: conflicting types for 'XDR_FREE' /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include/rpc/xdr.h:96: error: previous definition of 'XDR_FREE' was here /usr/local/include/rx/xdr.h:136: error: conflicting types for 'xdrproc_t' /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include/rpc/xdr.h:163: error: previous declaration of 'xdrproc_t' was here /usr/local/include/rx/xdr.h:146: error: redefinition of `struct xdr_ops' /usr/local/include/rx/xdr.h:175: error: conflicting types for 'XDR' /usr/local/lib/gcc/i686-pc-linux-gnu/3.4.0/include/rpc/xdr.h:120: error: previous declaration of 'XDR' was here /usr/local/include/rx/xdr.h:251: error: redefinition of `struct xdr_discrim' auth/pass_check.c: In function `afs_auth': auth/pass_check.c:58: warning: passing arg 7 of `ka_UserAuthenticateGeneral' from incompatible pointer type gmake: *** [auth/pass_check.o] Error 1
Same error with samba 3.0.7
I am receiving the same issue. If I move the xdr.h in the /usr/local tree and create a link to the one in /usr/include/rpc/xdr.h instead I reduce the errors to: Linking bin/smbd auth/pass_check.o: In function `afs_auth': auth/pass_check.o(.text+0x12): undefined reference to `setpag' auth/pass_check.o(.text+0x33): undefined reference to `ka_UserAuthenticateGeneral' collect2: ld returned 1 exit status make: *** [bin/smbd] Error 1
Same problem with samba 3.1.0
still an issue in 3.0.11 ? If so, please update the version.
Isn't 3.1.0 the latest ?
3.0.14a is the latest official release.
closing