bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

v1.11.1p1 compile problem on Solaris 2.8


From: Petter Reinholdtsen
Subject: v1.11.1p1 compile problem on Solaris 2.8
Date: Sat, 22 Sep 2001 23:27:58 +0200

I ran into a compile problem on my SPARC/Solaris 2.8 installation.
The headerfile <krb5.h> is missing, but the file src/server.c seem to
depend on it.  The following patch show some of the relevant parts.
Turning off HAVE_GSSAPI got the file compiling, but CVS refused to
link.  Protectin the #include statement gave problems further down in
the file.

Is this a known problem?  Is there a known fix?

diff -ur src-1.11.1p1/src/server.c src-1.11.1p1-sun4os58/src/server.c
--- src-1.11.1p1/src/server.c   Thu Apr 19 21:34:04 2001
+++ src-1.11.1p1-sun4os58/src/server.c  Sat Sep 22 23:21:52 2001
@@ -17,6 +17,9 @@
 #include "buffer.h"
 
 #if defined(SERVER_SUPPORT) || defined(CLIENT_SUPPORT)
+#  ifndef HAVE_KRB5_H
+#   undef HAVE_GSSAPI
+#  endif
 # ifdef HAVE_GSSAPI
 /* This stuff isn't included solely with SERVER_SUPPORT since some of these
  * functions (encryption & the like) get compiled with or without server
@@ -28,7 +31,9 @@
 #   include "xgssapi.h"
 /* We use Kerberos 5 routines to map the GSSAPI credential to a user
    name.  */
-#   include <krb5.h>
+#   ifdef HAVE_KRB5_H
+#      include <krb5.h>
+#   endif /* HAVE_KRB5_H */
 
 /* We need this to wrap data.  */
 static gss_ctx_id_t gcontext;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]