Cannot compile MIT Kerberos on HP-UX 11.31

Greg Hudson ghudson at MIT.EDU
Fri Mar 28 12:41:51 EDT 2014


On 03/28/2014 09:22 AM, Michael-O wrote:
> "t_enctypes.c", line 36: error #3696-D: cannot open source file "getopt.h"
>   #include <getopt.h>

It turns out that POSIX specifies getopt.h to be declared in unistd.h,
not getopt.h, so yes, this is a portability bug in t_enctypes.c.

> Do you want me to file an issue? I guess a define for HP-UX and ifndef is necesary.

No need.  I have filed a pull request, and this should be fixed in 1.12.2.


More information about the Kerberos mailing list