Compiling arla 0.33.1 with MIT KRB5

Love lha at stacken.kth.se
Tue May 23 02:05:23 CEST 2000


Bilge Demirkoz <bilge at mit.edu> writes:

> I installed krbafs-0.9.8 and krb5-1.1.1 on redhat 6.2. Now getting
> arla-0.33.1 is not working. I am running with

There is rpm's with redhat-6.2 that contains libkafs (from kth-krb-1.0) and
mit-krb5 (1.1.1).

>   ./configure --with-krbafs=/usr/local --with-krb5=/usr/local
> 
> and the make is failing with:
> 
> gcc -c  -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/arla/etc\" -DARLACACHEDIR=\"/usr/arla/cache\" -DARLACONFFILE=\"/usr/arla/etc/arla.conf\" -I. -I. -I./.. -I/usr/local/src/arla-0.33.1/xfs/linux -I../include -I./../include -I./../xfs/include -I../rxdef -I./../rxkad -I/usr/local/include/kerberosIV -I/usr/local/include -DDEBUG -g  -Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs  -DRXDEBUG  arla.c
> arla.c:679: conflicting types for `krb_get_err_text'
> /usr/local/include/kerberosIV/krb.h:469: previous declaration of `krb_get_err_text'
> arla.c: In function `main':
> arla.c:986: warning: passing arg 1 of `krb_realmofhost' discards `const' from pointer target type
> make[1]: *** [arla.o] Error 1
> make[1]: Leaving directory `/local/src/arla-0.33.1/arlad'
> make: *** [all] Error 1
> 
> What do I do now? Thanks.

Oh, its a error of me, never tried it with mit-krb since I couldn't get
hold of it.

The patch below that fixes the problem, remember to rerun ``aclocal -I cf &&
autoconf'' after appling the patch.

Love

Index: check-kerberos.m4
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/cf/check-kerberos.m4,v
retrieving revision 1.10.2.2
retrieving revision 1.18
diff -u -w -u -w -r1.10.2.2 -r1.18
--- cf/check-kerberos.m4	2000/05/14 22:43:33	1.10.2.2
+++ cf/check-kerberos.m4	2000/05/22 23:56:19	1.18
@@ -142,7 +142,17 @@
 ifelse(-1,regexp($1,auto),[],[
 if test "X$with_krb5" != "Xno" -a "$ac_cv_krb5_where_lib" = ""; then
   AC_KRB5_LIB_WHERE([/usr/heimdal/lib /usr/athena/lib /usr/kerberos/lib /usr/local/lib])
+elif test "X$with_krb5" != "Xno"; then
+  AC_MSG_CHECKING(for kerberos5 extra libraries)
+  save_ac_cv_krb5_where_lib="$ac_cv_krb5_where_lib"
+  AC_KRB5_LIB_WHERE1($ac_cv_krb5_where_lib)
+  if test "$ac_cv_found_krb5_lib" != "no" ; then
+    AC_MSG_RESULT(found)
+  else
+    AC_MSG_RESULT(not found)
 fi
+  ac_cv_krb5_where_lib="$save_ac_cv_krb5_where_lib"
+fi
 ])
 
 if test "X$with_krb5_include" != "X"; then
@@ -224,10 +234,10 @@
     KRB4_INC_FLAGS="-I${KRB4_INC_DIR}"
   fi
   KRB4_LIB_FLAGS=
+  KRB4_LIB_FLAGS="$KRB4_LIB_FLAGS $krb4extralib"
   if test "X$KRB4_LIB_DIR" != "X" ; then
      KRB4_LIB_FLAGS="-L${KRB4_LIB_DIR}"
   fi
-  KRB4_LIB_FLAGS="$KRB4_LIB_FLAGS $krb4extralib"
 
 dnl
 dnl Check if what krb4-compat libs we have
@@ -249,6 +259,9 @@
   fi
   KRB4_LIB_FLAGS="$KRB4_LIB_FLAGS -lkrb4 -ldes425 -lkrb5 -lcom_err"
   KRB4_LIB_FLAGS="$KRB4_LIB_FLAGS $krb5extralib"
+  if test "X${KRB4_LIB_DIR}" != X; then
+	KRB4_LIB_FLAGS="$KRB4_LIB_FLAGS -L$KRB4_LIB_DIR"
+  fi
   AC_MSG_RESULT(done)
 fi
 
@@ -270,7 +283,7 @@
     ],[
       AC_DEFINE(HAVE_KRB5_COMPAT_KRB4, 1,
         [define if you have kerberos 4 compat])
-    ]) dnk END 5
+    ]) dnl END 5
   fi
   ifelse(-1,regexp($1,5),[],[
     with_krb5=yes
@@ -368,7 +381,7 @@
     if test "X$1" != "X"; then
        LIBS="$saved_LIBS -L$1"
     fi
-    LIBS="$LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
+    LIBS="$LIBS -lkrb4 -ldes425 -lkrb5 -lcom_err $krb5extralib"
     AC_TRY_LINK([], 
     [dest_tkt();],
     [ac_cv_found_krb4_lib=compat





More information about the Arla-drinkers mailing list