[415] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

Re: Can't compile krb5 Beta 3.

daemon@ATHENA.MIT.EDU (Theodore Ts'o)
Thu Jan 27 23:29:29 1994

Date: Thu, 27 Jan 94 23:29:19 EST
From: tytso@MIT.EDU (Theodore Ts'o)
To: jsb@gumby.dsd.TRW.COM
Cc: krb5-bugs@MIT.EDU, jsb@pokey.sp.trw.com
In-Reply-To: jsb@gumby.dsd.TRW.COM's message of Thu, 27 Jan 94 20:06:02 -0800,

   Date: Thu, 27 Jan 94 20:06:02 -0800
   From: jsb@gumby.dsd.TRW.COM

   Seems like this is would only be used with KRB4 compatability?
   caompat_rev.c does an include for both:
	   <krb5/krb.h>
       and	<krb.h>
   Of course, it can't file <krb.h> (which is in the $(Krb4Includes)
   directory). 

This was a glitch which didn't get fixed before I shipped BETA_3 out.
Change <krb.h> to be be <kerberosIV/krb.h>.  (Note that the first
include file you mentioned, <krb5/krb.h>, isn't what's there.  It's
<krb5/krb5.h> which is correct.)

   ------------------------
   I then tried defining (in site.def)
      #define Krb4KDCCompat /* turn this on if you want the KDC to provide v4
			       tickets from a v5 database */

   Looking at the Makefiles I then generated, *NOTHING* seemed to have 
   changed.

Look at the Makefile for the kdc subdirectory.  Or if you want a clearer
picture of what happens, take a look at the Imakefile for the kdc
subdirectory.  It should be clear what this define does.

   Finally, I went for the full KRB4 compatable install (using the same
   options as in site.def.mit).  I still get the same error for
	   lib/krb5/krb/compat_recv.c

   I'm not real good at Imakefiles. I don't see what I would change to
   have -I$(Krb4Includes) added to the CFLAGS for compat_recv.c.
   Off the top of my head, it doesn't look like I should be attempting
   to compile this without the KRB4 compatabilty defined anyway.

Sorry about this; you just need to change compat_recv.c.  You will also
need to change kerberosIV/krb.h so that

#include <mit-copyright.h>
#include <des.h>

becomes

#include <kerberosIV/mit-copyright.h>
#include <kerberosIV/des.h>

The problem is that these include files are in MIT's standard include
path, so I didn't catch this error right away.

   On another note:
   If I don't want to install everything in /krb5 (I want it to go
   into /usr/local/kerberos-5), it looks like I can add the line:

	   #define Krb5Root        /usr/local/kerberos-5

   to my site.def.  Is this not a very common option (I had to dig
   around to find the magic word "Krb5Root". Is there a reason
   this option is noted in the sample site.def file?)

Yes, you're right.  It probably ought to be noted there.

							- Ted

home help back first fref pref prev next nref lref last post