[LinuxPPS] cross posting [time-nuts] NTP API on Linux 2.6.26
Hal V. Engel
hvengel at astound.net
Sun Jan 11 09:33:35 CET 2009
On Saturday 10 January 2009 23:13:41 Udo van den Heuvel wrote:
> Hal V. Engel wrote:
> > I was using ntp-4.2.5p135 when I was having this problem. I moved back
> > to 4.2.4p6 (latest stable version) and tested again. This appears to be
> > working OK with LIBS="-lrt". So it appears that there were issues with
> > the version of ntp I was using.
>
> So I just patch the Makefile?
> Or is there a ./configure trick to use librt?
>
> Please let us know!
>
> Thanks,
> Udo
You configure like this:
./configure LIBS="-lrt" <what ever options you need for your refclocks>
If you parse through the output from the configure you should see:
checking for clock_gettime... yes
checking for clock_settime... yes
If you don't do the LIBS="-lrt" the above will say no.
For gentoo users I just modified the ebuild and changed the econfig like to
look like this:
econfig LIBS="-lrt" \
Hal
More information about the LinuxPPS
mailing list