NTPsec on Windows ??

Achim Gratz Stromeko at nexgo.de
Sun Feb 20 09:24:35 UTC 2022


James Browning via devel writes:
> Could you go through an remove all the mandatory=True instances and
> equivalent from configure. Then would you run build verbosified and
> get the arguments of a compile and maybe a couple links?

--8<---------------cut here---------------start------------->8---
...share/packages/ntpsec (2007)# ./waf configure --refclock=nmea,pps,local,generic,shm --prefix=/usr
Setting top to                           : /mnt/share/packages/ntpsec 
Setting out to                           : /mnt/share/packages/ntpsec/build 
Checking for program 'asciidoctor'       : not found 
Checking for program 'asciidoc'          : /usr/bin/asciidoc 
Checking for program 'a2x'               : /usr/bin/a2x 
Checking for program 'xsltproc'          : /usr/bin/xsltproc 
Checking for asciidoc version >= 8.6.8   : 10.1.2 
--- Configuring host --- 
Checking for 'gcc' (C compiler)          : /usr/bin/gcc 
Checking compiler version                : 11.2.0 
Checking for program 'ldconfig'          : not found 
Checking for program 'm4'                : /usr/bin/m4 
Checking for program 'bison'             : /usr/bin/bison 
Checking for program 'awk'               : /usr/bin/awk 
Checking for program 'sh'                : /usr/bin/sh 
Checking for program 'pkg-config'        : /usr/bin/pkg-config 
Checking for systemd                     : not found 
Checking for program 'git'               : /usr/bin/git 
--- Configuring main --- 
Checking for endianness                  : little 
Checking for library m                   : yes 
Checking for library rt                  : yes 
Checking for library pthread             : yes 
Checking for library execinfo            : not found 
Checking for library bsd                 : not found 
Checking for library ssp                 : yes 
Checking for library ssp_nonshared       : not found 
Checking if C compiler supports -fstack-protector-all : yes 
Checking if C compiler supports -fPIC                 : yes 
Checking if C compiler supports -pie -fPIE            : yes 
Checking if C compiler supports -Qunused-arguments    : no 
Checking if C compiler supports -Wcast-qual           : yes 
Checking if C compiler supports -Wdisabled-optimization : yes 
Checking if C compiler supports -Wfloat-equal           : yes 
Checking if C compiler supports -Wformat                : yes 
Checking if C compiler supports -Wformat-security       : yes 
Checking if C compiler supports -Wformat-signedness     : yes 
Checking if C compiler supports -Wimplicit-function-declaration : yes 
Checking if C compiler supports -Winit-self                     : yes 
Checking if C compiler supports -Winvalid-pch                   : yes 
Checking if C compiler supports -Wmissing-declarations          : yes 
Checking if C compiler supports -Wmultichar                     : yes 
Checking if C compiler supports -Wpacked                        : yes 
Checking if C compiler supports -Wpointer-arith                 : yes 
Checking if C compiler supports -Wshadow                        : yes 
Checking if C compiler supports -Wsuggest-attribute=noreturn    : yes 
Checking if C compiler supports -Wwrite-strings                 : yes 
Checking if C compiler supports -flto                           : yes 
Checking if linker supports -Wl,-z,now                          : no 
Checking if linker supports -Wl,--strip-all                     : yes 
Checking if linker supports -Wl,-z,relro                        : no 
Checking for type struct if_laddrconf                           : no 
Checking for type struct if_laddrreq                            : no 
Checking for type struct timex                                  : no 
Checking for type struct ntptimeval                             : no 
Checking for field time_tick in struct timex                    : no 
Checking for field modes in struct timex                        : no 
Checking for field time.tv_nsec in struct ntptimeval            : no 
Checking for field tai in struct ntptimeval                     : no 
Checking sizeof long                                            : 8 
Checking sizeof time_t (time.h)                                 : 8 
Checking for OpenSSL/libssl (via pkg-config)                    : yes 
Checking for OpenSSL/libcrypto (via pkg-config)                 : yes 
Checking for function _Unwind_Backtrace                         : yes 
Checking for function adjtimex                                  : no 
Checking for function backtrace_symbols_fd                      : no 
Checking for function ntp_adjtime                               : no 
Checking for function ntp_gettime                               : no 
Checking for function res_init                                  : yes 
Checking for function strlcpy                                   : yes 
Checking for function strlcat                                   : yes 
Checking for function timegm                                    : yes 
Checking for function PRIV_NTP_ADJTIME                          : no 
Checking for function timer_create                              : yes 
Checking for function CMAC_CTX_new                              : yes 
Checking for function EVP_PKEY_new_CMAC_key                     : yes 
Checking for header stdbool.h                                   : yes 
Checking for header alloca.h                                    : yes 
Checking for header arpa/nameser.h                              : yes 
Checking for header bsd/string.h                                : not found 
Checking for header ifaddrs.h                                   : yes 
Checking for header linux/if_addr.h                             : no 
Checking for header linux/rtnetlink.h                           : no 
Checking for header linux/serial.h                              : not found 
Checking for header net/if6.h                                   : not found 
Checking for header net/route.h                                 : no 
Checking for header priv.h                                      : not found 
Checking for header stdatomic.h                                 : yes 
Checking for header sys/clockctl.h                              : not found 
Checking for header sys/ioctl.h                                 : yes 
Checking for header sys/modem.h                                 : not found 
Checking for header sys/sockio.h                                : not found 
Checking for header sys/sysctl.h                                : no 
Checking for header timepps.h                                   : no 
Checking for header sys/timepps.h                               : no 
Checking for header sys/timex.h                                 : no 
Checking for sockaddr->sa_len                                   : no 
Checking if strerror_r returns char*                            : yes 
Checking for header libscf.h                                    : not found 
Enabling Refclock Generic NMEA GPS Receiver (nmea):             : Yes 
Enabling Refclock PPS Clock Discipline (pps):                   : No 
Refclock "PPS Clock Discipline" disabled, PPS API has not been detected as working. 
Enabling Refclock Undisciplined Local Clock (local):            : Yes 
Enabling Refclock Generic Reference Driver (Parse) (generic):   : Yes 
Enabling Refclock Shared Memory Driver (shm):                   : Yes 
Checking for header dns_sd.h                                    : not found 
Checking for OpenSSL with TLSv1.3 support                       : yes 
Checking for OpenSSL != 1.1.1a                                  : yes 
Writing configuration header:                                   : config.h 
 
Build Options 
  CC                            :  /usr/bin/gcc 
  CFLAGS                        :  -DUNITY_EXCLUDE_FLOAT_PRINT -fstack-protector-all -Wshadow -Wpacked -Wcast-qual -Wmissing-declarations -Wdisabled-optimization -Wimplicit-function-declaration -Winvalid-pch -Wpointer-arith -Wwrite-strings -Winit-self -Wfloat-equal -Wformat -Wformat-signedness -Wformat-security -Wsuggest-attribute=noreturn -fPIC -O1 -Wall -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wundef -Wunused -std=c99 -D_GNU_SOURCE 
  LDFLAGS                       :  -lssp -Wl,--strip-all 
  LINKFLAGS_NTPD                :  -pie 
  PREFIX                        :  /usr 
  LIBDIR                        :  /usr/bin 
  Droproot Support              :  None 
  Debug Support                 :  No 
  Refclocks                     :  generic, local, nmea, shm 
  Build Docs                    :  Yes 
  Build Manpages                :  Yes 
Checking for program 'python'                                   : /usr/bin/python 
Checking for python version >= 2.6.0                            : 3.9.10 
python-config                                                   : /usr/bin/python3.9-config 
Asking python-config for pyext '--cflags --libs --ldflags' flags : yes 
Testing pyext configuration                                      : yes 
Checking for python module 'curses'                              : ok 
Checking for python module 'argparse'                            : 1.1 
Checking for python module 'gps' (ver >= num(3, 18))             : not found 
WARNING: ntploggps will not be built/installed since python gps module >= 3.18 was not found 
  PYSHEBANG                     :  /usr/bin/env python 
  PYTHONDIR                     :  /usr/lib/python3.9/site-packages 
  PYTHONARCHDIR                 :  /usr/lib/python3.9/site-packages 
'configure' finished successfully (15.910s)
...share/packages/ntpsec (2008)# ./waf build
--- building host --- 
Waf: Entering directory `/mnt/share/packages/ntpsec/build/host'
[1/2] Processing ntpd/ntp_parser.y
[2/2] Compiling build/host/ntpd/ntp_parser.tab.c
[3/4] Compiling ntpd/keyword-gen.c
[4/4] Linking build/host/ntpd/keyword-gen.exe
[5/5] Compiling build/host/ntpd/ntp_parser.tab.h
163 keywords consumed 701 states of 2047 max.

Waf: Leaving directory `/mnt/share/packages/ntpsec/build/host'
--- building main --- 
Waf: Entering directory `/mnt/share/packages/ntpsec/build/main'
--- PYTHONPATH is not set, loading the Python ntp library may be troublesome ---
[  1/166] Compiling docs/ntpsnmpd.adoc
[  2/166] Compiling docs/driver_shm.adoc
[  3/166] Compiling docs/copyright.adoc
[  4/166] Compiling docs/authopt.adoc
[  5/166] Compiling docs/access.adoc
[  6/166] Compiling docs/404.adoc
[  7/166] Compiling docs/ntpsec.adoc
[  8/166] Compiling docs/ntpq.adoc
[  9/166] Compiling docs/driver_pps.adoc
[ 10/166] Compiling docs/ntplogtemp.adoc
[ 11/166] Compiling docs/ntploggps.adoc
[ 12/166] Compiling docs/driver_nmea.adoc
[ 13/166] Compiling docs/driver_local.adoc
[ 14/166] Compiling docs/driver_gpsd.adoc
[ 15/166] Compiling docs/warp.adoc
[ 16/166] Compiling docs/leap.adoc
[ 17/166] Compiling docs/kernpps.adoc
[ 18/166] Compiling docs/clock.adoc
[ 19/166] Compiling docs/driver_generic.adoc
[ 20/166] Compiling docs/leapsmear.adoc
[ 21/166] Compiling docs/stats.adoc
[ 22/166] Compiling docs/standards.adoc
[ 23/166] Compiling docs/sitemap.adoc
[ 24/166] Compiling docs/kern.adoc
[ 25/166] Compiling docs/index.adoc
[ 26/166] Compiling docs/driver_arbiter.adoc
[ 27/166] Compiling docs/rollover.adoc
[ 28/166] Compiling docs/select.adoc
[ 29/166] Compiling docs/huffpuff.adoc
[ 30/166] Compiling docs/rdebug.adoc
[ 31/166] Compiling docs/refclock.adoc
[ 32/166] Compiling docs/history.adoc
[ 33/166] Compiling docs/discover.adoc
[ 34/166] Compiling docs/accopt.adoc
[ 35/166] Compiling docs/build.adoc
[ 36/166] Compiling docs/rate.adoc
[ 37/166] Compiling docs/quick.adoc
[ 38/166] Compiling docs/prefer.adoc
[ 39/166] Compiling docs/pps.adoc
[ 40/166] Compiling docs/generic_howto.adoc
[ 41/166] Compiling docs/filter.adoc
[ 42/166] Compiling docs/discipline.adoc
[ 43/166] Compiling docs/parsedata.adoc
[ 44/166] Compiling docs/poll.adoc
[ 45/166] Compiling docs/extern.adoc
[ 46/166] Compiling docs/outside-tools.adoc
[ 47/166] Compiling docs/orphan.adoc
[ 48/166] Compiling docs/driver_zyfer.adoc
[ 49/166] Compiling docs/decode.adoc
[ 50/166] Compiling docs/bugs.adoc
[ 51/166] Compiling docs/oncore-shmem.adoc
[ 52/166] Compiling docs/ntpwait.adoc
[ 53/166] Compiling docs/ntpviz.adoc
[ 54/166] Compiling docs/ntptrace.adoc
[ 55/166] Compiling docs/driver_truetime.adoc
[ 56/166] Compiling docs/driver_trimble.adoc
[ 57/166] Compiling docs/debug.adoc
[ 58/166] Compiling docs/ntptime.adoc
[ 59/166] Compiling docs/ntpsweep.adoc
[ 60/166] Compiling docs/driver_spectracom.adoc
[ 61/166] Compiling docs/ntpspeak.adoc
[ 62/166] Compiling docs/tf582_4.adoc
[ 63/166] Compiling docs/ntpd.adoc
[ 64/166] Compiling docs/miscopt.adoc
[ 65/166] Compiling docs/NTS-QuickStart.adoc
[ 66/166] Compiling docs/ntpleapfetch.adoc
[ 67/166] Compiling docs/ntpdig.adoc
[ 68/166] Compiling docs/assoc.adoc
[ 69/166] Compiling docs/clockopt.adoc
[ 70/166] Compiling docs/authentic.adoc
[ 71/166] Compiling docs/driver_howto.adoc
[ 72/166] Compiling docs/mode6.adoc
[ 73/166] Compiling docs/ntpmon.adoc
[ 74/166] Compiling docs/confopt.adoc
[ 75/166] Compiling docs/comdex.adoc
[ 76/166] Compiling docs/monopt.adoc
[ 77/166] Compiling docs/driver_hpgps.adoc
[ 78/166] Compiling docs/driver_modem.adoc
[ 79/166] Compiling docs/msyslog.adoc
[ 80/166] Compiling docs/ntp_conf.adoc
[ 81/166] Compiling docs/driver_oncore.adoc
[ 82/166] Compiling docs/ntpfrob.adoc
[ 83/166] Compiling docs/cluster.adoc
[ 84/166] Compiling docs/driver_jjy.adoc
[ 85/166] Compiling docs/ntpkeygen.adoc
[ 86/166] Compiling docs/ntp_config.adoc
[ 87/166] Compiling docs/ntp_keys.adoc
[ 88/166] Compiling docs/icons/mail2.gif
[ 89/166] Compiling docs/icons/sitemap.png
[ 90/166] Compiling docs/icons/home.gif
[ 91/166] Compiling docs/pic/flt9.gif
[ 92/166] Compiling docs/pic/alice47.gif
[ 93/166] Compiling docs/pic/boom3.gif
[ 94/166] Compiling docs/pic/alice51.gif
[ 95/166] Compiling docs/pic/pd_om011.gif
[ 96/166] Compiling docs/pic/alice35.gif
[ 97/166] Compiling docs/pic/peer.gif
[ 98/166] Compiling docs/pic/alice13.gif
[ 99/166] Compiling docs/pic/orchestra.gif
[100/166] Compiling docs/pic/fg6021.gif
[101/166] Compiling docs/pic/igclock.gif
[102/166] Compiling docs/pic/flt6.gif
[103/166] Compiling docs/pic/pzf511.jpg
[104/166] Compiling docs/pic/flt4.gif
[105/166] Compiling docs/pic/flatheads.gif
[106/166] Compiling docs/pic/alice38.gif
[107/166] Compiling docs/pic/pogo7.gif
[108/166] Compiling docs/pic/wingdorothy.gif
[109/166] Compiling docs/pic/alice61.gif
[110/166] Compiling docs/pic/oz2.gif
[111/166] Compiling docs/pic/alice15.gif
[112/166] Compiling docs/pic/hornraba.gif
[113/166] Compiling docs/pic/dogsnake.gif
[114/166] Compiling docs/pic/howland.jpg
[115/166] Compiling docs/pic/thunderbolt.jpg
[116/166] Compiling docs/pic/driver_palisade.gif
[117/166] Compiling docs/pic/pogo6.gif
[118/166] Compiling docs/pic/boom4.gif
[119/166] Compiling docs/pic/pogo.gif
[120/166] Compiling docs/pic/flt1.gif
[121/166] Compiling docs/pic/flt2.gif
[122/166] Compiling docs/pic/alice44.gif
[123/166] Compiling docs/pic/oncore_utplusbig.gif
[124/166] Compiling docs/pic/SAppr.jpg
[125/166] Compiling docs/pic/boom3a.gif
[126/166] Compiling docs/pic/pogo4.gif
[127/166] Compiling docs/pic/tribeb.gif
[128/166] Compiling docs/pic/looking.jpg
[129/166] Compiling docs/pic/clocktower128.png
[130/166] Compiling docs/pic/kelly_pogo_earthday.jpg
[131/166] Compiling docs/pic/pogo8.gif
[132/166] Compiling docs/pic/sx5.gif
[133/166] Compiling docs/pic/barnstable.gif
[134/166] Compiling docs/pic/gps167.jpg
[135/166] Compiling docs/pic/pd_om006.gif
[136/166] Compiling docs/pic/c51.jpg
[137/166] Compiling docs/pic/alice23.gif
[138/166] Compiling docs/pic/oncore_evalbig.gif
[139/166] Compiling docs/pic/description.jpg
[140/166] Compiling docs/pic/time1.gif
[141/166] Compiling docs/pic/pogo5.gif
[142/166] Compiling docs/pic/flt8.gif
[143/166] Compiling docs/pic/radio2.jpg
[144/166] Compiling docs/pic/pogo3a.gif
[145/166] Compiling docs/pic/pogo-enemy2.png
[146/166] Compiling docs/pic/beaver.gif
[147/166] Compiling docs/pic/pogo1a.gif
[148/166] Compiling docs/pic/neoclock4x.gif
[149/166] Compiling docs/pic/flt5.gif
[150/166] Compiling docs/pic/sheepb.jpg
[151/166] Compiling docs/pic/bustardfly.gif
[152/166] Compiling docs/pic/flt3.gif
[153/166] Compiling docs/pic/discipline.gif
[154/166] Compiling docs/pic/stack1a.jpg
[155/166] Compiling docs/pic/pogocell.gif
[156/166] Compiling docs/pic/panda.gif
[157/166] Compiling docs/pic/broad.gif
[158/166] Compiling docs/pic/which-way-is.up.jpg
[159/166] Compiling docs/pic/tonea.gif
[160/166] Compiling docs/pic/stats.gif
[161/166] Compiling docs/pic/fig_3_1.gif
[162/166] Compiling docs/pic/alice32.gif
[163/166] Compiling docs/pic/alice11.gif
[164/166] Compiling docs/pic/flt7.gif
[165/166] Compiling docs/asciidoc.js
[166/166] Compiling docs/asciidoc.css
[167/295] Compiling libaes_siv/aes_siv.c
[168/295] Compiling libparse/gpstolfp.c
[169/295] Compiling libparse/clk_rcc8000.c
[170/295] Compiling libparse/clk_dcf7000.c
[171/295] Compiling libparse/data_mbg.c
[172/295] Compiling libparse/clk_wharton.c
[173/295] Compiling libparse/clk_rawdcf.c
[174/295] Compiling libparse/clk_varitext.c
[175/295] Compiling libparse/clk_trimtsip.c
[176/295] Compiling libparse/clk_meinberg.c
[177/295] Compiling libparse/trim_info.c
[178/295] Compiling libparse/clk_computime.c
[179/295] Compiling libparse/clk_sel240x.c
[180/295] Compiling libparse/clk_schmid.c
[181/295] Compiling libparse/binio.c
[182/295] Compiling libparse/parse_conf.c
[183/295] Compiling libparse/ieee754io.c
[184/295] Compiling libparse/clk_hopf6021.c
[185/295] Compiling libparse/clk_trimtaip.c
[186/295] Compiling libparse/info_trimble.c
[187/295] Compiling libparse/parse.c
[188/295] Compiling libntp/isc_net.c
[189/295] Linking build/main/libaes_siv/libaes_siv.a
[190/295] Compiling libntp/hextolfp.c
[191/295] Compiling libntp/authkeys.c
[192/295] Compiling libntp/macencrypt.c
[193/295] Compiling libntp/msyslog.c
[194/295] Compiling libntp/isc_interfaceiter.c
[195/295] Compiling libntp/ntp_calendar.c
[196/295] Compiling libntp/ntp_endian.c
[197/295] Compiling libntp/authreadkeys.c
[198/295] Compiling libntp/clockwork.c
[199/295] Compiling libntp/ntp_random.c
../../libntp/clockwork.c:9:10: fatal error: sys/timex.h: No such file or directory
    9 | #include <sys/timex.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

Waf: Leaving directory `/mnt/share/packages/ntpsec/build/main'
Build failed
 -> task in 'ntp' failed with exit status 1 (run with -v to display more information)
...share/packages/ntpsec (2009)# ./waf -k build
--- building host --- 
Waf: Entering directory `/mnt/share/packages/ntpsec/build/host'
Waf: Leaving directory `/mnt/share/packages/ntpsec/build/host'
--- building main --- 
Waf: Entering directory `/mnt/share/packages/ntpsec/build/main'
--- PYTHONPATH is not set, loading the Python ntp library may be troublesome ---
[189/295] Linking build/main/libparse/libparse.a
[193/295] Compiling libntp/systime.c
[195/295] Compiling libntp/getopt.c
[196/295] Compiling libntp/initnetwork.c
[197/295] Compiling libntp/dolfptoa.c
[198/295] Compiling libntp/decodenetnum.c
[199/295] Compiling libntp/timespecops.c
[200/295] Compiling libntp/statestr.c
[207/295] Compiling libntp/clocktime.c
In file included from ../../libntp/statestr.c:15:
../../include/ntp_syscall.h:13:11: fatal error: sys/timex.h: No such file or directory
   13 | # include <sys/timex.h>
      |           ^~~~~~~~~~~~~
compilation terminated.

[208/295] Compiling libntp/prettydate.c
[209/295] Compiling libntp/lib_strbuf.c
In file included from ../../include/ntp_lists.h:110,
                 from ../../include/ntp.h:14,
                 from ../../libntp/decodenetnum.c:13:
../../libntp/decodenetnum.c: In function ‘decodenetnum’:
../../libntp/decodenetnum.c:141:31: warning: comparison of integer expressions of different signedness: ‘socklen_t’ {aka ‘int’} and ‘long unsigned int’ [-Wsign-compare]
  141 |         INSIST(ai->ai_addrlen <= sizeof(*netnum));
      |                               ^~
../../include/ntp_assert.h:67:19: note: in definition of macro ‘INSIST’
   67 |         ((void) ((cond) || (assertion_failed(__FILE__, __LINE__, \
      |                   ^~~~

[210/295] Compiling libntp/clockwork.c
[211/295] Compiling libntp/socktoa.c
[212/295] Compiling libntp/ssl_init.c
[213/295] Compiling libntp/emalloc.c
[214/295] Compiling libntp/syssignal.c
[215/295] Compiling libntp/numtoa.c
../../libntp/clockwork.c:9:10: fatal error: sys/timex.h: No such file or directory
    9 | #include <sys/timex.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

[216/295] Compiling libntp/assert.c
[217/295] Compiling libntp/refidsmear.c
[218/295] Compiling libntp/socket.c
[219/295] Compiling ntpd/ntp_monitor.c
[220/295] Compiling ntpd/nts_server.c
[221/295] Compiling ntpd/nts_client.c
[222/295] Compiling ntpd/nts_cookie.c
[223/295] Compiling ntpd/nts_extens.c
[224/295] Compiling ntpd/ntp_control.c
[225/295] Compiling ntpd/ntp_filegen.c
[226/295] Compiling ntpd/ntp_leapsec.c
[228/295] Compiling ntpd/ntp_recvbuff.c
In file included from ../../ntpd/ntp_control.c:27:
../../include/ntp_syscall.h:13:11: fatal error: sys/timex.h: No such file or directory
   13 | # include <sys/timex.h>
      |           ^~~~~~~~~~~~~
compilation terminated.

[229/295] Compiling ntpd/ntp_restrict.c
[230/295] Compiling ntpd/ntp_util.c
[231/295] Compiling ntpd/nts.c
[232/295] Compiling libntp/assert.c
[233/295] Compiling libntp/ntp_c.c
[234/295] Compiling libntp/msyslog.c
[235/295] Compiling libntp/ntp_calendar.c
../../ntpd/nts_client.c: In function ‘nts_server_lookup’:
../../ntpd/nts_client.c:772:32: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘socklen_t’ {aka ‘int’} [-Wsign-compare]
  772 |         if (sizeof(sockaddr_u) >= answer->ai_addrlen)
      |                                ^~

[236/295] Compiling libntp/clockwork.c
[237/295] Compiling libntp/ntp_random.c
[238/295] Compiling libntp/lib_strbuf.c
[239/295] Compiling libntp/hextolfp.c
../../libntp/clockwork.c:9:10: fatal error: sys/timex.h: No such file or directory
    9 | #include <sys/timex.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

[240/295] Compiling libntp/prettydate.c
[241/295] Compiling libntp/statestr.c
[242/295] Compiling libntp/systime.c
[243/295] Compiling libntp/timespecops.c
[244/295] Compiling libntp/emalloc.c
[245/295] Compiling libntp/pymodule-mac.c
In file included from ../../libntp/statestr.c:15:
../../include/ntp_syscall.h:13:11: fatal error: sys/timex.h: No such file or directory
   13 | # include <sys/timex.h>
      |           ^~~~~~~~~~~~~
compilation terminated.

[246/295] Compiling ntpd/refclock_conf.c
[247/295] Compiling ntpd/ntp_refclock.c
[248/295] Compiling ntpd/refclock_nmea.c
[249/295] Compiling ntpd/refclock_local.c
[251/295] Compiling ntpd/refclock_generic.c
[252/295] Compiling ntpd/refclock_shm.c
[253/295] Compiling ntpd/ntp_loopfilter.c
[254/295] Compiling ntpd/ntpd.c
[255/295] Compiling ntpd/ntp_io.c
In file included from ../../ntpd/refclock_local.c:10:
../../include/ntp_syscall.h:13:11: fatal error: sys/timex.h: No such file or directory
   13 | # include <sys/timex.h>
      |           ^~~~~~~~~~~~~
compilation terminated.

[257/295] Compiling ntpd/ntp_proto.c
In file included from ../../ntpd/ntp_loopfilter.c:21:
../../include/ntp_syscall.h:13:11: fatal error: sys/timex.h: No such file or directory
   13 | # include <sys/timex.h>
      |           ^~~~~~~~~~~~~
compilation terminated.

[258/295] Compiling ntpd/ntp_config.c
[259/295] Compiling ntpd/ntp_scanner.c
[260/295] Compiling ntpd/ntp_peer.c
[261/295] Compiling ntpd/ntp_signd.c
[262/295] Compiling ntpd/ntp_sandbox.c
../../ntpd/ntpd.c: In function ‘main’:
../../ntpd/ntpd.c:765:17: warning: implicit declaration of function ‘mlockall’; did you mean ‘mlock’? [-Wimplicit-function-declaration]
  765 |             if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0)
      |                 ^~~~~~~~
      |                 mlock
../../ntpd/ntpd.c:765:26: error: ‘MCL_CURRENT’ undeclared (first use in this function)
  765 |             if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0)
      |                          ^~~~~~~~~~~
../../ntpd/ntpd.c:765:26: note: each undeclared identifier is reported only once for each function it appears in
../../ntpd/ntpd.c:765:38: error: ‘MCL_FUTURE’ undeclared (first use in this function)
  765 |             if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0)
      |                                      ^~~~~~~~~~

[263/295] Compiling ntpd/ntp_dns.c
[264/295] Compiling ntpd/ntp_packetstamp.c
../../ntpd/ntp_dns.c: In function ‘dns_check’:
../../ntpd/ntp_dns.c:125:40: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘socklen_t’ {aka ‘int’} [-Wsign-compare]
  125 |                 if (sizeof(sockaddr_u) < ai->ai_addrlen)
      |                                        ^

[265/295] Compiling build/host/ntpd/ntp_parser.tab.c
../../ntpd/ntp_packetstamp.c: In function ‘enable_packetstamps’:
../../ntpd/ntp_packetstamp.c:93:3: error: #error "Can't get packet timestamp"
   93 | # error "Can't get packet timestamp"
      |   ^~~~~
../../ntpd/ntp_packetstamp.c:44:25: warning: unused variable ‘once’ [-Wunused-variable]
   44 |         static bool     once = false;
      |                         ^~~~
../../ntpd/ntp_packetstamp.c:43:25: warning: unused variable ‘on’ [-Wunused-variable]
   43 |         const int       on = 1;
      |                         ^~
../../ntpd/ntp_packetstamp.c:39:9: warning: unused parameter ‘fd’ [-Wunused-parameter]
   39 |     int fd,
      |     ~~~~^~
../../ntpd/ntp_packetstamp.c:40:25: warning: unused parameter ‘addr’ [-Wunused-parameter]
   40 |     sockaddr_u *        addr
      |     ~~~~~~~~~~~~~~~~~~~~^~~~
../../ntpd/ntp_packetstamp.c: In function ‘fetch_packetstamp’:
../../ntpd/ntp_packetstamp.c:136:3: error: #error "Can't get packet timestamp"
  136 | # error "Can't get packet timestamp"
      |   ^~~~~
../../ntpd/ntp_packetstamp.c:117:33: warning: unused variable ‘nts’ [-Wunused-variable]
  117 |         l_fp                    nts = 0;  /* network time stamp */
      |                                 ^~~
../../ntpd/ntp_packetstamp.c:115:33: warning: unused variable ‘lfpfuzz’ [-Wunused-variable]
  115 |         l_fp                    lfpfuzz;
      |                                 ^~~~~~~
../../ntpd/ntp_packetstamp.c:114:33: warning: unused variable ‘fuzz’ [-Wunused-variable]
  114 |         double                  fuzz;
      |                                 ^~~~
../../ntpd/ntp_packetstamp.c:113:33: warning: unused variable ‘ticks’ [-Wunused-variable]
  113 |         unsigned long           ticks;
      |                                 ^~~~~
../../ntpd/ntp_packetstamp.c: At top level:
../../ntpd/ntp_packetstamp.c:174:3: error: #error "Can't get packet timestamp"
  174 | # error "Can't get packet timestamp"
      |   ^~~~~
../../ntpd/ntp_packetstamp.c:178:9: warning: data definition has no type or storage class
  178 |         fuzz = random() * 2. / FRAC * sys_fuzz;
      |         ^~~~
../../ntpd/ntp_packetstamp.c:178:9: warning: type defaults to ‘int’ in declaration of ‘fuzz’ [-Wimplicit-int]
../../ntpd/ntp_packetstamp.c:178:16: error: initializer element is not constant
  178 |         fuzz = random() * 2. / FRAC * sys_fuzz;
      |                ^~~~~~
../../ntpd/ntp_packetstamp.c:179:9: warning: data definition has no type or storage class
  179 |         lfpfuzz = dtolfp(fuzz);
      |         ^~~~~~~
../../ntpd/ntp_packetstamp.c:179:9: warning: type defaults to ‘int’ in declaration of ‘lfpfuzz’ [-Wimplicit-int]
../../ntpd/ntp_packetstamp.c:179:19: error: initializer element is not constant
  179 |         lfpfuzz = dtolfp(fuzz);
      |                   ^~~~~~
../../ntpd/ntp_packetstamp.c:180:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘+=’ token
  180 |         nts += lfpfuzz;
      |             ^~
../../ntpd/ntp_packetstamp.c:182:9: error: expected identifier or ‘(’ before ‘return’
  182 |         return nts;
      |         ^~~~~~
../../ntpd/ntp_packetstamp.c:183:1: error: expected identifier or ‘(’ before ‘}’ token
  183 | }
      | ^
../../ntpd/ntp_packetstamp.c:44:25: warning: ‘once’ defined but not used [-Wunused-variable]
   44 |         static bool     once = false;
      |                         ^~~~

[266/295] Compiling ntpd/ntp_timer.c
[267/295] Compiling ntpd/ntpd-man.adoc
[268/295] Compiling ntpd/ntp.conf-man.adoc
[269/295] Compiling ntpd/ntp.keys-man.adoc
[270/295] Compiling ntpfrob/precision.c
[271/295] Compiling build/main/ntpd/ntpd-man.adoc.man-tmp
[272/295] Compiling build/main/ntpd/ntp.conf-man.adoc.man-tmp
In file included from ../../ntpd/ntp_timer.c:16:
../../include/ntp_syscall.h:13:11: fatal error: sys/timex.h: No such file or directory
   13 | # include <sys/timex.h>
      |           ^~~~~~~~~~~~~
compilation terminated.

[273/295] Compiling build/main/ntpd/ntp.keys-man.adoc.man-tmp
[274/295] Compiling ntpfrob/jitter.c
[275/295] Compiling ntpfrob/dump.c
[276/295] Compiling ntpfrob/tickadj.c
[277/295] Compiling ntpfrob/bumpclock.c
[278/295] Compiling ntpfrob/pps-api.c
[279/295] Compiling ntpfrob/main.c
In file included from ../../ntpfrob/tickadj.c:15:
../../include/ntp_syscall.h:13:11: fatal error: sys/timex.h: No such file or directory
   13 | # include <sys/timex.h>
      |           ^~~~~~~~~~~~~
compilation terminated.

[280/295] Compiling ntpfrob/ntpfrob-man.adoc
[281/295] Compiling ntptime/ntptime-man.adoc
[282/295] Compiling pylib/agentx_packet.py
[283/295] Compiling build/main/ntpfrob/ntpfrob-man.adoc.man-tmp
In file included from ../../include/ntp_lists.h:110,
                 from ../../include/ntp.h:14,
                 from ../../ntpd/ntp_config.c:23:
../../ntpd/ntp_config.c: In function ‘config_access’:
../../ntpd/ntp_config.c:1735:53: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘socklen_t’ {aka ‘int’} [-Wsign-compare]
 1735 |                                 INSIST(sizeof(addr) >=
      |                                                     ^~
../../include/ntp_assert.h:67:19: note: in definition of macro ‘INSIST’
   67 |         ((void) ((cond) || (assertion_failed(__FILE__, __LINE__, \
      |                   ^~~~
../../ntpd/ntp_config.c:1784:53: warning: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘socklen_t’ {aka ‘int’} [-Wsign-compare]
 1784 |                                 INSIST(sizeof(addr) >=
      |                                                     ^~
../../include/ntp_assert.h:67:19: note: in definition of macro ‘INSIST’
   67 |         ((void) ((cond) || (assertion_failed(__FILE__, __LINE__, \
      |                   ^~~~

[284/295] Compiling build/main/ntptime/ntptime-man.adoc.man-tmp
[286/295] Compiling pylib/agentx.py
[287/295] Compiling pylib/util.py
[288/295] Compiling pylib/packet.py
[289/295] Compiling pylib/__init__.py
[290/295] Compiling pylib/poly.py
[291/295] Compiling pylib/ntpc.py
[292/295] Compiling pylib/statfiles.py
[293/295] Processing /mnt/share/packages/ntpsec/build/main/pylib/control.py: wafhelpers/pythonize-header include/ntp_control.h -> build/main/pylib/control.py
[294/295] Processing /mnt/share/packages/ntpsec/build/main/pylib/magic.py: wafhelpers/pythonize-header include/ntp.h -> build/main/pylib/magic.py
[296/453] Compiling tests/unity/unity_memory.c
[297/453] Compiling tests/unity/unity_fixture.c
[298/453] Compiling tests/unity/unity.c
[299/453] Compiling tests/common/sockaddrtest.c
[300/453] Compiling tests/common/caltime.c
[301/453] Compiling tests/common/tests_main.c
[302/453] Compiling tests/libntp/ymd2yd.c
[303/453] Compiling tests/libntp/vi64ops.c
[304/453] Compiling tests/libntp/timespecops.c
[305/453] Compiling tests/libntp/strtolfp.c
[306/453] Compiling tests/libntp/socktoa.c
[307/453] Compiling tests/libntp/macencrypt.c
[308/453] Compiling tests/libntp/ntp_endian.c
[309/453] Compiling tests/libntp/ntp_random.c
[310/453] Compiling tests/libntp/numtoa.c
[311/453] Compiling tests/libntp/clocktime.c
[312/453] Compiling tests/libntp/decodenetnum.c
[313/453] Compiling tests/libntp/statestr.c
[314/453] Compiling tests/libntp/prettydate.c
[315/453] Compiling tests/libntp/dolfptoa.c
[316/453] Compiling tests/libntp/hextolfp.c
[317/453] Compiling tests/libntp/refidsmear.c
../../tests/libntp/statestr.c:7:10: fatal error: sys/timex.h: No such file or directory
    7 | #include <sys/timex.h>
      |          ^~~~~~~~~~~~~
compilation terminated.

[318/453] Compiling tests/libntp/lfpfunc.c
[319/453] Compiling tests/libntp/lfptostr.c
[320/453] Compiling tests/libntp/authkeys.c
[321/453] Compiling tests/libntp/ntp_calendar.c
[322/453] Compiling tests/libparse/gpstolfp.c
[323/453] Compiling tests/libparse/ieee754io.c
[324/453] Compiling tests/common/tests_main.c
[325/453] Compiling tests/common/caltime.c
[326/453] Compiling tests/common/sockaddrtest.c
[327/453] Compiling tests/libparse/binio.c
[328/453] Compiling tests/ntpd/recvbuff.c
[329/453] Compiling tests/ntpd/leapsec.c
[330/453] Compiling tests/common/tests_main.c
[331/453] Compiling tests/common/caltime.c
[332/453] Compiling tests/ntpd/restrict.c
[333/453] Compiling tests/common/sockaddrtest.c
[334/453] Compiling tests/ntpd/nts.c
[335/453] Compiling tests/ntpd/nts_client.c
[337/453] Compiling tests/ntpd/nts_server.c
[338/453] Compiling tests/ntpd/nts_cookie.c
[339/453] Compiling tests/ntpd/nts_extens.c
[340/453] Compiling attic/sht.c
Waf: Leaving directory `/mnt/share/packages/ntpsec/build/main'
Build failed
 -> task in 'ntp' failed with exit status 1 (run with -v to display more information)
 -> task in 'ntp' failed with exit status 1 (run with -v to display more information)
 -> task in 'libntpd_obj' failed with exit status 1 (run with -v to display more information)
 -> task in '../pylib/ntpc' failed with exit status 1 (run with -v to display more information)
 -> task in '../pylib/ntpc' failed with exit status 1 (run with -v to display more information)
 -> task in 'refclock_local' failed with exit status 1 (run with -v to display more information)
 -> task in 'ntpd' failed with exit status 1 (run with -v to display more information)
 -> task in 'ntpd' failed with exit status 1 (run with -v to display more information)
 -> task in 'ntpd' failed with exit status 1 (run with -v to display more information)
 -> task in 'ntpd' failed with exit status 1 (run with -v to display more information)
 -> task in 'ntpfrob' failed with exit status 1 (run with -v to display more information)
 -> task in 'test_libntp' failed with exit status 1 (run with -v to display more information)
 --8<---------------cut here---------------end--------------->8---



Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada



More information about the devel mailing list