Cannot compile MIT Kerberos on HP-UX 11.31
Michael-O
1983-01-06 at gmx.net
Fri Mar 28 09:22:35 EDT 2014
Hi folks,
I am trying to compile Kerberos 5 1.12.1 on HP-UX 11.31. While configuration works fine, compilation fails because of
cc -DHAVE_CONFIG_H -DUSE_AUTOCONF_H -I../../include -I../../include -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -g -D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L -c t_enctypes.c
"t_enctypes.c", line 36: error #3696-D: cannot open source file "getopt.h"
#include <getopt.h>
^
1 error detected in the compilation of "t_enctypes.c".
*** Fehlerrückkehrcode 2
Stopp.
*** Fehlerrückkehrcode 1
Stopp.
*** Fehlerrückkehrcode 1
Stopp.
After a quick search, I have found that [1] getopt.h is included in the stdlib.h in HP-UX. I have edited the t_enctypes.c file, removed the include statement and was able to compile the entire code.
Do you want me to file an issue? I guess a define for HP-UX and ifndef is necesary.
Thanks,
Michael
[1] http://trac.sagemath.org/ticket/7177
More information about the Kerberos
mailing list