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

Douglas E. Engert deengert@anl.gov
Fri, 18 Nov 2005 15:30:29 -0600


This is a multi-part message in MIME format.
--------------000008070407010104040301
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit


I am able to get the OpenAFS from cvs as of today to build the and use
the aklog on MacOS 10.4.3 using the Apple builtin Kerberos. But to do this
required a modifcation.

Apple provides kerberosIV/com_err.h, krb.h and krb_err.h but these have
some conflicts. Configure sets HAVE_KERBEROSIV_KRB_H but it looks like
this is not really needed.

If aklog.h can get along fine without the krb.h does it really need to
be included? Are there some systems where it is needed?

So a possible fix is attached which updates aklog.h, and
Makefile to not compile the libufs for MacOS 10. which also had problems.

The configure to use the Apple Kerberos looked lie this:


KRB5CFLAGS="-I/System/Library/Frameworks/Kerberos.framework/Headers"
KRB5LIBS="-framework Kerberos"
export KRB5CFLAGS KRB5LIBS

./configure \
		--enable-largefile-fileserver \
		--with-krb5=yes


-- 

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

--------------000008070407010104040301
Content-Type: text/plain;
 name="aklog.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="aklog.patch"

--- ./src/aklog/,aklog.h	Thu Jun 30 16:06:15 2005
+++ ./src/aklog/aklog.h	Fri Nov 18 15:11:41 2005
@@ -31,9 +31,6 @@
  * credentials with the sources
  */
 
-#ifdef HAVE_KERBEROSIV_KRB_H
-#include <kerberosIV/krb.h>
-#else /* HAVE_KERBEROSIV_KRB_H */
 
 #ifndef MAX_KTXT_LEN
 #define MAX_KTXT_LEN 1250
@@ -71,7 +68,6 @@
 };
 
 typedef struct credentials CREDENTIALS;
-#endif /* ! HAVE_KERBEROSIV_KRB_H */
 
 #ifdef WINDOWS
 /*
--- ./,Makefile.in	Sat Oct 15 10:00:57 2005
+++ ./Makefile.in	Fri Nov 18 09:18:23 2005
@@ -432,7 +432,7 @@
 		rxstat_depinstall lwp_depinstall sys_depinstall des
 	set -x; \
 	case ${SYS_NAME} in \
-	hp_ux102* | *_obsd* | sun*_4* | *_nbsd*| hp_ux11i | hp_ux112* | ia64_hpux112*) \
+	ppc_darwin* | hp_ux102* | *_obsd* | sun*_4* | *_nbsd*| hp_ux11i | hp_ux112* | ia64_hpux112*) \
 		echo Skipping libuafs for ${SYS_NAME} ;; \
 	* ) \
 		${COMPILE_PART1} libuafs ${COMPILE_PART2} ;; \

--------------000008070407010104040301--