Re: [chrony-users] Compile Chrony 4.0 with NTS feature under Ubuntu 18.04 / 20.04

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-users Archives ]


Thanks, 
Now it is working fine in Ubuntu 20.04...
 and I think to pass adding NTS to Ubuntu 18.04 as installing nettle v3.6 and gnutls v3.6.15 seems to be complicated without breaking anything.

Best


On Mon, 9 Nov 2020 at 14:58, William Holmes <xylene2016@xxxxxxxxx> wrote:
Installation of nettle v3.6 and gnutls v3.6.15 will get "+NTS" .


On Mon, Nov 9, 2020 at 7:41 AM Benoit Rat <benoit@xxxxxxxxxxxxx> wrote:
Hi All,

I have been trying to compile the latest chrony to test NTS but it seems that something is not found during the configure step and thus NTS feature is not enabled.

For Ubuntu 18.04, the library I have installed are:

libgnutls-dane0/bionic-updates,now 3.5.18-1ubuntu1..4 amd64 [instalado]
libgnutls-openssl27/bionic-updates,now 3.5.18-1ubuntu1.4 amd64 [instalado]
libgnutls28-dev/bionic-updates,now 3.5.18-1ubuntu1.4 amd64 [instalado]
libgnutls30/bionic-updates,now 3.5.18-1ubuntu1.4 amd64 [instalado]
libgnutlsxx28/bionic-updates,now 3.5.18-1ubuntu1.4 amd64 [instalado]

But the configure script does not recognize gnutls

/opt/chrony$ ./configure
Configuring for  Linux-x86_64
Checking for gcc : Yes
Checking for hardening compiler options : Yes
Checking for -fstack-protector-strong : Yes
Checking for pkg-config : Yes
Checking for 64-bit time_t : Yes
NTP time mapped to 1970-11-22T12:12:10Z/2106-12-29T18:40:26Z
Checking for math : No
Checking for math in -lm : Yes
Checking for struct in_pktinfo : Yes
Checking for IPv6 support : Yes
Checking for struct in6_pktinfo : No
Checking for struct in6_pktinfo with _GNU_SOURCE : Yes
Checking for clock_gettime() : Yes
Checking for getaddrinfo() : Yes
Checking for pthread : Yes
Checking for arc4random_buf() : No
Checking for getrandom() : Yes
Checking for recvmmsg() : Yes
Checking for SW/HW timestamping : Yes
Checking for other timestamping options : Yes
Checking for <sys/timepps..h> : Yes
Checking for PPSAPI : Yes
Checking for libcap : Yes
Checking for <linux/rtc.h> : Yes
Checking for <linux/ptp_clock.h> : Yes
Checking for pthread_setschedparam() : Yes
Checking for mlockall() : Yes
Checking for setrlimit(RLIMIT_MEMLOCK, ...) : Yes
Checking for editline : Yes
Checking for nettle : Yes
Checking for CMAC in nettle : No
Checking for gnutls : No
Features : +CMDMON +NTP +REFCLOCK +RTC +PRIVDROP -SCFILTER -SIGND +ASYNCDNS -NTS +READLINE +SECHASH +IPV6 -DEBUG
Creating Makefile
Creating doc/Makefile
Creating test/unit/Makefile

I did also try the same steps on Ubuntu 20.04 within dockers  

apt-get update && apt-get install -y build-essential git tig vim readline-common libedit-dev libgnutls* gnutls-bin libpcap* libpcap-dev net-tools curl software-properties-common
git clone https://git.tuxfamily.org/chrony/chrony.git
cd chrony/
git checkout 4.0

But then again while I am using configure gnutls is not properly recognized (and libpcap neither)

root@fc8e1552683f:/opt/chrony# ./configure
Configuring for  Linux-x86_64
Checking for gcc : Yes
Checking for hardening compiler options : Yes
Checking for -fstack-protector-strong : Yes
Checking for pkg-config : No
Checking for 64-bit time_t : Yes
NTP time mapped to 1970-11-22T12:37:33Z/2106-12-29T19:05:49Z
Checking for math : No
Checking for math in -lm : Yes
Checking for struct in_pktinfo : Yes
Checking for IPv6 support : Yes
Checking for struct in6_pktinfo : No
Checking for struct in6_pktinfo with _GNU_SOURCE : Yes
Checking for clock_gettime() : Yes
Checking for getaddrinfo() : Yes
Checking for pthread : Yes
Checking for arc4random_buf() : No
Checking for getrandom() : Yes
Checking for recvmmsg() : Yes
Checking for SW/HW timestamping : Yes
Checking for other timestamping options : Yes
Checking for <sys/timepps.h> : No
Checking for <timepps.h> : No
Checking for libcap : No
Checking for <linux/rtc.h> : Yes
Checking for <linux/ptp_clock.h> : Yes
Checking for pthread_setschedparam() : Yes
Checking for mlockall() : Yes
Checking for setrlimit(RLIMIT_MEMLOCK, ...) : Yes
Checking for editline : Yes
Checking for tomcrypt : Yes
Features : +CMDMON +NTP +REFCLOCK +RTC -PRIVDROP -SCFILTER -SIGND +ASYNCDNS -NTS +READLINE +SECHASH +IPV6 -DEBUG
Creating Makefile
Creating doc/Makefile
Creating test/unit/Makefile

Any suggestions? 
Best
 

 This e-mail and any materials attached hereto, including, without limitation, all content hereof and thereof are confidential and proprietary to Seven Solutions,S.L and/or its affiliates, and are *confidential*. Without the prior written consent of Seven Solutions, this content may not (i) be disclosed to any third party, (ii) be reproduced, modified or otherwise used by anyone other than current employees of Seven Solutions or its affiliates. If you are not the intended recipient or if this message has been received in error, please notify us immediately via e-mail and delete it.

 This e-mail and any materials attached hereto, including, without limitation, all content hereof and thereof are confidential and proprietary to Seven Solutions,S.L and/or its affiliates, and are *confidential*. Without the prior written consent of Seven Solutions, this content may not (i) be disclosed to any third party, (ii) be reproduced, modified or otherwise used by anyone other than current employees of Seven Solutions or its affiliates. If you are not the intended recipient or if this message has been received in error, please notify us immediately via e-mail and delete it.

Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/