[35942] in Kerberos
Cannot compile MIT Kerberos on HP-UX 11.31
daemon@ATHENA.MIT.EDU (Michael-O)
Fri Mar 28 12:37:24 2014
MIME-Version: 1.0
Message-ID: <trinity-465f9114-2dd3-4529-8a12-aa82824b8131-1396012955551@3capp-gmx-bs29>
From: Michael-O <1983-01-06@gmx.net>
To: kerberos@mit.edu
Date: Fri, 28 Mar 2014 14:22:35 +0100
Content-Type: text/plain; charset="utf-8"
Errors-To: kerberos-bounces@mit.edu
Content-Transfer-Encoding: 8bit
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
________________________________________________
Kerberos mailing list Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos