[ntp:questions] Using Trimble TSIP under Linux

unruh unruh at invalid.ca
Mon Oct 29 23:43:21 UTC 2012


On 2012-10-29, David Taylor <david-taylor at blueyonder.co.uk.invalid> wrote:
> On 29/10/2012 10:45, David Taylor wrote:
> []
>> pi at raspberrypi ~ $ sudo /etc/init.d/ntp restart
>> [ ok ] Stopping NTP server: ntpd.
>> [....] Starting NTP server: ntpd/usr/sbin/ntpd: The ``user'' option has
>> been disabled -- built without --enable-clockctl or --enable-linuxcaps
>> ntpd - NTP daemon program - Ver. 4.2.7p314
>> USAGE:  ntpd [ -<flag> [<val>] | --<name>[{=| }<val>] ]... \
>>                  [ <server1> ... <serverN> ]
>>   failed!
>
> There's a suggestion on the Web that I should have built with extra 
> configuration switches, so I tried that, but it failed:
>
> $ ./configure --enable-clockctl --enable-linuxcaps

--enable-clockctl is for NetBSD, not linux. 

> $ make
> .
> .
> ../../ntpd/ntp_parser.c:2110:6: warning: assuming pointer wraparound 
> does not occur when comparing P +- C1 with P +- C2 [-Wstrict-overflow]
> ../../ntpd/ntp_parser.c:2110:6: warning: assuming pointer wraparound 
> does not occur when comparing P +- C1 with P +- C2 [-Wstrict-overflow]
> ../../ntpd/ntp_parser.c:2110:6: warning: assuming pointer wraparound 
> does not occur when comparing P +- C1 with P +- C2 [-Wstrict-overflow]
>    CC     ntp_scanner.o
>    CC     ntpd.o
> ntpd.c:111:29: fatal error: sys/capability.h: No such file or directory
> compilation terminated.

That is part of the libcap developement package. 
Make sure it is installed.



> make[3]: *** [ntpd.o] Error 1
> make[3]: Leaving directory `/home/pi/ntp/ntp-dev-4.2.7p314/ntpd'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/pi/ntp/ntp-dev-4.2.7p314/ntpd'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/pi/ntp/ntp-dev-4.2.7p314'
> make: *** [all] Error 2
> $
>
> Looking round the disk I do see a file:
>    /usr/include/linux/capability.h

Nope that is a different file. 

>
> I hope the ./configure was OK, but why this version doesn't build is 
> beyond me at the moment!



More information about the questions mailing list