On 04/07/2014 04:44 AM, Vipul Mehta wrote: > I've narrowed down the problem. > > get_so_error() in sendto_kdc.c is returning error code 22 i.e. invalid > argument on getsockopt() call. > > e = getsockopt(fd, SOL_SOCKET, SO_ERROR, &sockerr, &sockerrlen);
I did some searching and found: http://lists.ibiblio.org/pipermail/freetds/2009q1/024226.html http://www.postgresql.org/message-id/20101216174803.20b2b...@pc09.procura.nl It looks like HP-UX has an eight-byte socklen_t and a four-byte int, and has two different versions of getsockopt(), one which expects a pointer to int in the last parameter and one which expects a pointer to socklen_t. Since we don't do anything in our build system to choose "X/Open sockets," we probably get the first one. If you change sockerrlen from socklen_t to int, does it start working? I'm not sure if we can make a reasonable change to accomodate this if so, but it would be good to know. There seems to have been some confusion among various standards bodies over what type the optlen parameter should point to. ________________________________________________ Kerberos mailing list Kerberos@mit.edu https://mailman.mit.edu/mailman/listinfo/kerberos