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

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


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