On Feb 14, 2022 1:08 AM, Hal Murray via devel <devel@ntpsec.org> wrote:

Does anybody have a POSIX c environment on Windows and/or have a friend who
does?


I'd have to blow off the dust, also not strictly Posix even if using WSL2..

I'd like to know how close we are to being able to run on Windows.

I expect several low level routines may be missing.  ntp_adjtime is a good example.  I'd like too get a list.

Not close. There should still be adapters in the history. It's not that simple due to wrong flags.

It should be a simple as
  mkdir xxx
  cd xxx
  download using tar
    wget https://ftp.ntpsec.org/pub/releases/ntpsec-1.2.1.tar.gz
    tar -xzf ntpsec-1.2.1.tar.gz
    cd ntpsec-1.2.1
  or using git
    git clone g...@gitlab.com:NTPsec/ntpsec.git
    cd ntpsec

Then:
  ./waf configure -k
  ./waf build -k

-k  tells waf to keep going rather than bail on the first fatal error.


waf needs Python (2 or 3)
We need bison
We expect OpenSSL libraries (but see below)

We need what Linux/BSD calls a python development environment.
If Windows doesn't have the equivalent, we should be able to build ntpd without it.  It's only needed by utilities like ntpq and friends.  But that will take a small amount of work to add an option to configure.


Which built python on windows? The one from cl, mingw/cygwin, or wsl(2?) (Rhetorical)

This will drop the need for libssl
  ./waf configure --disable-nts
but we still need libcrypto


Tls stuff look like it's listed in the "Security and Identity" section.

There may be other optional requirements that I can't think of right now.
This may provide info:
  ./waf configure --help

The source of buildprep may be helpful

-------

Of course, I don't know anything about Windows.  So, it may be much more complicated than that.  If so, I'd like to get a high level view of what it would take to get far enough to learn what low level APIs are missing.


Iirc our wscript files force the wrong kind of command line arguments for cl and possibly also clang on windows.

I'd happily donate a pitcher of beer (or the local equivalent) to the project if we can arrange the logistics.


_______________________________________________
devel mailing list
devel@ntpsec.org
https://lists.ntpsec.org/mailman/listinfo/devel

Reply via email to