Bug 1422 - Problem compiling samba
Summary: Problem compiling samba
Status: RESOLVED FIXED
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.7
Hardware: All Linux
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-02 18:58 UTC by Pierre
Modified: 2005-09-29 08:11 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre 2004-06-02 18:58:52 UTC
# 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
Comment 1 Pierre 2004-10-02 16:15:56 UTC
Same error with samba 3.0.7
Comment 2 Jason John Schwarz 2004-10-19 11:34:09 UTC
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
Comment 3 Pierre 2004-12-08 14:15:13 UTC
Same problem with samba 3.1.0
Comment 4 Gerald (Jerry) Carter (dead mail address) 2005-02-07 09:49:43 UTC
still an issue in 3.0.11 ?  If so, please update the version.
Comment 5 Pierre 2005-05-08 14:35:19 UTC
Isn't 3.1.0 the latest ?
Comment 6 Lars Müller 2005-05-09 02:58:43 UTC
3.0.14a is the latest official release.
Comment 7 Gerald (Jerry) Carter (dead mail address) 2005-09-29 08:11:45 UTC
closing