[OpenAFS-devel] OpenAFS 1.3.83, Unknown symbol rxkad_stats

Jim Rees rees@umich.edu
Wed, 01 Jun 2005 09:21:16 -0400


  with Linux 2.6.11.11 and OpenAFS 1.3.83 I get the following error loading
  the kernel module:
  libafs: Unknown symbol rxkad_stats

Try this patch.  I also had to remove rxkad.h and force it to rebuild, for
unknown reasons.

Index: src/rxkad/rxkad_common.c
===================================================================
RCS file: /cvs/openafs/src/rxkad/rxkad_common.c,v
retrieving revision 1.20.2.6
retrieving revision 1.20.2.7
diff -u -r1.20.2.6 -r1.20.2.7
--- src/rxkad/rxkad_common.c	30 May 2005 18:30:36 -0000	1.20.2.6
+++ src/rxkad/rxkad_common.c	31 May 2005 21:12:59 -0000	1.20.2.7
@@ -23,7 +23,7 @@
 #define INCLUDE_RXKAD_PRIVATE_DECLS
 
 RCSID
-    ("$Header: /cvs/openafs/src/rxkad/rxkad_common.c,v 1.20.2.6 2005/05/30 18:30:36 shadow Exp $");
+    ("$Header: /cvs/openafs/src/rxkad/rxkad_common.c,v 1.20.2.7 2005/05/31 21:12:59 shadow Exp $");
 
 #ifdef KERNEL
 #ifndef UKERNEL
@@ -89,8 +89,11 @@
 pthread_mutex_t rxkad_global_stats_lock;
 pthread_key_t rxkad_stats_key;
 #else /* AFS_PTHREAD_ENV */
+#if defined(KERNEL) && !defined(UKERNEL)
+struct rxkad_stats rxkad_stats = { { 0 } }; 
+#else
 /* Move delaration of this to des/key_sched.c */
-/* struct rxkad_stats rxkad_stats = { { 0 } }; */
+#endif
 #endif /* AFS_PTHREAD_ENV */
 
 #ifdef AFS_PTHREAD_ENV