Error build with lockclock on CentOS 7
Full output at https://gitlab.com/selsky/ntpsec/builds/6150594
./waf configure --enable-crypto --refclock=all --enable-lockclock build
[...]
[127/248] Compiling ntpd/refclock_local.c
../../ntpd/refclock_local.c: In function ‘local_poll’:
../../ntpd/refclock_local.c:145:15: error: storage size of ‘ntv’ isn’t known
struct timex ntv;
^
../../ntpd/refclock_local.c:174:2: warning: implicit declaration of function ‘ntp_adjtime’ [-Wimplicit-function-declaration]
switch (ntp_adjtime(&ntv)) {
^
../../ntpd/refclock_local.c:175:7: error: ‘TIME_OK’ undeclared (first use in this function)
case TIME_OK:
^
../../ntpd/refclock_local.c:175:7: note: each undeclared identifier is reported only once for each function it appears in
../../ntpd/refclock_local.c:180:7: error: ‘TIME_INS’ undeclared (first use in this function)
case TIME_INS:
^
../../ntpd/refclock_local.c:185:7: error: ‘TIME_DEL’ undeclared (first use in this function)
case TIME_DEL:
^
../../ntpd/refclock_local.c:145:15: warning: unused variable ‘ntv’ [-Wunused-variable]
struct timex ntv;
^
Waf: Leaving directory `/home/gitlab-runner/builds/ffd1975a/1/selsky/ntpsec/build/main'
Build failed
-> task in 'refclock_local' failed with exit status 1 (run with -v to display more information)