Subject: Re: weirdo problem with ntpq (res header related?)
To: Geoff Wing <>
From: Frederick Bruckman <>
List: current-users
Date: 05/24/2004 22:55:17
On Tue, 25 May 2004, Geoff Wing wrote:

> Heyla,
> with a recent ntpq (current userland/kernel to within a day):
> % ntpq -p
> ***Can't find host localhost
>      remote           refid      st t when poll reach   delay   offset  jitter
> ==============================================================================
> ...
> but gives normal output.
> similarly:
> % ntpq -p somehost
> ***Can't find host somehost
> ...
> With a ntpq from five days ago (running on the current machine) it works OK.
> nm and ldd report exactly the same set of symbols and libraries for each so
> I'm guessing it's some header change.

It looks like <netdb.h> now defines AI_ADDRCONFIG, but it's not
actually implemented. "ntpq" falls back to trying getaddrinfo()
without it, but not without complaints. If you would, please file
a problem report.