Token problem???

Magnus Ahltorp ahltorp at nada.kth.se
Sat Aug 19 18:58:44 CEST 2000


> i am testing arla on a Solaris 7 x86 system and have the following
> problem: I can list directorys (where i have permissions) under /afs
> without a token. If i get a token and run ls /afs.. i get an
> "Unknown error". When i run arlad with -debug=almost-all i get the
> following:

Please test the following diff (in the cf directory):

Index: krb-bigendian.m4
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/cf/krb-bigendian.m4,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- krb-bigendian.m4	2000/01/08 11:37:51	1.1
+++ krb-bigendian.m4	2000/08/19 15:34:21	1.2
@@ -1,5 +1,5 @@
 dnl
-dnl $Id: krb-bigendian.m4,v 1.1 2000/01/08 11:37:51 assar Exp $
+dnl $Id: krb-bigendian.m4,v 1.2 2000/08/19 15:34:21 assar Exp $
 dnl
 
 dnl check if this computer is little or big-endian
@@ -22,34 +22,30 @@
 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  bogus endian macros
 #endif], krb_cv_c_bigendian_compile=yes, krb_cv_c_bigendian_compile=no)])
-if test "$krb_cv_c_bigendian_compile" = "no"; then
-  AC_CACHE_CHECK(whether byte ordering is bigendian, krb_cv_c_bigendian,[
-  if test "$krb_cv_c_bigendian" = ""; then
-    krb_cv_c_bigendian=unknown
-  fi
-  AC_TRY_COMPILE([
+AC_CACHE_CHECK(whether byte ordering is bigendian, krb_cv_c_bigendian,[
+  if test "$krb_cv_c_bigendian_compile" = "yes"; then
+    AC_TRY_COMPILE([
 #include <sys/types.h>
 #include <sys/param.h>],[
 #if BYTE_ORDER != BIG_ENDIAN
   not big endian
 #endif], krb_cv_c_bigendian=yes, krb_cv_c_bigendian=no)
-  if test "$krb_cv_c_bigendian" = "unknown"; then
+  else
     AC_TRY_RUN([main () {
-      /* Are we little or big endian?  From Harbison&Steele.  */
-      union
-      {
+    /* Are we little or big endian?  From Harbison&Steele.  */
+    union
+    {
 	long l;
 	char c[sizeof (long)];
-      } u;
-      u.l = 1;
-      exit (u.c[sizeof (long) - 1] == 1);
-    }], krb_cv_c_bigendian=no, krb_cv_c_bigendian=yes,
-    AC_MSG_ERROR([specify either --enable-bigendian or --enable-littleendian]))
-  fi
-  ])
-  if test "$krb_cv_c_bigendian" = "yes"; then
-    AC_DEFINE(WORDS_BIGENDIAN, 1, [define if target is big endian])dnl
+    } u;
+    u.l = 1;
+    exit (u.c[sizeof (long) - 1] == 1);
+  }], krb_cv_c_bigendian=no, krb_cv_c_bigendian=yes,
+  AC_MSG_ERROR([specify either --enable-bigendian or --enable-littleendian]))
   fi
+])
+if test "$krb_cv_c_bigendian" = "yes"; then
+  AC_DEFINE(WORDS_BIGENDIAN, 1, [define if target is big endian])dnl
 fi
 if test "$krb_cv_c_bigendian_compile" = "yes"; then
   AC_DEFINE(ENDIANESS_IN_SYS_PARAM_H, 1, [define if sys/param.h defines the endiness])dnl





More information about the Arla-drinkers mailing list