From nobody@FreeBSD.ORG  Wed Aug  9 06:26:51 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 7B52237B7DA; Wed,  9 Aug 2000 06:26:51 -0700 (PDT)
Message-Id: <20000809132651.7B52237B7DA@hub.freebsd.org>
Date: Wed,  9 Aug 2000 06:26:51 -0700 (PDT)
From: mark.andrews@nominum.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: kerberos5 w/o kerberos4 attempts to build keytab_krb4.c which fails
X-Send-Pr-Version: www-1.0

>Number:         20502
>Category:       misc
>Synopsis:       kerberos5 w/o kerberos4 attempts to build keytab_krb4.c which fails
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    assar
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 09 06:30:01 PDT 2000
>Closed-Date:    Wed Feb 21 03:33:52 PST 2001
>Last-Modified:  Wed Feb 21 03:34:20 PST 2001
>Originator:     Mark Andrews
>Release:        4.1 stable
>Organization:
Nominum
>Environment:
FreeBSD drugs.dv.isc.org 4.1-STABLE FreeBSD 4.1-STABLE #0: Tue Aug  8 18:01:02 EST 2000     marka@drugs.dv.isc.org:/usr/obj/usr/src/sys/DRUGS  i386

>Description:
buildworld fails trying to compile keytab_krb4.c.

In the heimdal source keytab_krb4.c is only compiled if you have
kerberos4 otherwise it is not built.  The patch below reflects this
behaviour.
>How-To-Repeat:
/etc/make.conf
#MAKE_KERBEROS4=        yes
MAKE_KERBEROS5= yes

>Fix:
diff -ru -r kerberos5/lib/libkrb5/Makefile /var/kerberos5/lib/libkrb5/Makefile
--- kerberos5/lib/libkrb5/Makefile      Tue Feb 29 06:15:07 2000
+++ /var/kerberos5/lib/libkrb5/Makefile Tue Aug  8 14:27:22 2000
@@ -19,7 +19,7 @@
        get_in_tkt.c get_in_tkt_pw.c get_in_tkt_with_keytab.c \
        get_in_tkt_with_skey.c get_port.c init_creds.c init_creds_pw.c \
        keyblock.c keytab.c keytab_file.c keytab_memory.c \
-       keytab_krb4.c keytab_keyfile.c krbhst.c kuserok.c log.c \
+       keytab_keyfile.c krbhst.c kuserok.c log.c \
        mcache.c misc.c mk_error.c mk_priv.c mk_rep.c mk_req.c \
        mk_req_ext.c mk_safe.c net_read.c net_write.c n-fold.c \
        padata.c principal.c prog_setup.c prompter_posix.c \
@@ -30,6 +30,10 @@
        verify_init.c verify_user.c version.c warn.c write_message.c \
        krb5_err.c krb5_err.h heim_err.c heim_err.h \
        rc4_enc.c rc4_skey.c
+
+.if defined(MAKE_KERBEROS4)
+SRCS+= keytab_krb4.c
+.endif
 
 INCLUDES=${KRB5DIR}/lib/krb5/krb5.h ${.CURDIR}/../../include/krb5-types.h \
        ${KRB5DIR}/lib/krb5/krb5-protos.h heim_err.h krb5_err.h 


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->assar 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Thu Aug 10 03:12:50 PDT 2000 
Responsible-Changed-Why:  
Assar's looking at getting OpenSSH+Heimdal working. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20502 

From: Assar Westerlund <assar@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org, mark.andrews@nominum.com
Cc:  
Subject: Re: bin/20502: kerberos5 w/o kerberos4 attempts to build keytab_krb4.c which fails
Date: 21 Feb 2001 12:23:25 +0100

 Thanks for reporting this problem.  This has been fixed with the
 import of Heimdal 0.3e in current (which always builds keytab_krb4.c
 but which now doesn't require any krb4 functions for this) in current
 and will be MFC:ed to stable shortly.
 
 /assar
State-Changed-From-To: open->closed 
State-Changed-By: assar 
State-Changed-When: Wed Feb 21 03:33:52 PST 2001 
State-Changed-Why:  
fix by importing heimdal 0.3e in current (which shall be MFC:ed) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=20502 
>Unformatted:
