[817] in Kerberos-V5-bugs

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

Kerberos 5 & HP-UX tales

daemon@ATHENA.MIT.EDU (Joe Ramus)
Fri Sep 30 23:33:52 1994

Date: Fri, 30 Sep 94 20:33:41 PDT
From: ramus@nersc.gov (Joe Ramus)
To: kerberos@MIT.EDU, krb5-bugs@MIT.EDU


I am trying to build Kerberos 5.4.2 on HP-UX 9.01.
Several folks posted helpful hints and that helped a lot.
This one was very helpful.

>>   You should probably also define the symbol _HPUX_SOURCE.  Also, in autoconf.h
>> they #define const to <blanks> which causes problems with some of the prototypes.
>> This addressed most of the compile errors I had, although I did have to modify 
>> some of the other sources slightly.  Unfortunatly, I have not yet been able to 
>> install the executables due to some administrative bureaucracy.  Hope this helps!
>> -- 
>> Arthur L. Hunt                       SAS Institute Inc
>> snoalh@unx.sas.com                   (919) 677-8000 x6876

I corrected the problem in autoconf.h so "const" is active.

I am using the compiler options like this:
  cc -g -Aa -D_HPUX_SOURCE

I think the -Aa is required to get Ansi C mode.
But this has a really serious side effect.   The built-in compiler
symbol "hpux" is no longer defined with the -Aa option.
There is another symbol "__hpux" that is defined.

The Kerberos 5 code (especially under src/appl/bsd) has a lot of
#ifdef hpux

With the -Aa option, all of those hpux tests go the wrong way.

----------------------------------------------------------------
| Joe Ramus  NERSC Livermore  (510) 423-8917   ramus@nersc.gov |
----------------------------------------------------------------

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