<div dir='auto'><div><div><div class="elided-text">On Feb 14, 2022 1:08 AM, Hal Murray via devel <devel@ntpsec.org> wrote:<br type="attribution"><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Does anybody have a POSIX c environment on Windows and/or have a friend who
<br>
does?<br></p></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">I'd have to blow off the dust, also not strictly Posix even if using WSL2..</div><div dir="auto"><br></div><div dir="auto"><div><div class="elided-text"><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">
I'd like to know how close we are to being able to run on Windows.
<br>
<br>
I expect several low level routines may be missing. ntp_adjtime is a good example. I'd like too get a list.<br></p></blockquote></div></div></div><div dir="auto">Not close. There should still be adapters in the history. It's not that simple due to wrong flags.</div><div dir="auto"><div><div class="elided-text"><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">
It should be a simple as
<br>
mkdir xxx
<br>
cd xxx
<br>
download using tar
<br>
wget https://ftp.ntpsec.org/pub/releases/ntpsec-1.2.1.tar.gz
<br>
tar -xzf ntpsec-1.2.1.tar.gz
<br>
cd ntpsec-1.2.1
<br>
or using git
<br>
git clone git@gitlab.com:NTPsec/ntpsec.git
<br>
cd ntpsec
<br>
<br>
Then:
<br>
./waf configure -k
<br>
./waf build -k
<br>
<br>
-k tells waf to keep going rather than bail on the first fatal error.
<br>
<br>
<br>
waf needs Python (2 or 3)
<br>
We need bison
<br>
We expect OpenSSL libraries (but see below)
<br>
<br>
We need what Linux/BSD calls a python development environment.
<br>
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.<br></p></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Which built python on windows? The one from cl, mingw/cygwin, or wsl(2?) (Rhetorical)</div><div dir="auto"><div><div class="elided-text"><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">
This will drop the need for libssl
<br>
./waf configure --disable-nts
<br>
but we still need libcrypto<br></p></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Tls stuff look like it's listed in the "Security and Identity" section.</div><div dir="auto"><div><div class="elided-text"><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">
There may be other optional requirements that I can't think of right now.
<br>
This may provide info:
<br>
./waf configure --help
<br>
<br>
The source of buildprep may be helpful
<br>
<br>
-------
<br>
<br>
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.<br></p></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">Iirc our wscript files force the wrong kind of command line arguments for cl and possibly also clang on windows.</div><div dir="auto"><div><div class="elided-text"><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">I'd happily donate a pitcher of beer (or the local equivalent) to the project if we can arrange the logistics.</p></blockquote></div></div></div><div dir="auto"><div><div class="elided-text"><blockquote style="margin:0 0 0 0.8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">
</p>
</blockquote></div><br></div></div></div>