samba-technical@lists.samba.org
[Top] [All Lists]

Re: Build samba 3.2.2 with openafs 1.4.7

Subject: Re: Build samba 3.2.2 with openafs 1.4.7
From: GÃmes GÃza
Date: Fri, 05 Sep 2008 21:35:16 +0200
Hi, sorry for cross posting, but it seems to be an interoperability problem.

I've modified the afs/afs.h and afs/com_err.h header files to include
"afs/param.h", and now cofigure is working without any warnings, but the
build process fails at:

Compiling auth/pass_check.c
In file included from /usr/include/afs/kautils.h:35,
                 from auth/pass_check.c:89:
/usr/include/rx/xdr.h:153: error: nested redefinition of âenum xdr_opâ
/usr/include/rx/xdr.h:153: error: redeclaration of âenum xdr_opâ
/usr/include/rx/xdr.h:154: error: redeclaration of enumerator âXDR_ENCODEâ
/usr/include/rpc/xdr.h:84: error: previous definition of âXDR_ENCODEâ
was here
/usr/include/rx/xdr.h:155: error: redeclaration of enumerator âXDR_DECODEâ
/usr/include/rpc/xdr.h:85: error: previous definition of âXDR_DECODEâ
was here
/usr/include/rx/xdr.h:157: error: redeclaration of enumerator âXDR_FREEâ
/usr/include/rpc/xdr.h:87: error: previous definition of âXDR_FREEâ was here
/usr/include/rx/xdr.h:177: error: conflicting types for âxdrproc_tâ
/usr/include/rpc/xdr.h:154: error: previous declaration of âxdrproc_tâ
was here
/usr/include/rx/xdr.h:192: error: redefinition of âstruct xdr_opsâ
/usr/include/rx/xdr.h:221: error: conflicting types for âXDRâ
/usr/include/rpc/xdr.h:111: error: previous declaration of âXDRâ was here
/usr/include/rx/xdr.h:297: error: redefinition of âstruct xdr_discrimâ
In file included from /usr/include/rx/xdr.h:332,
                 from /usr/include/afs/kautils.h:35,
                 from auth/pass_check.c:89:
/usr/include/rx/xdr_prototypes.h:36: error: conflicting types for
âxdr_arrayâ
/usr/include/rpc/xdr.h:312: error: previous declaration of âxdr_arrayâ
was here
/usr/include/rx/xdr_prototypes.h:44: error: conflicting types for âxdr_longâ
/usr/include/rpc/xdr.h:292: error: previous declaration of âxdr_longâ
was here
/usr/include/rx/xdr_prototypes.h:45: error: conflicting types for
âxdr_u_longâ
/usr/include/rpc/xdr.h:293: error: previous declaration of âxdr_u_longâ
was here
/usr/include/rx/xdr_prototypes.h:46: error: conflicting types for âxdr_intâ
/usr/include/rpc/xdr.h:290: error: previous declaration of âxdr_intâ was
here
/usr/include/rx/xdr_prototypes.h:47: error: conflicting types for
âxdr_u_intâ
/usr/include/rpc/xdr.h:291: error: previous declaration of âxdr_u_intâ
was here
/usr/include/rx/xdr_prototypes.h:48: error: conflicting types for âxdr_charâ
/usr/include/rpc/xdr.h:320: error: previous declaration of âxdr_charâ
was here
/usr/include/rx/xdr_prototypes.h:49: error: conflicting types for
âxdr_u_charâ
/usr/include/rpc/xdr.h:321: error: previous declaration of âxdr_u_charâ
was here
/usr/include/rx/xdr_prototypes.h:50: error: conflicting types for
âxdr_shortâ
/usr/include/rpc/xdr.h:288: error: previous declaration of âxdr_shortâ
was here
/usr/include/rx/xdr_prototypes.h:51: error: conflicting types for
âxdr_u_shortâ
/usr/include/rpc/xdr.h:289: error: previous declaration of âxdr_u_shortâ
was here
/usr/include/rx/xdr_prototypes.h:52: error: conflicting types for âxdr_boolâ
/usr/include/rpc/xdr.h:308: error: previous declaration of âxdr_boolâ
was here
/usr/include/rx/xdr_prototypes.h:53: error: conflicting types for âxdr_enumâ
/usr/include/rpc/xdr.h:309: error: previous declaration of âxdr_enumâ
was here
/usr/include/rx/xdr_prototypes.h:54: error: conflicting types for
âxdr_opaqueâ
/usr/include/rpc/xdr.h:315: error: previous declaration of âxdr_opaqueâ
was here
/usr/include/rx/xdr_prototypes.h:56: error: conflicting types for
âxdr_bytesâ
/usr/include/rpc/xdr.h:314: error: previous declaration of âxdr_bytesâ
was here
/usr/include/rx/xdr_prototypes.h:58: error: conflicting types for
âxdr_unionâ
/usr/include/rpc/xdr.h:319: error: previous declaration of âxdr_unionâ
was here
/usr/include/rx/xdr_prototypes.h:59: error: conflicting types for
âxdr_stringâ
/usr/include/rpc/xdr.h:316: error: previous declaration of âxdr_stringâ
was here
/usr/include/rx/xdr_prototypes.h:60: error: conflicting types for
âxdr_wrapstringâ
/usr/include/rpc/xdr.h:330: error: previous declaration of
âxdr_wrapstringâ was here
/usr/include/rx/xdr_prototypes.h:64: error: conflicting types for
âxdr_floatâ
/usr/include/rpc/xdr.h:324: error: previous declaration of âxdr_floatâ
was here
/usr/include/rx/xdr_prototypes.h:65: error: conflicting types for
âxdr_doubleâ
/usr/include/rpc/xdr.h:325: error: previous declaration of âxdr_doubleâ
was here
/usr/include/rx/xdr_prototypes.h:69: error: conflicting types for
âxdrmem_createâ
/usr/include/rpc/xdr.h:353: error: previous declaration of
âxdrmem_createâ was here
/usr/include/rx/xdr_prototypes.h:78: error: conflicting types for
âxdrrec_createâ
/usr/include/rpc/xdr.h:363: error: previous declaration of
âxdrrec_createâ was here
/usr/include/rx/xdr_prototypes.h:79: error: conflicting types for
âxdrrec_skiprecordâ
/usr/include/rpc/xdr.h:369: error: previous declaration of
âxdrrec_skiprecordâ was here
/usr/include/rx/xdr_prototypes.h:80: error: conflicting types for
âxdrrec_eofâ
/usr/include/rpc/xdr.h:372: error: previous declaration of âxdrrec_eofâ
was here
/usr/include/rx/xdr_prototypes.h:81: error: conflicting types for
âxdrrec_endofrecordâ
/usr/include/rpc/xdr.h:366: error: previous declaration of
âxdrrec_endofrecordâ was here
/usr/include/rx/xdr_prototypes.h:92: error: conflicting types for
âxdr_pointerâ
/usr/include/rpc/xdr.h:329: error: previous declaration of âxdr_pointerâ
was here
/usr/include/rx/xdr_prototypes.h:95: error: conflicting types for
âxdr_vectorâ
/usr/include/rpc/xdr.h:323: error: previous declaration of âxdr_vectorâ
was here
auth/pass_check.c: In function âafs_authâ:
auth/pass_check.c:108: warning: passing argument 7 of
âka_UserAuthenticateGeneralâ from incompatible pointer type
auth/pass_check.c: In function âpassword_checkâ:
auth/pass_check.c:552: warning: passing argument 1 of âafs_authâ
discards qualifiers from pointer target type
auth/pass_check.c:552: warning: passing argument 2 of âafs_authâ
discards qualifiers from pointer target type
The following command failed:
gcc -I. -I/home/kzsdabas/tmp/samba-3.2.2/source  -O -D_SAMBA_BUILD_=3
-I/usr/include/afs 
-I/home/kzsdabas/tmp/samba-3.2.2/source/iniparser/src -Iinclude
-I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include
-I./libaddns -I./librpc -DHAVE_CONFIG_H  -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I.
-I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns
-I./librpc -I./popt -I/usr/include/afs -DLDAP_DEPRECATED   -I/include
-I/home/kzsdabas/tmp/samba-3.2.2/source/lib -D_SAMBA_BUILD_=3 -fPIC -c
auth/pass_check.c -o auth/pass_check.o
make: *** [auth/pass_check.o] Error 1

Thanks for any pointer to the right direction

Geza

> Offhand guess: include <afs/param.h> before <afs/com_err.h>
>
>
> On Fri, Sep 5, 2008 at 12:35 PM, GÃmes GÃza <geza@xxxxxxxxxxx> wrote:
>   
>> Hi,
>>
>> sorry for posting it here, as it seems to be a samba build related
>> problem, but I was advised on the samba-technical mailing list to do so.
>>
>> I've tried to build samba-3.2.2 with afs support, so I cofigured it with:
>>
>> ./configure --with-afs --with-fake-kaserver --with-vfs-afsacl
>>
>>
>> It gave the following warnings:
>>
>> configure: WARNING: afs.h: present but cannot be compiled
>> configure: WARNING: afs.h:     check for missing prerequisite headers?
>> configure: WARNING: afs.h: see the Autoconf documentation
>> configure: WARNING: afs.h:     section "Present But Cannot Be Compiled"
>> configure: WARNING: afs.h: proceeding with the preprocessor's result
>> configure: WARNING: afs.h: in the future, the compiler will take precedence
>> configure: WARNING:     ## ---------------------------------------- ##
>> configure: WARNING:     ## Report this to samba-technical@xxxxxxxxx ##
>> configure: WARNING:     ## ---------------------------------------- ##
>> 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: see the Autoconf documentation
>> configure: WARNING: afs/afs.h:     section "Present But Cannot Be Compiled"
>> configure: WARNING: afs/afs.h: proceeding with the preprocessor's result
>> configure: WARNING: afs/afs.h: in the future, the compiler will take
>> precedence
>> configure: WARNING:     ## ---------------------------------------- ##
>> configure: WARNING:     ## Report this to samba-technical@xxxxxxxxx ##
>> configure: WARNING:     ## ---------------------------------------- ##
>> configure: WARNING: com_err.h: present but cannot be compiled
>> configure: WARNING: com_err.h:     check for missing prerequisite headers?
>> configure: WARNING: com_err.h: see the Autoconf documentation
>> configure: WARNING: com_err.h:     section "Present But Cannot Be Compiled"
>> configure: WARNING: com_err.h: proceeding with the preprocessor's result
>> configure: WARNING: com_err.h: in the future, the compiler will take
>> precedence
>> configure: WARNING:     ## ---------------------------------------- ##
>> configure: WARNING:     ## Report this to samba-technical@xxxxxxxxx ##
>> configure: WARNING:     ## ---------------------------------------- ##
>>
>> Going further, make gives:
>>
>> Compiling lib/talloc/talloc.c
>> In file included from include/includes.h:219,
>>                 from lib/talloc/talloc.c:36:
>> /usr/include/afs/com_err.h:15: error: expected declaration specifiers or
>> '...' before 'afs_int32'
>> /usr/include/afs/com_err.h:16: error: expected declaration specifiers or
>> '...' before 'afs_int32'
>> /usr/include/afs/com_err.h:18: warning: parameter names (without types)
>> in function declaration
>> /usr/include/afs/com_err.h:19: warning: parameter names (without types)
>> in function declaration
>> /usr/include/afs/com_err.h:22: error: expected declaration specifiers or
>> '...' before 'afs_int32'
>> /usr/include/afs/com_err.h:23: error: expected declaration specifiers or
>> '...' before 'afs_int32'
>> /usr/include/afs/com_err.h:24: error: expected declaration specifiers or
>> '...' before 'afs_int32'
>> The following command failed:
>> gcc -I. -I/home/kzsdabas/tmp/samba-3.2.2/source  -O -D_SAMBA_BUILD_=3
>> -I/usr/include/afs
>> -I/home/kzsdabas/tmp/samba-3.2.2/source/iniparser/src -Iinclude
>> -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include
>> -I./libaddns -I./librpc -DHAVE_CONFIG_H  -D_LARGEFILE64_SOURCE
>> -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I.
>> -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns
>> -I./librpc -I./popt -I/usr/include/afs -DLDAP_DEPRECATED   -I/include
>> -I/home/kzsdabas/tmp/samba-3.2.2/source/lib -D_SAMBA_BUILD_=3 -fPIC -c
>> lib/talloc/talloc.c -o lib/talloc/talloc.o
>> make: *** [lib/talloc/talloc.o] Error 1
>>
>> Any ideas what needs to get fixed?
>>
>> Thanks in advance
>>
>> Geza
>>
>>
>> _______________________________________________
>> OpenAFS-info mailing list
>> OpenAFS-info@xxxxxxxxxxx
>> https://lists.openafs.org/mailman/listinfo/openafs-info
>>
>>     
> _______________________________________________
> OpenAFS-info mailing list
> OpenAFS-info@xxxxxxxxxxx
> https://lists.openafs.org/mailman/listinfo/openafs-info
>   

<Prev in Thread] Current Thread [Next in Thread>