[5502] in Kerberos

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

Re: HP-UX Kerberos Installation

daemon@ATHENA.MIT.EDU (Tomas Gustavsson)
Mon Jul 17 11:22:57 1995

To: kerberos@MIT.EDU
Date: 17 Jul 1995 13:22:35 GMT
From: tomasg@mars.dsv.su.se (Tomas Gustavsson)

We had the same problem a few months ago. The explanation (from
jik@cam.ov.com) was that gcc doesn't handle HP-UX structure-returning
conventions, so the interface to the system DBM libraries gets screwed
up. 

However we were given the suggestion that we could modify
lib/kdb/Makefile.in so that it compiles kdb_dbm.o, the only file using
DBM, with a HP-UX compiler. This worked for us and kdb_dbm.c looks to
be non ANSI.

Here comes a cut from Makefile.in (written by jik@cam.ov.com)

ifeq ($(shell uname),HP-UX)
kdb_dbm.o: kdb_dbm.c
	$(subst $(CC),c89 -D_HPUX_SOURCE, $(COMPILE.c)) kdb_dbm.c
endif

Another suggestion was to compile GNU dbm with gcc, and then use its
DBM-compatibility interface as the DBM library for kerberos.

We were also told that there was a pre-release of gcc (2.6.3.u9) that
would handle HP-UX correctly. Maybe it's out by now for real.

===================================
Tomas Gustavsson 
Dept. of Computer and System Sciences, Stockholm University/KTH
Email: tomasg@dsv.su.se
WWW: http://www.dsv.su.se/~tomasg
tel: +46 8 16 17 01



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