[OpenAFS-devel] Using aklog on MacOS with Apple Kerberos

Douglas E. Engert deengert@anl.gov
Mon, 21 Nov 2005 14:23:13 -0600


Looking closer, the krb5-config --cflag krb5
returns -I/usr/include
which is where the Kerberos includes are located

But the Apple provided  gcc-4.0.0 drops this and put it last:

  ignoring duplicate directory "/usr/include"
  as it is a non-system directory that duplicates a system directory

   #include "..." search starts here:
   #include <...> search starts here:
    /afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/src/config
    .
    /afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include
    /afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include/afs
    /afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include/rx
    /afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80
    /afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/src
    /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/include
    /usr/include
    /System/Library/Frameworks
    /Library/Frameworks

So at least on the Mac where its in /usr/include can cause problems.




Douglas E. Engert wrote:

> More on aklog using krb5-config, yes MacOS 10.4 has one, but the order of
> the includes is different using the krb5-config vs the --with-krb5=yes 
> and KRB5CFLAGS=
> and KRB5LIBS=.  This caues problems with asetkey.c
> 
> Using:
> 
> ./configure \
>     --enable-largefile-fileserver \
>     --with-krb5-conf=/usr/bin/krb5-config
> 
> aklog compiles and works, but asetkey does not. It picks up
> AFS com_err.h, rather then the krb5 com_err.h:
> 
> 
> 
> cc  -I/usr/include -DALLOW_REGISTER 
> -I/afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/src/config 
> -I. -I. 
> -I/afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include 
> -I/afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include/afs 
> -I/afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include/rx 
> -I/afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80 
> -I/afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/src 
> -I/afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/src 
> -no-cpp-precomp -c asetkey.c
> In file included from asetkey.c:25:
> /afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include/afs/com_err.h:15: 
> error: parse error before 'afs_int32'
> /afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include/afs/com_err.h:16: 
> error: parse error before 'afs_int32'
> /afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include/afs/com_err.h:18: 
> warning: parameter names (without types) in function declaration
> /afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include/afs/com_err.h:19: 
> warning: parameter names (without types) in function declaration
> /afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include/afs/com_err.h:22: 
> error: parse error before 'afs_int32'
> /afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include/afs/com_err.h:23: 
> error: parse error before 'afs_int32'
> /afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include/afs/com_err.h:24: 
> error: parse error before 'afs_int32'Ken Hornstein wrote:
> 
> 
> Using:
> 
> KRB5CFLAGS="-I/System/Library/Frameworks/Kerberos.framework/Headers"
> KRB5LIBS="-framework Kerberos"
> export KRB5CFLAGS KRB5LIBS
> 
> ./configure \
>      --enable-largefile-fileserver \
>      --with-krb5=yes
> 
> with the HAVE_KERBEROSIV_KRB_H aklog patch, aklog compiles and works, 
> and setkey compiles
> and links:
> 
> cc  -I/System/Library/Frameworks/Kerberos.framework/Headers 
> -DALLOW_REGISTER 
> -I/afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/src/config 
> -I. -I. 
> -I/afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include 
> -I/afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include/afs 
> -I/afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/include/rx 
> -I/afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80 
> -I/afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/src 
> -I/afs/anl.gov/appl/OpenAFS-dev3/build/1.4.0-cvs/ppc_darwin_80/src 
> -no-cpp-precomp -c asetkey.c
> 
>>>> How come you didn't use --with-krb5-conf ?
>>>
>>>
>>> I did not see the Mac Kerberos krb5-conf. Is there one?
>>
>>
>>
>> This is 10.4, right?
>>
>> % which krb5-config
>> /usr/bin/krb5-config
>>
>> (There isn't one in 10.3).
>>
>> --Ken
>> _______________________________________________
>> OpenAFS-devel mailing list
>> OpenAFS-devel@openafs.org
>> https://lists.openafs.org/mailman/listinfo/openafs-devel
>>
>>
> 

-- 

  Douglas E. Engert  <DEEngert@anl.gov>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444