Skip to content

Commit 229dade

Browse files
Link evalresp_log after evalresp in src/Makefile so the programs link with GNU ld.
1 parent 2e0e642 commit 229dade

2 files changed

Lines changed: 76 additions & 76 deletions

File tree

‎ChangeLog‎

Lines changed: 74 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -2,145 +2,145 @@ Unreleased
22

33
2026-11-07
44

5-
* Set the version only in REVNUM in public.h and remove set-version.
6-
7-
* FIXED: Do not follow symlinks when clearing test work directories.
5+
* IMPROVED: Blockette 55 (List) interpolation (-il, -ii) is now done
6+
against log10(frequency), with amplitude interpolated as log10(amplitude).
7+
Previously the cubic spline was applied in linear space and could
8+
overshoot or go negative on steep roll-offs, with negative values
9+
replaced by an arbitrary minimum. Falls back to linear interpolation,
10+
with a warning, if the list contains non-positive frequencies or
11+
amplitudes. NOTE: this changes numeric output for responses with a
12+
List blockette when the requested frequencies differ from those listed.
813

9-
* FIXED: Reject descending frequencies for interpolated blockette 55 responses.
14+
* CHANGED: Removed the autotools build (configure.ac, Makefile.am,
15+
MKDIST). The GNU make build (Makefile, Build.config) is now the only
16+
Unix build, alongside Makefile.nmake for Windows. Both systems wrote
17+
to the same Makefile names and produced different libraries; autotools
18+
also failed to build with current compilers (-std=gnu23, -Werror).
19+
Build and install as before with "make -f Makefile [install]".
20+
Shared libraries and "make dist" are no longer provided; use
21+
"git archive" for source tarballs.
1022

11-
* FIXED: Avoid dereferencing NULL options when reporting unrecognized units.
23+
* FIXED: Swapped sub-/super-diagonal coefficients in spline_cubic_set(),
24+
which produced a spline with discontinuous first derivatives on
25+
non-uniformly spaced knots, and the right-end not-a-knot boundary
26+
condition test, which checked ibcbeg instead of ibcend. Thanks to
27+
@sajnag-web who reported these while porting the code to Go.
1228

13-
* FIXED: Check stat() before testing whether -f names a directory.
29+
* FIXED: Evaluate responses at the caller's frequency list in evresp() and the
30+
new evalresp_channel_to_response_freqs().
1431

1532
* FIXED: Keep the sign of negative B62 polynomial derivatives.
1633

17-
* FIXED: Warn on and return HUGE_VAL for analog poles at the evaluation
18-
frequency without a matching zero.
19-
20-
* FIXED: Search one file pattern at a time so paths containing spaces match.
34+
* FIXED: Evaluate B62 polynomial responses at any -b62_x value, including the
35+
default 0.
2136

2237
* FIXED: Convert units using the first stage with defined input units,
2338
skipping gain-only stages.
2439

25-
* FIXED: Evaluate B62 polynomial responses at any -b62_x value, including the
26-
default 0.
27-
2840
* FIXED: Leave responses with non-ground-motion input units unconverted when
2941
displacement or acceleration is requested.
3042

31-
* IMPROVED: Suggest file units (-u def) in the undefined-units error.
32-
33-
* ADDED: evalresp_log_error(), evalresp_log_warn(), evalresp_log_info() and
34-
evalresp_log_debug() to log at a level with matching verbosity.
43+
* FIXED: Channels made only of gain stages evaluate to their gain instead of zero.
3544

3645
* FIXED: Cancel analog poles and zeros that coincide with the evaluation
3746
frequency instead of dividing by zero.
3847

39-
* FIXED: Evaluate responses at the caller's frequency list in evresp() and the
40-
new evalresp_channel_to_response_freqs().
48+
* FIXED: Warn on and return HUGE_VAL for analog poles at the evaluation
49+
frequency without a matching zero.
4150

42-
* FIXED: Free the unit gain substituted for a missing stage gain when it is
43-
not linked into the stage.
51+
* FIXED: Keep requested frequencies that equal the blockette 55 range limits
52+
within rounding error.
4453

45-
* IMPROVED: Warn when a digital stage is normalized above its Nyquist frequency.
54+
* FIXED: Reject descending frequencies for interpolated blockette 55 responses.
55+
56+
* FIXED: Station, network, location and channel patterns match the whole code,
57+
and a blank location matches only an empty location code.
58+
59+
* FIXED: Parse ResponseListElement entries in StationXML ResponseList stages.
60+
61+
* FIXED: Read StationXML from standard input with -stdio. Thanks to
62+
@peacocks for reporting.
4663

4764
* FIXED: Accept empty optional StationXML elements such as <Description></Description>.
4865

49-
* IMPROVED: Prefix warnings and errors with the file and channel they concern.
66+
* FIXED: Search one file pattern at a time so paths containing spaces match.
5067

51-
* IMPROVED: Describe -il and -ii in the usage text as synonyms.
68+
* FIXED: Read response files in binary mode so CRLF input is identical on
69+
every platform.
5270

53-
* FIXED: Channels made only of gain stages evaluate to their gain instead of zero.
71+
* FIXED: Avoid dereferencing NULL options when reporting unrecognized units.
5472

55-
* FIXED: Station, network, location and channel patterns match the whole code,
56-
and a blank location matches only an empty location code.
73+
* FIXED: Double-free and leak of stage unit strings when parsing RESP
74+
channels, and a stack buffer overflow in the test_file_to_char unit test.
5775

58-
* FIXED: Parse ResponseListElement entries in StationXML ResponseList stages.
76+
* FIXED: Reject RESP reference stages with no responses instead of reading an
77+
uninitialized blockette, and clear MSVC sign, uninitialized-variable and
78+
lib warnings.
79+
80+
* FIXED: Check stat() before testing whether -f names a directory.
81+
82+
* FIXED: Handle getcwd and stat failures when searching SEEDRESP and fix GCC format and const warnings.
83+
84+
* FIXED: Free the unit gain substituted for a missing stage gain when it is
85+
not linked into the stage.
5986

6087
* FIXED: Leak of the unit strings of StationXML ResponseList stages.
6188

6289
* FIXED: Leak of the pole node list when parsing StationXML PolesZeros
6390
stages.
6491

65-
* FIXED: Double-free and leak of stage unit strings when parsing RESP
66-
channels, and a stack buffer overflow in the test_file_to_char unit test.
67-
68-
* FIXED: Read response files in binary mode so CRLF input is identical on
69-
every platform.
70-
7192
* FIXED: Windows file matching: 64-bit find handle and directory-qualified results.
7293

7394
* FIXED: Search the SEEDRESP directory on Windows when no file matches in the
7495
current directory.
7596

76-
* FIXED: Keep requested frequencies that equal the blockette 55 range limits
77-
within rounding error.
78-
7997
* FIXED: libmxmlev.a no longer contains the stray main() from
8098
mxmldoc.c, and public.h is now installed with the other evalresp
8199
headers.
82100

83-
* FIXED: Swapped sub-/super-diagonal coefficients in spline_cubic_set(),
84-
which produced a spline with discontinuous first derivatives on
85-
non-uniformly spaced knots, and the right-end not-a-knot boundary
86-
condition test, which checked ibcbeg instead of ibcend. Thanks to
87-
@sajnag-web who reported these while porting the code to Go.
101+
* IMPROVED: Read StationXML directly into channels at full precision instead
102+
of through rounded RESP text.
88103

89-
* FIXED: Read StationXML from standard input with -stdio. Thanks to
90-
@peacocks for reporting.
104+
* IMPROVED: Warn when no response matches the request, explain forced-StationXML
105+
parse failures, and report stages by sequence number.
91106

92-
* FIXED: Reject RESP reference stages with no responses instead of reading an
93-
uninitialized blockette, and clear MSVC sign, uninitialized-variable and
94-
lib warnings.
107+
* IMPROVED: Prefix warnings and errors with the file and channel they concern.
95108

96-
* FIXED: Log the channel's RESP name when no input filename is set instead of a null string.
109+
* IMPROVED: Warn when a digital stage is normalized above its Nyquist frequency.
97110

98-
* FIXED: Handle getcwd and stat failures when searching SEEDRESP and fix GCC format and const warnings.
111+
* IMPROVED: Suggest file units (-u def) in the undefined-units error.
99112

100-
* FIXED: Build the test harness on Linux, where strict POSIX mode hides S_IFMT.
113+
* FIXED: Log the channel's RESP name when no input filename is set instead of a null string.
101114

102-
* IMPROVED: Blockette 55 (List) interpolation (-il, -ii) is now done
103-
against log10(frequency), with amplitude interpolated as log10(amplitude).
104-
Previously the cubic spline was applied in linear space and could
105-
overshoot or go negative on steep roll-offs, with negative values
106-
replaced by an arbitrary minimum. Falls back to linear interpolation,
107-
with a warning, if the list contains non-positive frequencies or
108-
amplitudes. NOTE: this changes numeric output for responses with a
109-
List blockette when the requested frequencies differ from those listed.
115+
* IMPROVED: Describe -il and -ii in the usage text as synonyms.
110116

111-
* IMPROVED: Read StationXML directly into channels at full precision instead
112-
of through rounded RESP text.
117+
* ADDED: evalresp_log_error(), evalresp_log_warn(), evalresp_log_info() and
118+
evalresp_log_debug() to log at a level with matching verbosity.
113119

114120
* IMPROVED: Build with -O2 by default when CFLAGS is not set, and with /O2 on Windows.
115121

116122
* IMPROVED: Rewrite the man pages and API introduction to match current behavior.
117123

118-
* IMPROVED: Warn when no response matches the request, explain forced-StationXML
119-
parse failures, and report stages by sequence number.
120-
121-
* CHANGED: Removed the autotools build (configure.ac, Makefile.am,
122-
MKDIST). The GNU make build (Makefile, Build.config) is now the only
123-
Unix build, alongside Makefile.nmake for Windows. Both systems wrote
124-
to the same Makefile names and produced different libraries; autotools
125-
also failed to build with current compilers (-std=gnu23, -Werror).
126-
Build and install as before with "make -f Makefile [install]".
127-
Shared libraries and "make dist" are no longer provided; use
128-
"git archive" for source tarballs.
124+
* CHANGED: Replace the bundled V8 regex with a reentrant glob matcher and
125+
number scanners.
129126

130127
* CHANGED: Update vendored Mini-XML library to 4.0.6.
131128

132129
* ADDED: "make -f Makefile check" builds and runs the C unit and
133130
command-line tests, which need only a C compiler, replacing "make check"
134131
from autotools. "make install" now honors DESTDIR for staged installs.
135132

133+
* Set the version only in REVNUM in public.h and remove set-version.
134+
135+
* FIXED: Do not follow symlinks when clearing test work directories.
136+
137+
* FIXED: Build the test harness on Linux, where strict POSIX mode hides S_IFMT.
138+
136139
* ADDED: Unit tests for spline_cubic_set() in tests/unit/test_spline.c.
137140

138141
* ADDED: Add GitHub Actions workflow that builds and runs the tests on Linux,
139142
macOS and Windows.
140143

141-
* CHANGED: Replace the bundled V8 regex with a reentrant glob matcher and
142-
number scanners.
143-
144144
* CHANGED: Replace the Check and Robot Framework tests with a single
145145
portable C test suite.
146146

‎src/Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
# This Makefile requires GNU make, sometimes available as gmake.
33

4-
LDFLAGS += -L ../libsrc/evalresp_log/$(BUILD_DIR)/ -levalresp_log\
5-
-L ../libsrc/evalresp/$(BUILD_DIR)/ -levalresp\
4+
LDFLAGS += -L ../libsrc/evalresp/$(BUILD_DIR)/ -levalresp\
5+
-L ../libsrc/evalresp_log/$(BUILD_DIR)/ -levalresp_log\
66
-L ../libsrc/spline/$(BUILD_DIR)/ -lspline\
77
-L ../libsrc/mxml/ -lmxmlev\
88
-lm

0 commit comments

Comments
 (0)