[1791] in Kerberos-V5-bugs
Bug Reports for Kerberos V5 Beta 5
daemon@ATHENA.MIT.EDU (Sean Mullan)
Tue Jan 30 14:59:19 1996
To: krb5-bugs@MIT.EDU
Cc: mullan_s@apollo.hp.com (Sean Mullan)
Date: Tue, 30 Jan 1996 14:59:09 -0500
From: Sean Mullan <mullan_s@apollo.hp.com>
Bug Reports for Kerberos V5 Beta 5
----------------------------------
Platform: HP-UX 9.03
1) The autoconf configure scripts do not look for the
CPP environment variable. This affects all
configure scripts which look for the CPP variable:
Here are the diffs to fix this using src/admin/edit/configure
as an example (all should be similar, however)
*** configure@@/main/mullan_hp_beta5/0 Fri Jan 26 17:10:51 1996
--- configure Fri Jan 26 17:11:29 1996
***************
*** 635,640 ****
--- 635,642 ----
rm -f conftest*
ac_cv_prog_CPP="$CPP"
fi
+ else
+ ac_cv_prog_CPP="$CPP"
fi
CPP="$ac_cv_prog_CPP"
echo "$ac_t""$CPP" 1>&4
2) I was unable to compile kdb5_edit because HP-UX doesn't
support alloca() and the source did not have a proper
workaround. I did not spend too much time on this but I may
revisit it later.
3) src/appl/telnet/telnetd/sys_term.c
There are 2 calls to setpgrp which should pass in 2 dummy arguments
for those implementations which have a 2 argument setpgrp():
*** sys_term.c@@/main/mullan_hp_beta5/0 Mon Jan 29 11:16:16 1996
--- sys_term.c Mon Jan 29 11:16:39 1996
***************
*** 1251,1257 ****
(void) signal(SIGHUP, SIG_IGN);
(void) ioctl(t, TCVHUP, (char *)0);
(void) signal(SIGHUP, SIG_DFL);
! setpgrp();
#if defined(_SC_CRAY_SECURE_SYS)
if (secflag) {
--- 1251,1257 ----
(void) signal(SIGHUP, SIG_IGN);
(void) ioctl(t, TCVHUP, (char *)0);
(void) signal(SIGHUP, SIG_DFL);
! setpgrp(0, 0);
#if defined(_SC_CRAY_SECURE_SYS)
if (secflag) {
***************
*** 1390,1396 ****
register int pid = i;
void sigjob P((int));
! setpgrp();
utmp_sig_reset(); /* reset handler to default */
/*
* Create utmp entry for child
--- 1390,1396 ----
register int pid = i;
void sigjob P((int));
! setpgrp(0, 0);
utmp_sig_reset(); /* reset handler to default */
/*
* Create utmp entry for child
4) src/include/k5-int.h
This should specifically look in the krb5 subdirectory for dbm.h because
it will pick up the dbm.h installed on the system otherwise.
*** k5-int.h@@/main/mullan_hp_beta5/0 Fri Jan 26 14:50:12 1996
--- k5-int.h Fri Jan 26 14:50:41 1996
***************
*** 21,27 ****
#include "asn1.h"
#include "copyright.h"
! #include "dbm.h"
#include "ext-proto.h"
/* Needed to define time_t for kdb.h prototypes. */
#include "sysincl.h"
--- 21,27 ----
#include "asn1.h"
#include "copyright.h"
! #include "krb5/dbm.h"
#include "ext-proto.h"
/* Needed to define time_t for kdb.h prototypes. */
#include "sysincl.h"
5) src/lib/krb5/krb/gc_via_tkt.c
The HP-UX compiler gave an error when compiling the conditional
contained in the parameter list. Casting the NULL to a pointer to a
krb5_data fixed it.
*** gc_via_tkt.c@@/main/mullan_hp_beta5/0 Thu Jan 25 18:18:57 1996
--- gc_via_tkt.c Fri Jan 26 11:22:11 1996
***************
*** 145,151 ****
in_cred->server, address, in_cred->authdata,
0, /* no padata */
(kdcoptions & KDC_OPT_ENC_TKT_IN_SKEY) ?
! &in_cred->second_ticket : NULL,
tkt, &tgsrep))
return retval;
--- 145,151 ----
in_cred->server, address, in_cred->authdata,
0, /* no padata */
(kdcoptions & KDC_OPT_ENC_TKT_IN_SKEY) ?
! &in_cred->second_ticket : (krb5_data *) NULL,
tkt, &tgsrep))
return retval;
6) src/Makefile.in & src/lib/Makefile.in
Atria's ClearCase clearmake tool gave errors when compiling these
Makefiles due to the DOS-style pathnames in the windows targets
contained in the makefiles.
I'm not sure if this is a bug in clearmake but for the time being
I commented out the windows targets.
7) I had to remove src/include/krb5/macsock.h because the autoconf
configure scripts would find macsock.h in this directory and then
add the HAVE_MACSOCK_H preprocessor macro.
It should only look in the system include area for macsock.h