[3756] in Kerberos

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

Re: Kerberos4 port for HPUX9.01

daemon@ATHENA.MIT.EDU (Tony Melvin)
Thu Aug 25 05:54:19 1994

From: Tony Melvin <tony@sodalia.it>
To: weiyeh@columbia.edu (Wei-Yeh Lee)
Date: Wed, 24 Aug 94 9:53:19 METDST
Cc: kerberos@MIT.EDU
In-Reply-To: <199408232133.AA06518@panda.cc.columbia.edu>; from "Wei-Yeh Lee" at Aug 23, 94 5:33 pm

> 
> 
> Has anyone successfully ported krb4 for an HP running HPUX?
> If so, please advise.  We have just gotten 40 or so HP's 
> and we need to get them running krb4 like the rest of our 
> machines.  
> 
> Any tips or pointers locations of successful HP ports of kerberos 4
> would be helpful and most appreciated.
> 
> thanks in advance!
> 
> /weiyeh
> Unix Systems Group
>
I just did a port to HPUX 9.03 of Krb4 (Bones) using the following file
conf-hpux.h; you need to modify osconf.h to get it read. You will have
to look closely at the various flags used by the compiler, lint and other 
utilities as there are several incompatibilities. Here's a summary of the
other things that I needed to do:

- changed comments in Imakefiles from "#" to "/* ... */"
- renamed kerberos function "stime" to "Stime" due to conflict with HPUX
- all use of "flock" changed to equivalent "fcntl" calls
- changed "utimes" calls to "utime"
- modified config.Imakefile to include -lndbm compiler flag
- changed "setbuffer" & "setlinebuffer" calls to "setvbuf"
- changed use of TIOCNOTTY (4.3BSD) for terminal control to "setpgrp" (SYSV)
- changed "getdtablesize" to "_NFILE"
- fiddled with install switches

You can count on a few days work ! 

Alternatively, acquire it from Cygnus or OCSG.

Good luck.

Tony Melvin		Sodalia (Italy)
 
/*
 * $Source: $
 * $Author: $
 * $Header: $
 *
 * Copyright 1988 by the Massachusetts Institute of Technology.
 *
 * For copying and distribution information, please see the file
 * <mit-copyright.h>.
 *
 * Machine-type definitions: HPUX
 */

#define BITS32
#define BIG
#define MSBFIRST
#define BSDUNIX
#ifndef SYSV
#define SYSV
#endif
#if defined(hp9000s800) || defined(__hp9000s800) || defined(__hppa)
#define MUSTALIGN
#endif

/*
 * Macro translations from BSD to HP-UX
 */
#define setegid(a)       setresgid(-1,a,-1)
#define seteuid(a)       setresuid(-1,a,-1)
#define setregid(a,b)    setresgid(a,b,-1)
#define setreuid(a,b)    setresuid(a,b,-1)
/*
 * Macro translations from BSD to SYSV
 * (as of 7.0 the following routine are available in -lBSD
 *	bcmp, bcopy, bzero, index, rindex, getwd,
 *	killpg, signal, sigvec, getpgrp, setpgrp
 *  but we can avoid using -lBSD by defining some macros)
 */
#if defined(HPUX_70)
#define index            strchr
#define rindex           strrchr
#define bcopy(a,b,c)     memmove(b,a,c)		/* ANSI C */
#define bcmp(a,b,c)      memcmp(a,b,c)
#define bzero(a,b)       memset(a,0,b)
#endif
#define random()         rand()
#define srandom(x)       srand(x)
#define getdtablesize()  (NOFILE)
#define setlinebuf(fp)   setvbuf(fp,NULL,_IOLBF,BUFSIZ)


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