Re: waf: compiler flags, uninitalized variable

2025-08-01 Thread Fred Wright via devel
On Fri, 1 Aug 2025, Hal Murray wrote: devel@ntpsec.org said: Usually, you won't get that type of warning unless you enable it. And usually, you only get that type of warning in an optimized compile, since the dataflow analysis needed to detect it is part of the optimization code. I tried

Re: waf: compiler flags, uninitalized variable

2025-07-30 Thread Fred Wright via devel
On Tue, 29 Jul 2025, Hal Murray via devel wrote: Are we missing one? I had a typo. I was using an uninitialized variable. Modern compilers didn't complain. Old ones did. (I don't set any compiler or loader flags.) What gets checked isn't a monotonic function of the compiler version. Te

Re: Strangeness in 842 Fix

2025-04-15 Thread Fred Wright via devel
On Mon, 14 Apr 2025, Hal Murray wrote: If the values are identical, then it's not functionally incorrect, but it's certainly conceptually incorrect to compare an SO_* value to a cmsg_type field. And if the values are identical, it wouldn't change the behavior to use the correct name. Sorry

Strangeness in 842 Fix

2025-04-14 Thread Fred Wright via devel
I was just looking at recent changes, and came across commit 4756b6317. I don't know anything specifically about the *_TIMESTAMPNS_OLD stuff, but I do know that the SO_* symbols are for the socket options and the SCM_* symbols are for the CMSG types, so I don't see how this could possibly be

Re: Strangeness in 842 Fix

2025-04-14 Thread Fred Wright via devel
On Mon, 14 Apr 2025, Hal Murray wrote: I do know that the SO_* symbols are for the socket options and the SCM_* symbols are for the CMSG types, so I don't see how this could possibly be correct. Note the code immediately above it. The OLD stuff is a mess. I did it the way you expect, but

Re: Anybody using the old waf?

2025-04-05 Thread Fred Wright via devel
On Sun, 30 Mar 2025, Fred Wright wrote: On Sun, 30 Mar 2025, James Browning via devel wrote: On Sunday, March 30, 2025 4:44:51 PM Pacific Daylight Time Fred Wright via devel wrote: I'm not sure what you mean by "my patches", given that I've never submitted any for th

Re: Anybody using the old waf?

2025-04-04 Thread Fred Wright via devel
On Sun, 30 Mar 2025, James Browning via devel wrote: On Sunday, March 30, 2025 4:44:51 PM Pacific Daylight Time Fred Wright via devel wrote: I'm not sure what you mean by "my patches", given that I've never submitted any for this issue, though I'd suggested what suc

Re: INSTALL.adoc

2025-04-01 Thread Fred Wright via devel
On Tue, 1 Apr 2025, Gary E. Miller via devel wrote: On Mon, 31 Mar 2025 20:52:30 -0700 Hal Murray wrote: [...] Alternatively, you can create a link to you python3, called python. Like so: ln -s /usr/bin/python3 /usr/bin/python That command line doesn't work on FreeBSD or NetBSD Yeah, *B

Re: INSTALL.adoc

2025-04-01 Thread Fred Wright via devel
On Tue, 1 Apr 2025, James Browning via devel wrote: On Monday, March 31, 2025 8:52:30 PM Pacific Daylight Time Hal Murray via devel wrote: buildprep has some python2 cruft. I ignored it. Should we announce that it no longer works for python 2 and clean it up a bit? Don't let Fred, Gary or

Re: INSTALL.adoc

2025-03-31 Thread Fred Wright via devel
On Mon, 31 Mar 2025, Hal Murray via devel wrote: +Alternatively you can link your python3 to python. +`ln -s /usr/bin/python3 /usr/bin/python` That "to" looks backwards to me. I expect: link python to your python3 Yes, but 'ln' is like 'cp', so you put the source first. Fred Wright __

Re: Anybody using the old waf?

2025-03-30 Thread Fred Wright via devel
On Sun, 30 Mar 2025, Fred Wright wrote: On Sun, 30 Mar 2025, James Browning via devel wrote: On Sunday, March 30, 2025 5:00:57 PM Pacific Daylight Time Fred Wright via devel wrote: Actually, to be fair, I didn't find a file actually called 'waf' in the upstream repo, b

Re: Anybody using the old waf?

2025-03-30 Thread Fred Wright via devel
On Sun, 30 Mar 2025, James Browning via devel wrote: On Sunday, March 30, 2025 5:00:57 PM Pacific Daylight Time Fred Wright via devel wrote: Actually, to be fair, I didn't find a file actually called 'waf' in the upstream repo, but I did find a 'wscript' shebanged

Re: Anybody using the old waf?

2025-03-30 Thread Fred Wright via devel
On Sat, 29 Mar 2025, Fred Wright via devel wrote: On Sat, 29 Mar 2025, James Browning via devel wrote: Pass; as an alternative, I would drop the exposition in a subsection in INSTALL.adoc; removing only the one byte, leaving the newly incorrect signature intact. Then commit that pottage

Re: Anybody using the old waf?

2025-03-30 Thread Fred Wright via devel
On Sun, 30 Mar 2025, James Browning via devel wrote: On Sunday, March 30, 2025 4:20:12 PM Pacific Daylight Time Fred Wright via devel wrote: I'd actually been assuming that the incorrect 'python3' shebang line was from upstream. I hadn't realized that the upstream versio

Re: Anybody using the old waf?

2025-03-29 Thread Fred Wright via devel
On Sat, 29 Mar 2025, James Browning via devel wrote: On Saturday, March 29, 2025 1:52:15 PM Pacific Daylight Time Fred Wright via devel wrote: How many people care about signatures *and* don't trust the ntpsec signature *and* worry about the waf signature? None, Probably. I'm tryi

Re: Anybody using the old waf?

2025-03-29 Thread Fred Wright via devel
On Fri, 28 Mar 2025, James Browning via devel wrote: On Thursday, March 27, 2025 9:29:33 PM Pacific Daylight Time Fred Wright via devel wrote: On Fri, 28 Mar 2025, Matt Selsky wrote: [...] What specifically is currently shebanged to python3 and maybe needs to be changed? I'm referri

Re: Anybody using the old waf?

2025-03-28 Thread Fred Wright via devel
On Thu, 27 Mar 2025, Hal Murray via devel wrote: There are definitely systems with python3 and no python. Eg, Debian 12 for example. Some (most?) distros have a tiny package that sets up python to go to python3. On Debian, it's python-is-python3, and buildprep installs it. On Fedora, it's

Re: Anybody using the old waf?

2025-03-27 Thread Fred Wright via devel
On Fri, 28 Mar 2025, Matt Selsky wrote: On Thu, Mar 27, 2025 at 02:48:54PM -0700, Fred Wright via devel wrote: I've confirmed that it works with Python 2.7, including building the extension. That means that shebanging it to 'python3' is inappropriate, unless there are

Re: Anybody using the old waf?

2025-03-27 Thread Fred Wright via devel
On Thu, 27 Mar 2025, Hal Murray via devel wrote: Please remove the older waf binary and replace the symlink with the newer waf binary itself. OK. Done. I've confirmed that it works with Python 2.7, including building the extension. That means that shebanging it to 'python3' is inapprop

Re: Is it time to --enable-warnings?

2025-02-12 Thread Fred Wright via devel
On Tue, 11 Feb 2025, Hal Murray wrote: For example, I just submitted an MR to fix a warning for something which is perfectly legal, but which broke the build here due to -Werror. Thanks. Just curious. What OS/Distro found that? It's clang 6. The OS doesn't enter into it. Turning on -W

Re: Is it time to --enable-warnings?

2025-02-11 Thread Fred Wright via devel
On Sat, 8 Feb 2025, Hal Murray via devel wrote: waf configure --help says: --enable-warnings Enable annoying CC warnings Are they really annoying? My normal build script turns it on without problems. I've certainly seen warnings without that option, so it probably just means "enabl

Re: https://ntpsec.org/downloads.html

2025-02-07 Thread Fred Wright via devel
On Fri, 7 Feb 2025, Hal Murray via devel wrote: Sigh. It needs a dose of TLC. The Downloads section has 2 URLs. The first one is https://gitlab.com/groups/NTPsec git clone on that one doesn't work. That's the URL for the group's homepage, not the project's homepage, which is:

Re: recvmsg() length report

2025-02-06 Thread Fred Wright via devel
On Tue, 4 Feb 2025, Hal Murray wrote: As Alice would say, "curiouser and curiouser". Just when I think I've figured out the reason for one bit of bizarreness, you find another. :-) I think the current code works on all my systems. What's the breakdown in the 32-bit NetBSD case? One wou

Re: Catching up

2025-02-04 Thread Fred Wright via devel
On Tue, 4 Feb 2025, Richard Laager via devel wrote: On 2025-02-03 23:31, Hal Murray via devel wrote: Did you see my comment about how dropping Python 2 before getting rid of the polyXXX wrapers is dangerous, because removing the wrappers without properly fixing the underlying code is more like

Re: recvmsg() length report

2025-02-04 Thread Fred Wright via devel
On Mon, 3 Feb 2025, Hal Murray via devel wrote: Linux: x86-64:16 I don't have any really really old systems. x86-32: 8 Debien, 6.1.0-29-686-pae i686 Arm: 8 Arm64: 16 FreeBSD: x86-64: 20 <=== x86-32: 8 Arm: 16 Arm64: 20 <=== NetBSD: x86-64: 20 <=== x86-32: 12 Arm: 20 <

Re: Catching up

2025-02-03 Thread Fred Wright via devel
On Mon, 3 Feb 2025, Hal Murray via devel wrote: Uh, yes. I'll continue to object. It buys us nothing now, and it will annoy some people. Maybe later this year. OK. I guess I missed your previous objections. Have we actually made contact with anybody using python2 (and NTPsec)? Should w

Re: Anybody still using Python2?

2025-02-01 Thread Fred Wright via devel
ather than using what already works, or newer versions from people who actually think that breaking things is a bad idea (unlike the python.org folks). On 2025-01-30 18:19, Fred Wright via devel wrote: It's not about whether Python 3 is available, but about whether it's usable for wha

Re: Anybody still using Python2?

2025-01-30 Thread Fred Wright via devel
On Wed, 29 Jan 2025, Hal Murray wrote: It's not about "with" in the sense of what's on the system; it's about what Python version *their code* works with. Due to the large incompatibilities between Python 2 and Python 3, it takes serious work to update existing Python 2 code to work with Pyth

Re: Anybody still using Python2?

2025-01-29 Thread Fred Wright via devel
On Wed, 29 Jan 2025, Gary E. Miller via devel wrote: On Tue, 28 Jan 2025 20:05:11 -0800 Hal Murray via devel wrote: Gary said: And yet, we still get complaints. There are maintained Python 2.7 forks that some distros still use and update. I've seen at least one distro that had python 3 b

Re: ntpsec | ntp_packetstamp: Fix possible time_t size mismatch. (!1414)

2024-12-24 Thread Fred Wright via devel
On Tue, 24 Dec 2024, Gary E. Miller via devel wrote: On Tue, 24 Dec 2024 15:21:14 -0800 (PST) Fred Wright via devel wrote: On Tue, 24 Dec 2024, Gary E. Miller (@garyedmundsmiller) wrote: Gary E_ Miller commented: https://gitlab.com/NTPsec/ntpsec/-/merge_requests/1414#note_2273464732 I

Re: ntpsec | ntp_packetstamp: Fix possible time_t size mismatch. (!1414)

2024-12-24 Thread Fred Wright via devel
On Tue, 24 Dec 2024, Gary E. Miller (@garyedmundsmiller) wrote: Gary E_ Miller commented: https://gitlab.com/NTPsec/ntpsec/-/merge_requests/1414#note_2273464732 I don't know about OSX, but this is not the proper GNU libc fix. With GNU libc, the size of time_t on 32-bit ABI depends on two #

Re: Old OpenSSL Compatibility (x: Old OpenSSL Cpmpaitibility)

2024-12-24 Thread Fred Wright via devel
On Wed, 18 Dec 2024, Hal Murray wrote: Fred Wright said: I'm always in favor of maximum compatibility. There is a tradeoff between broader compatibility and clutter in the code. Indeed, though a good design keeps aspects dependent on the OS or other outside packages well-segregated.

Re: Old OpenSSL Compatibility (x: Old OpenSSL Cpmpaitibility)

2024-12-23 Thread Fred Wright via devel
On Sun, 22 Dec 2024, Hal Murray wrote: The macro to map EVP_MD_CTX_reset to EVP_MD_CTX_init wouldn't have worked, but it didn't matter since that function isn't actually used. I didn't think it was a good idea to leave a time bomb for some possible future use, so I fixed it. I would just

Re: Old OpenSSL Compatibility (x: Old OpenSSL Cpmpaitibility)

2024-12-22 Thread Fred Wright via devel
On Fri, 20 Dec 2024, Hal Murray wrote: Pleae try again. Looks like I had the #define backwards. I copied that code from new defs which was trying to adapt to old code. We want old defs to reverse adapt to new code. I should have noticed that, but I was in the middle of doing three things

Re: Old OpenSSL Compatibility (x: Old OpenSSL Cpmpaitibility)

2024-12-19 Thread Fred Wright via devel
On Thu, 19 Dec 2024, Hal Murray wrote: Fix pushed. Please give it a try. Not there yet. Sample from Fedora 25: = [219/265] Compiling libntp/pymodule-mac.c In file included from ../../libntp/pymodule-mac.c:16:0: ../../i

Re: Old OpenSSL Compatibility (x: Old OpenSSL Cpmpaitibility)

2024-12-18 Thread Fred Wright via devel
On Wed, 18 Dec 2024, Hal Murray wrote: It used to be possible to build with --disable-nts when a sufficiently new OpenSSL wasn't available, but commit 7c8b5fe20 broke that. I'm not sure why cryptographic functions are needed at all with --disable-nts, but even if they are, the compatibility d

Old OpenSSL Cpmpaitibility

2024-12-17 Thread Fred Wright via devel
It used to be possible to build with --disable-nts when a sufficiently new OpenSSL wasn't available, but commit 7c8b5fe20 broke that. I'm not sure why cryptographic functions are needed at all with --disable-nts, but even if they are, the compatibility definitions could have been in a single

Re: [Git][NTPsec/ntpsec][master] ntpclients/ntpviz.py: Better comment skewness and kurtosis in code.

2024-12-17 Thread Fred Wright via devel
On Fri, 13 Dec 2024, Gary E. Miller via devel wrote: On Fri, 13 Dec 2024 05:46:32 + Matt Selsky via devel wrote: math.isfinite() was added in Python 3.2 per https://docs.python.org/3/library/math.html. Should we use math.isinf() instead in order to retain Python 2 compatibility until we

Re: sizeof a struct element

2024-09-11 Thread Fred Wright via devel
On Wed, 11 Sep 2024, Hal Murray via devel wrote: I'm trying to cleanup the tangle in ntp_control.c that generates warnings. They may be actual bugs. The problem is that the man page says long while the actual size may be 32 or 64 on 32 bit Linux systems. If I knew the size, the fix would be

re: CI: The "cross-build" job doesn't have EVP_MD_CTX_new

2024-09-08 Thread Fred Wright via devel
On Sat, 7 Sep 2024, Hal Murray via devel wrote: Does #ifdef work on functions? I thought not, but the old code looks like its doing that. It only works when the apparent functions are macros. The preprocessor knows nothing about functions. On Sat, 7 Sep 2024, Hal Murray via devel wrote:

Re: Anybody know anything about rtems_trace?

2024-06-25 Thread Fred Wright via devel
On Tue, 25 Jun 2024, Hal Murray via devel wrote: $ grep rtems wscript */wscript wafhelpers/* wscript:if ctx.options.enable_rtems_trace: wscript:ctx.find_program("rtems-tld", var="BIN_RTEMS_TLD", wscript: path_list=[ctx.options.rtems_trace_path, wscript:# Bor

Re: Strange error on NetBSD

2024-06-22 Thread Fred Wright via devel
On Fri, 21 Jun 2024, Hal Murray via devel wrote: Does anybody other than me run/test on NetBSD? Ocasionally. I have a NetBSD 6.1.5 VM. The test-all part of option-tester gets the following error. Why only in option-tester? ntp_stdlib includes signal.h Do we have to do some magic to ma

Re: Alternatives to port 123

2024-05-02 Thread Fred Wright via devel
On Thu, 2 May 2024, Hal Murray via devel wrote: Note that for AT&T, the normal case of an NTP client goes through NAT so NTP isn't using port 123 and doesn't get blocked. Many, if not most, NAT implementations avoid remapping "privileged" client ports, on the theory that specific port numbe

Re: NTPsec 1.2.3 released

2024-01-03 Thread Fred Wright via devel
On Wed, 3 Jan 2024, Matthew Selsky wrote: On Tue, Jan 02, 2024 at 08:52:53PM -0800, Fred Wright via devel wrote: It should, though if the timestamps get updated in the process it would trade bad name ordering for bad timestamp ordering. The ideal thing would be to fix the names but keep the

Re: NTPsec 1.2.3 released

2024-01-02 Thread Fred Wright via devel
On Tue, 2 Jan 2024, Hal Murray via devel wrote: Fred Wright said: [context is my reply to the released message.] For some reason the antecedent to this message wasn't sent to the list, though I'd noticed the release by checking the repo. My copy was sent to: Subject: NTPsec 1.2.3 released

Re: NTPsec 1.2.3 released

2024-01-02 Thread Fred Wright via devel
On Wed, 3 Jan 2024, Matthew Selsky wrote: On Tue, Jan 02, 2024 at 07:21:39PM -0800, Fred Wright via devel wrote: There are a couple of minor issues that I should have noticed in the RC but didn't: 1) The 1.2.2a entry is missing from NEWS. This is presumably because of the way the

Re: NTPsec 1.2.3 released

2024-01-02 Thread Fred Wright via devel
On Sat, 30 Dec 2023, Hal Murray via devel wrote: Thanks. and thanks to all who contributed and tested. For some reason the antecedent to this message wasn't sent to the list, though I'd noticed the release by checking the repo. There are a couple of minor issues that I should have notic

Re: Bug in Attic Build

2023-12-26 Thread Fred Wright via devel
On Mon, 25 Dec 2023, Fred Wright via devel wrote: Commit 07231d10e2 to add cipher-find also added exp-timing.c to the build list but didn't actually add a source for it. Thus the attic build fails. It probably makes sense to fix this before the release since it's a regressio

Bug in Attic Build

2023-12-25 Thread Fred Wright via devel
Commit 07231d10e2 to add cipher-find also added exp-timing.c to the build list but didn't actually add a source for it. Thus the attic build fails. It probably makes sense to fix this before the release since it's a regression and also doesn't affect any normally installed components, and

Re: Regression in OpenBSD

2023-12-22 Thread Fred Wright via devel
On Thu, 21 Dec 2023, Hal Murray wrote: Let's put that stuff on the back burner until the release is out. Agreed for OpenBSD per se, though it might be worth trying to determine whether the apparent fencepost error with OPENSSL_VERSION_NUMBER is really OpenBSD-specific, or a more general pr

Re: Regression in OpenBSD

2023-12-21 Thread Fred Wright via devel
On Thu, 21 Dec 2023, Fred Wright via devel wrote: I found one build error that's a regression - in OpenBSD 5.6. It's "'CMAC_CTX' undeclared" in authreadkeys.c, which is due to the new conditional around the inclusion of . Some other sources include this unc

Regression in OpenBSD

2023-12-21 Thread Fred Wright via devel
I found one build error that's a regression - in OpenBSD 5.6. It's "'CMAC_CTX' undeclared" in authreadkeys.c, which is due to the new conditional around the inclusion of . Some other sources include this unconditionally, and macencrypt.c has it in an if/else construct. The else case there

Re: Missing clockwork

2023-12-21 Thread Fred Wright via devel
On Mon, 18 Dec 2023, Hal Murray via devel wrote: James said: It sounds like a race condition in our wscript files or waf. How willing are you to sink time into this, I think it's a losing proposition. I've got a --jobs=1 in my script. That was added to make sure the printout was easy to rea

Re: Release

2023-12-21 Thread Fred Wright via devel
On Mon, 18 Dec 2023, Fred Wright wrote: On Mon, 18 Dec 2023, Matthew Selsky wrote: On Sun, Dec 17, 2023 at 08:17:23PM -0800, Fred Wright via devel wrote: There are also a bunch of warnings with some compilers, which might be worth looking at. They're often fairly easy to fix, and some

Re: Release

2023-12-18 Thread Fred Wright via devel
it would be heavy-handed for the normal build procedure. Or even having CI tests both ways might be useful, to distiguish between errors and warnings. Though if CI tests had the ability to report error versus warning results, that would be unnecessary. On Mon, 18 Dec 2023, Matthew Selsky w

Re: Release

2023-12-17 Thread Fred Wright via devel
On Wed, 6 Dec 2023, Matthew Selsky via devel wrote: Sounds good. I'll aim to release ~15-Dec-2023. Fortunately this hasn't happened yet. :-) The main issue I've found is that the "struct var" in ntp_control.c, is relying on anonymous unions, which are a relatively new language feature. Th

Re: I/we need a lesson in git and/or gitlab and/or merge requests

2023-11-19 Thread Fred Wright via devel
On Sat, 18 Nov 2023, Fred Wright via devel wrote: [...] With or without this problem, it's a bad idea to combine multiple unrelated changes into a single MR anyway. It's best to stick to one topic per branch, both locally and in any MRs derived from such branches. I neglected t

Re: I/we need a lesson in git and/or gitlab and/or merge requests

2023-11-18 Thread Fred Wright via devel
In general, it's a good idea to read an actual book on git, rather than trying to understand it purely through manpages. The one I used (almost a decade ago) is this one: https://www.amazon.com/gp/product/1449316387/ It doesn't tell you everything you might want to know, but it cov

Re: NTPsec 1.2.2a released

2023-08-07 Thread Fred Wright via devel
On Fri, 4 Aug 2023, James Browning via devel wrote: On 08/04/2023 6:35 PM PDT Fred Wright via devel wrote: :::snip::: I notice that the two commits for that don't seem to be in any branch. Having commits only "owned" by a tag and not a branch seems fragile. I do

Re: NTPsec 1.2.2a released

2023-08-04 Thread Fred Wright via devel
On Fri, 4 Aug 2023, Fred Wright via devel wrote: On Fri, 4 Aug 2023, Matthew Selsky wrote: On Fri, Aug 04, 2023 at 01:47:29PM -0700, Fred Wright via devel wrote: And for that matter, what exactly is 1.2.2a, given that there's no git tag for that version? 1.2.2a is 1.2.2 + the 2 line

Re: NTPsec 1.2.2a released

2023-08-04 Thread Fred Wright via devel
On Fri, 4 Aug 2023, Matthew Selsky wrote: On Fri, Aug 04, 2023 at 01:47:29PM -0700, Fred Wright via devel wrote: And for that matter, what exactly is 1.2.2a, given that there's no git tag for that version? 1.2.2a is 1.2.2 + the 2 line patch to avoid the crash. We'll releas

Re: NTPsec 1.2.2a released

2023-08-04 Thread Fred Wright via devel
On Thu, 3 Aug 2023, Hal Murray via devel wrote: Should that also go to users@ and devel@? What fraction of people on users or devel are also on announce? And for that matter, what exactly is 1.2.2a, given that there's no git tag for that version? Fred Wright _

Re: Old email on gitlab

2023-07-23 Thread Fred Wright via devel
On Sun, 23 Jul 2023, Hal Murray via devel wrote: git log on a fresh clone shows things like this: Author: Hal Murray Date: Tue Jul 4 15:16:47 2023 -0700 Squash warnings about not handled enumeration I haven't used that email in ages. My profile has been updated. Mail from gitlab goe

Re: proposal for sntp program: include 'delay' in json output

2023-01-04 Thread Fred Wright via devel
On Mon, 2 Jan 2023, folkert via devel wrote: [...] It makes it include the delay in the json output. Note that the delay is not the full story in the time uncertainty. A long-standing ntpdig bug is that it fails to include the dispersion. The delay gives the uncertainty in the server->cl

Re: Pushing to GitLab (x: proposal for sntp program: include 'delay' in json output)

2023-01-04 Thread Fred Wright via devel
On Tue, 3 Jan 2023, folkert wrote: Lost me. What about sntp do you want to put on gitlab? Oh, reading these in reverse order. I think you are offering to add this as a Merge Request on GitLab? Yes, that would be good. Can I please send the patch via e-mail? I've been struggeling with gi

Re: proposal for sntp program: include 'delay' in json output

2023-01-03 Thread Fred Wright via devel
On Tue, 3 Jan 2023, folkert via devel wrote: Lost me. What about sntp do you want to put on gitlab? Oh, reading these in reverse order. I think you are offering to add this as a Merge Request on GitLab? Yes, that would be good. Can I please send the patch via e-mail? I've been struggeli

Re: We need to test leap smearing :)

2022-12-22 Thread Fred Wright via devel
On Wed, 21 Dec 2022, Hal Murray via devel wrote: Google says: https://developers.google.com/time/smear We encourage anyone smearing leap seconds to use a 24-hour linear smear from noon to noon UTC. There were earlier versions which did sine rather than linear. Hmm. I don't recall any non

Re: Broken for OpenSSL 1.1

2022-12-22 Thread Fred Wright via devel
On Wed, 21 Dec 2022, Fred Wright via devel wrote: On Wed, 21 Dec 2022, Hal Murray wrote: I guess if you don't see the issue I'll have to look more closely; I thought you might "just know" the problem. Does git head work on 3.0? Yes. I think it gets confused when

Re: Broken for OpenSSL 1.1

2022-12-21 Thread Fred Wright via devel
On Wed, 21 Dec 2022, Hal Murray wrote: f...@fwright.net said: It's 1.1.1s, which is the latest 1.1. I don'think there's anything nonstandard besides using versioned install locations so that multiple versions can be installed side-by-side. I poked around some more. I have it building and r

Re: Broken for OpenSSL 1.1

2022-12-21 Thread Fred Wright via devel
On Wed, 21 Dec 2022, Hal Murray wrote: but if breaking OpenSSL 1.1 was unintentional, then it needs to be fixed I'm not aware of any intententional breakage. I'm pretty sure we would have done it at configure time. I don't think *unintentional* breakage would be done at configure time.

Re: We need to test leap smearing :)

2022-12-21 Thread Fred Wright via devel
On Wed, 21 Dec 2022, Hal Murray via devel wrote: Does anybody use it? Do any distros build with it enabled? Should we add an "#warn untested" to the code? If some systems need leap-smeared time to get around bugs in their code, they should be free to implement an *internal* leap-smeared tim

Broken for OpenSSL 1.1

2022-12-21 Thread Fred Wright via devel
The build currently fails when building againts OpenSSL 1.1. MacPorts is currently building it that way since the last release failed to build against OpenSSL 3 (due to the attic problem), though it should be able to move to OpenSSL 3 on the next release. So it's not actually an issue for

Re: Mail delays are back: 4 hours

2022-12-21 Thread Fred Wright via devel
On Wed, 21 Dec 2022, Matt Selsky via devel wrote: This is only a 2 minute delay, if I converted all timestamps to UTC correctly. My last post was delayed 11 minutes, which is longer than it should be, but not awful. I did find that a spammer was abusing our Mailman instance's web interfa

Re: More cookie keys

2022-12-20 Thread Fred Wright via devel
On Mon, 19 Dec 2022, James Browning via devel wrote: On 12/18/2022 6:02 PM PST Hal Murray via devel wrote: The commit message for that is lacking the blank line after the summary line. This means that some git tools treat the entire commit message as the summary, creating obnoxiously long li

Re: More cookie keys

2022-12-18 Thread Fred Wright via devel
On Sat, 17 Dec 2022, Hal Murray via devel wrote: I just pushed code to save 10 NTS keys used to make cookies. The commit message for that is lacking the blank line after the summary line. This means that some git tools treat the entire commit message as the summary, creating obnoxiously l

Re: devel/make-tarball broken

2022-12-18 Thread Fred Wright via devel
On Thu, 15 Dec 2022, Matthew Selsky via devel wrote: On Wed, Dec 14, 2022 at 03:39:29PM -0800, James Browning via devel wrote: 'Do not apply transform to symbolic link targets' [1] Which I got from googling 'gnu tar transform' IIRC. It is also a gnuism, but I do not see a portable transform t

Re: build on Python 2.6 broken and strongly suggested minimum version

2022-12-09 Thread Fred Wright via devel
On Thu, 8 Dec 2022, James Browning via devel wrote: Selsky broke the build[1] back in May 2020 when switching the python_scripts variable in /wscript to a set when Python 2.6 does not support sets. Given the lack of complaints, I suspect no one uses 2.6 anymore, which can be dropped. Python

Re: waf: --disable-attic

2022-02-20 Thread Fred Wright via devel
On Tue, 15 Feb 2022, Hal Murray via devel wrote: matthew.sel...@twosigma.com said: Are we worried about the speed of the build, lack of build support on particular platforms, or something else? I'm not particularly concerned about the speed of a build. As far as I know, nobody has complain

Re: RUST for linux kernel

2021-08-31 Thread Fred Wright via devel
On Fri, 27 Aug 2021, MLewis via devel wrote: " A new set of patches submitted to the Linux kernel mailing list summarises the progress of the project to enable Rust to be used alongside C for implementing the Linux kernel. [...] " There's a YouTube video of a talk on this subject. It's

Re: Lesson/Example please

2021-03-15 Thread Fred Wright via devel
On Sun, 14 Mar 2021, Hal Murray via devel wrote: [Context is cleaning up ntp_control] This will probably be simple after somebody gives me a good example and/or explains things to me. I want to put a (pointer to a) function in a field of a struct. The type of that function includes a pointer

Re: GitLab | Projects forced to "Private" (#294196)

2020-12-17 Thread Fred Wright via devel
On Thu, 17 Dec 2020, Eric S. Raymond wrote: James Browning via devel : The ntpsec forks belonging to rlaager, selsky, and ianbreune are still detached. A quick check shows that there are no forks. The page I looked at claimed that such detached repositories cannot be reattached. TLDR there is

Re: ✘Python 2.7 broken

2020-12-12 Thread Fred Wright via devel
On Sat, 12 Dec 2020, James Browning via devel wrote: On Sat, Dec 12, 2020, at 6:41 PM Gary E. Miller via devel wrote: Yo James! On Sat, 12 Dec 2020 18:35:13 -0800 James Browning via devel wrote: The following patch clears it up on the machine I bisected on. No, that uses the installed

Re: ntpq broken on new Debian box

2020-10-14 Thread Fred Wright via devel
On Wed, 14 Oct 2020, Hal Murray via devel wrote: I'm setting up a new Debian system. I'm far from a Debian wizard, but I'm not a total newbie either. I have a ntp.pth setup, so ntpq finds the python libraries. [...] File "/usr/local/lib/python3/dist-packages/ntp/ntpc.py", line 49, in _dlo

Re: ntpsec | The --disable-nts option is partially ineffective (#666)

2020-09-03 Thread Fred Wright via devel
On Wed, 2 Sep 2020, Hal Murray via devel wrote: As of 1.1.9, NTPsec doesn't build "normally" on Debian 7... Debian 7 is pretty old. Support ended May 2018 Do we want to support versions of distros that the vendor doesn't support any more? My vote would be no. There are sometimes signifi

Re: cpp hacking: bump FOO by 1

2020-09-03 Thread Fred Wright via devel
On Thu, 3 Sep 2020, Hal Murray wrote: I don't see how to use your master/entry macros to solve my problem. I didn't mean for those to be usable as is, but just as an illustration of the concept. YMMV. The current code has only one table but it needs a symbol for the offset of each slot

Re: cpp hacking: bump FOO by 1

2020-09-02 Thread Fred Wright via devel
On Sun, 30 Aug 2020, Hal Murray via devel wrote: Is there any way to do something like #define FOO $FOO+1 I want to keep track of the number of times a macro has been called. That seems like something that would happen often enough that there would be a standard recipe but I haven't seen it.

Re: OpenSSL 3.0.0

2020-06-16 Thread Fred Wright via devel
On Tue, 16 Jun 2020, Mike Simpson via devel wrote: There is libressl from the OpenBSD team https://www.libressl.org/ It was forked from openssl in 2014 The last time I tried it, libaes_siv wouldn't build with LibreSSL, so that would need to be fixed. Unless LibreSSL provides an adequate A

Re: 1.1.6 build fails on FC30

2020-04-17 Thread Fred Wright via devel
On Thu, 16 Apr 2020, Hal Murray via devel wrote: Because RS232 signaling is negative logic. That's what I used to think, but somebody corrected me many years ago. The data is upside down but the control signals are not. From https://en.wikipedia.org/wiki/RS-232 under Voltage levels For d

Re: ✘Warnings on OSX

2019-08-31 Thread Fred Wright via devel
On Sat, 31 Aug 2019, Matthew Selsky wrote: On Fri, Aug 30, 2019 at 08:01:59PM -0700, Fred Wright via devel wrote: On Thu, 29 Aug 2019, Gary E. Miller via devel wrote: Warnings on OSX: [ 73/131] Compiling libntp/ntp_calendar.c ../../ntpd/ntp_control.c:2612:27: warning: format specifies

Re: ✘Warnings on OSX

2019-08-30 Thread Fred Wright via devel
On Fri, 30 Aug 2019, Fred Wright via devel wrote: On Thu, 29 Aug 2019, Gary E. Miller via devel wrote: Warnings on OSX: [ 73/131] Compiling libntp/ntp_calendar.c ../../ntpd/ntp_control.c:2612:27: warning: format specifies type 'unsigned short' but the argument has type &#x

Re: ✘Warnings on OSX

2019-08-30 Thread Fred Wright via devel
On Thu, 29 Aug 2019, Gary E. Miller via devel wrote: Warnings on OSX: [ 73/131] Compiling libntp/ntp_calendar.c ../../ntpd/ntp_control.c:2612:27: warning: format specifies type 'unsigned short' but the argument has type 'unsigned int' [-Wformat] socktoa(rmt_addr),

Re: _XOPEN_SOURCE in ntpd/refclock_gpsd.c => warnings on BSD

2019-08-21 Thread Fred Wright via devel
On Wed, 21 Aug 2019, Hal Murray via devel wrote: ntpd/refclock_gpsd.c has: #define _XOPEN_SOURCE 600 I see the following warning: NetBSD: ../../ntpd/refclock_gpsd.c:2118:6: warning: implicit declaration of function 'strlcpy' [-Wimplicit-function-declaration] FreeBSD: ../../ntpd/refclock_gps

Re: New config feature - time1 can declare GPS wraparound compensation

2019-08-16 Thread Fred Wright via devel
On Fri, 16 Aug 2019, Eric S. Raymond via devel wrote: Sanjeev Gupta : sizeof(double) seems to be 8 bytes. The 8192 * No of Secs per week overflows this. Huh. If "long double" isn't 16 bytes, we're foing to have a problem. There's no guarantee that long double differs from double. Anythi

Re: ✘"\x07ntske/1"

2019-07-22 Thread Fred Wright via devel
On Mon, 22 Jul 2019, Gary E. Miller via devel wrote: No one has a solid answer to the NTS ALPN issue? "at some time the NTPSEC server would return "\x07ntske/1" instead of just "ntske/1"." Doesn't ring any BELs for me. :-) All kidding aside, it's probably not a coincidence that \x07 is the

Re: The NTPsec Project is pleased to announce the tagging of version 1.1.5

2019-07-02 Thread Fred Wright via devel
On Sun, 30 Jun 2019, Mark Atwood wrote: The NTPsec Project is pleased to announce the tagging of version 1.1.5 I guess "tagging" is a good description given that the tarball doesn't seem to have been published. :-) Fred Wright ___ devel mailing

Re: What's the best way to fix warnings from unused result

2019-04-07 Thread Fred Wright via devel
On Sun, 7 Apr 2019, Hal Murray wrote: Does a simple void cast work? E.g.: (void) strerror_r(...) I haven't found the magic using that approach. ../../ntpd/nts.c:214:16: warning: ignoring return value of ???strerror_r???, declared with attribute warn_unused_result [-Wunused-result]

Re: What's the best way to fix warnings from unused result

2019-04-07 Thread Fred Wright via devel
On Sun, 7 Apr 2019, Eric S. Raymond via devel wrote: Hal Murray via devel : ../../ntpd/nts.c:213:9: warning: ignoring return value of ???strerror_r???, declared with attribute warn_unused_result [-Wunused-result] I'm only getting this on Ubuntu, so a secondary question is why isn't that check

Re: ✘Python 3.6.5 breaks build

2019-03-20 Thread Fred Wright via devel
On Wed, 20 Mar 2019, James Browning via devel wrote: On Wed, Mar 20, 2019 at 6:30 PM Gary E. Miller via devel wrote: Yo All! Something recently broke in NTPsec when using Python 3.6: ? I thought I got that bug with?a4453ee5a4 "Fix polyglot library for Python3 on NetBSD". Wher

Re: Upcoming GPS rollover

2019-03-12 Thread Fred Wright via devel
On Mon, 11 Mar 2019, Eric S. Raymond via devel wrote: GPSes will roll over to their third era on April 6th. Those of us with constellations of test GPSes will need to take time to audit how much of our kit has gone toes-up. Maybe none of it immedately, as manufacturers tend to pivod on their

Re: no ssl.h on macos?

2019-02-10 Thread Fred Wright via devel
On Sun, 10 Feb 2019, Hal Murray wrote: What's involved in getting developer access to the Mac world? It depends on what you mean by that. There are both free and paid developer accounts. The free version gives you access to most of the developer downloads. That's all I've ever used. I t

  1   2   >