<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<tt><font size=-1></font></tt>&nbsp;
<br><tt><font size=-1>OK, here are tricks for building Kerberos 1.3.1 on
HPUX 11.0</font></tt><tt><font size=-1></font></tt>
<p><tt><font size=-1>1) To solve the problem with dispatch.c, I need to
change inet_ntop() a little.</font></tt>
<br><tt><font size=-1>macro inet_ntop() is defined in ./include/port-sockets.h
as:</font></tt>
<br><tt><font size=-1>#define inet_ntop(AF,SRC,DST,CNT)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
\</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp; ((AF) == AF_INET&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
\</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; ? ((CNT) &lt; 16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
\</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ? (SOCKET_SET_ERRNO(ENOSPC),
(char *) NULL)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
\</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : (sprintf((DST),
"%d.%d.%d.%d",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
\</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
((const unsigned char *)(const void *)(SRC))[0] &amp; 0xff,&nbsp; \</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
((const unsigned char *)(const void *)(SRC))[1] &amp; 0xff,&nbsp; \</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
((const unsigned char *)(const void *)(SRC))[2] &amp; 0xff,&nbsp; \</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
((const unsigned char *)(const void *)(SRC))[3] &amp; 0xff), \</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
(DST)))&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
\</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp; : (SOCKET_SET_ERRNO(EAFNOSUPPORT),
(char *) NULL))</font></tt><tt></tt>
<p><tt><font size=-1>Add "(char *)" to the front of both "NULL", otherwise
HP C will complain and exit.</font></tt><tt><font size=-1></font></tt>
<p><tt><font size=-1>2) Krb5-131's configure could not detect the presence
of HPUX version</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp; of utimes(), because HPUX utimes() defines
as</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp; int utimes(const char *path, const struct
timeval times[2])</font></tt><tt><font size=-1></font></tt>
<p><tt><font size=-1>&nbsp;&nbsp; Note the "const" keyword, which conflict
with MIT version of utimes(), so I need to</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp; add "const" to MIT version.</font></tt><tt><font size=-1></font></tt>
<p><tt><font size=-1>&nbsp;&nbsp; Or I guess we can fix configure, so it
will detect that HPUX11 has utimes().</font></tt><tt><font size=-1></font></tt>
<p><tt><font size=-1>3) There is a conflict between</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp; void kerberos5_printsub (unsigned char
*, int, unsigned char *, int);</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp; which is defined in src/appl/telnet/libtelnet/kerberos5.c</font></tt>
<br><tt><font size=-1>&nbsp;</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp; and the declaration in&nbsp; auth-proto.h,
which has</font></tt>
<br><tt><font size=-1>&nbsp;&nbsp; void kerberos5_printsub (unsigned char
*, int, unsigned char *, unsigned int);</font></tt><tt><font size=-1></font></tt>
<p><tt><font size=-1>&nbsp;&nbsp; Note that last argument in should be
"int", instead of "unsigned int".</font></tt>
<br><tt><font size=-1></font></tt>&nbsp;<tt><font size=-1></font></tt>
<p><tt><font size=-1>Then you should be able to compile on HPUX 11.0. I
have not tried 10.20 and 11i yet.</font></tt>
<br><tt><font size=-1>But the binary on HPUX11 should be working on 11i.</font></tt>
<br><tt><font size=-1></font></tt>&nbsp;<tt><font size=-1></font></tt>
<p><tt><font size=-1>Jin</font></tt>
<br>-----------------------------------------------------------------------------------------------------------------------
<p>Jin Zhou wrote:
<blockquote TYPE=CITE>Hi,
<p>Has anybody successfully compiled/built Kerberos 1.3.1 on HPUX (11,
11i,
<br>10.20) ?
<p>The HP ANSI C compiler (to be accurate, the cpp.ansi pre-processor)
on
<br>my system dies with signal 11 when it tries to process aestab.c, and
<br>there is no other error message.
<p>In addition, HPUX doesn't have "inet_ntop()", and the MIT version of
<br>"inet_ntop" macro is causing error due to the incompatible data types.
<br>The error message is:
<p>cc: "dispatch.c", line 58: error 1647: Illegal integer-pointer
<br>combination for second and third operands of conditional expression
<br>(?:).
<p>I'm wondering whether I can re-implement a C version of inet_ntop()
to
<br>replace the macro one?
<p>If somebody has already built krb5 1.3.1 on any of HPUX, can you do
a
<br>"swlist -l product" and let me know what version of HP ANSI C compiler
<br>you have on your HPUX system?
<p>I wonder whether GNU C could build krb5 1.3.1 without problem....
<p>Thanks
<p>Jin
<p>________________________________________________
<br>Kerberos mailing list&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Kerberos@mit.edu
<br><a href="https://mailman.mit.edu/mailman/listinfo/kerberos">https://mailman.mit.edu/mailman/listinfo/kerberos</a></blockquote>
</html>