Subject: Re: misc/28727: building src/libexec/telnetd fails if MKKERBEROS4=no
To: None <gnats-admin@netbsd.org>
From: Jukka Salmi <j+nbsd@2004.salmi.ch>
List: netbsd-bugs
Date: 12/21/2004 00:27:44
--gj572EiMnwbLXET9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
The next failure was in usr.bin/login:
# create login/k5login.d
CC=/opt/tools/bin/i386--netbsdelf-gcc /opt/tools/bin/nbmkdep -f k5login.d -- -DLOGIN_CAP -DSUPPORT_UTMP -DSUPPORT_UTMPX -DKERBEROS5 -I/opt/dst/embed/usr/include/krb5 -nostdinc -isystem /opt/dst/embed/usr/include /usr/src/usr.bin/login/k5login.c
/usr/src/usr.bin/login/k5login.c:61:28: kerberosIV/krb.h: No such file or directory
nbmkdep: compile failed.
*** Failed target: k5login.d
*** Failed command: CC=/opt/tools/bin/i386--netbsdelf-gcc /opt/tools/bin/nbmkdep -f k5login.d -- -DLOGIN_CAP -DSUPPORT_UTMP -DSUPPORT_UTMPX -DKERBEROS5 -I/opt/dst/embed/usr/include/krb5 -nostdinc -isystem /opt/dst/embed/usr/include /usr/src/usr.bin/login/k5login.c
*** Error code 1
Stop.
nbmake: stopped in /usr/src/usr.bin/login
[...]
The attached patch should fix this.
--
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~
--gj572EiMnwbLXET9
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="login.no-krb4.patch"
--- usr.bin/login/k5login.c.orig 2003-08-07 13:14:24.000000000 +0200
+++ usr.bin/login/k5login.c 2004-12-21 00:18:31.000000000 +0100
@@ -58,7 +58,9 @@
#include <sys/param.h>
#include <sys/syslog.h>
#include <krb5/krb5.h>
+#ifdef KERBEROS
#include <kerberosIV/krb.h>
+#endif
#include <pwd.h>
#include <netdb.h>
#include <stdio.h>
--gj572EiMnwbLXET9--