[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build of heimdal 0.8-rc7 fails




Nope, this is because getnameinfo changed behaviour for addresses it
can't resolve.

Quick and dirty fix... Find this in configure:

int
main(int argc, char **argv)
{
  struct sockaddr_in sin;
  char host[256];
  memset(&sin, 0, sizeof(sin));
#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
  sin.sin_len = sizeof(sin);
#endif
  sin.sin_family = AF_INET;
  sin.sin_addr.s_addr = 0xffffffff;
  sin.sin_port = 0;
  return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host),
              NULL, 0, 0);
}

and change the last 0 to NI_NUMERICHOST

The real fix is to remember what then test broken-getnameinfo.m4 was testing for
in AIX and then decide if we should do NI_NUMERICHOST or look up htonl(0x7f000001)
instead. 

Or nuke the whole test because it fixed things in AIX 3.4 which
hopefully is dead an buried.

Harald.