[OpenAFS-devel] Building CVS head on Darwin

Alexei Kosut akosut@cs.stanford.edu
Mon, 7 Apr 2003 09:43:05 -0700


Is anyone able to build the current CVS head on Darwin/Mac OS X?

I wasn't able to get it to build on Mac OS X 10.2.4 (December 2002 Dev
Tools) without the following patches:

Index: src/rx/rx_packet.h
===================================================================
RCS file: /cvs/openafs/src/rx/rx_packet.h,v
retrieving revision 1.9
diff -u -r1.9 rx_packet.h
--- src/rx/rx_packet.h	21 Aug 2002 18:13:51 -0000	1.9
+++ src/rx/rx_packet.h	7 Apr 2003 16:22:58 -0000
@@ -13,10 +13,10 @@
 #if defined(AFS_NT40_ENV) || defined(AFS_DJGPP_ENV)
 #include "rx_xmit_nt.h"
 #endif
+#endif /* !UKERNEL */
 #ifndef AFS_NT40_ENV
 #include <sys/uio.h>
 #endif /* !AFS_NT40_ENV */
-#endif /* !UKERNEL */
 /* this file includes the macros and decls which depend on packet
  * format, and related packet manipulation macros.  Note that code
  * which runs at NETPRI should not sleep, or AIX will panic */
Index: src/rxkad/rxkad_common.c
===================================================================
RCS file: /cvs/openafs/src/rxkad/rxkad_common.c,v
retrieving revision 1.16
diff -u -r1.16 rxkad_common.c
--- src/rxkad/rxkad_common.c	12 Nov 2002 23:57:40 -0000	1.16
+++ src/rxkad/rxkad_common.c	7 Apr 2003 16:22:58 -0000
@@ -82,7 +82,7 @@
 #ifndef KERNEL
 #define osi_Time() time(0)
 #endif
-struct rxkad_stats rxkad_stats;
+struct rxkad_stats rxkad_stats = {0};
 
 /* static prototypes */
 static afs_int32 ComputeSum(struct rx_packet *apacket,
Index: src/util/afsutil_prototypes.h
===================================================================
RCS file: /cvs/openafs/src/util/afsutil_prototypes.h,v
retrieving revision 1.3
diff -u -r1.3 afsutil_prototypes.h
--- src/util/afsutil_prototypes.h	10 Mar 2003 02:03:12 -0000	1.3
+++ src/util/afsutil_prototypes.h	7 Apr 2003 16:22:59 -0000
@@ -49,12 +49,14 @@
 extern void FilepathNormalize(char *path);
 
 /* flipbase64.c */
+#ifdef AFS_NAMEI_ENV
 #ifdef AFS_64BIT_ENV
 extern char *int64_to_flipbase64(lb64_string_t s, afs_int64 a);
 extern afs_int64 flipbase64_to_int64(char *s);
 #else
 extern char *int64_to_flipbase64(lb64_string_t s, u_int64_t a);
 extern int64_t flipbase64_to_int64(char *s);
+#endif
 #endif
 
 


-- 
Alexei Kosut <akosut@cs.stanford.edu> <http://cs.stanford.edu/~akosut/>