[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Compile error in kdelibs
From:       Karsten =?iso-8859-1?q?K=FCnne?= <kuenne () rentec ! com>
Date:       2004-07-14 23:02:30
Message-ID: 200407141902.34187.kuenne () rentec ! com
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


On Wednesday 14 July 2004 18:44, Albert Astals Cid wrote:
> I also use Mandrake 10.0
> The proble is I have the gssapi.h file in /usr/include/gssapi/gssapi.h but
> in Makefile from kdelibs/kioslave/http/Makefile i get
> GSSAPI_INCS = -I/usr/include
> which should be
> GSSAPI_INCS = -I/usr/include/gssapi
>
> Any idea on how to fix that?
>

Looks like Mandrake uses MIT Kerberos and not Heimdal. I just finished a small 
patch and sent it to Waldo which should support MIT Kerberos v1.3.3 and up (I 
haven't tested with any version before that). The patch is attached. You have 
to recreate "configure" afterwards. If you don't need negotiate 
authentication support you can as well run configure "--without-gssapi".


Karsten.
-- 
Manual, n.:
	A unit of documentation.  There are always three or more on a
given item.  One is on the shelf; someone has the others.  The
information you need is in the others.
		-- Ray Simard

["mitkerb.patch" (text/x-diff)]

--- kioslave/http/configure.in.in.heimdal	2004-07-14 13:32:11.000000000 -0400
+++ kioslave/http/configure.in.in	2004-07-14 14:09:19.000000000 -0400
@@ -31,6 +31,11 @@
     gssapi_incdir="$GSSAPI_INCS"
     gssapi_libdir="$GSSAPI_LIBS"
     with_gssapi=FOUND
+    if "$KRB5_CONFIG --vendor" | grep "Massachusetts" > /dev/null; then
+      gssapi_flavor=MIT
+    else
+      gssapi_flavor=HEIMDAL
+    fi
   else
     search_incs="$kde_includes /usr/include /usr/local/include"
     AC_FIND_FILE(gssapi.h, $search_incs, gssapi_incdir)
@@ -50,6 +55,7 @@
           fi
           GSSAPI_LIBS="${GSSAPI_LIBS}-lgssapi -lkrb5 -lasn1 -lcrypto -lroken -lcrypt ${LIBRESOLV}"
           with_gssapi=FOUND
+          gssapi_flavor=HEIMDAL
           break
         fi
       done
@@ -79,7 +85,16 @@
         GSSAPI_RPATH="-R ${GSSAPI_ROOT}/lib"
       fi
     fi
-    GSSAPI_LIBS="${GSSAPI_LIBS}-lgssapi -lkrb5 -lasn1 -lcrypto -lroken -lcrypt ${LIBRESOLV}"
+    if test -f ${GSSAPI_ROOT}/include/gssapi/gssapi.h ; then
+      gssapi_flavor=MIT
+      GSSAPI_LIBS="${GSSAPI_LIBS}-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err ${LIBRESOLV}"
+    else
+      gssapi_flavor=HEIMDAL
+      GSSAPI_LIBS="${GSSAPI_LIBS}-lgssapi -lkrb5 -lasn1 -lcrypto -lroken -lcrypt ${LIBRESOLV}"
+    fi
+  fi
+  if test "x$gssapi_flavor" = "xMIT" ; then
+    AC_DEFINE_UNQUOTED(GSSAPI_MIT, 1, [Define if you have the MIT Kerberos libraries])
   fi
   AC_DEFINE_UNQUOTED(HAVE_LIBGSSAPI, 1, [Define if you have GSSAPI libraries])
   AC_MSG_RESULT($msg)
--- kioslave/http/http.cc.heimdal	Wed Jul 14 11:48:16 2004
+++ kioslave/http/http.cc	Wed Jul 14 11:49:53 2004
@@ -70,8 +70,12 @@
 #include "http.h"
 
 #ifdef HAVE_LIBGSSAPI
+#ifdef GSSAPI_MIT
+#include <gssapi/gssapi.h>
+#else
 #include <gssapi.h>
-#endif
+#endif /* GSSAPI_MIT */
+#endif /* HAVE_LIBGSSAPI */
 
 using namespace KIO;
 

[Attachment #8 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic