Source: satdump Version: 1.2.2+gb79af48-1 Severity: serious Tags: ftbfs patch Forwarded: https://github.com/SatDump/SatDump/pull/1103
https://buildd.debian.org/status/logs.php?pkg=satdump&ver=1.2.2%2Bgb79af48-1%2Bb2 ... In file included from /build/reproducible-path/satdump-1.2.2+gb79af48/src-interface/viewer/image_handler.cpp:2: /usr/include/volk/volk_common.h: In function ‘float volk_cos_poly(float)’: /build/reproducible-path/satdump-1.2.2+gb79af48/src-interface/../src-core/common/calibration.h:7:12: error: expected unqualified-id before numeric constant 7 | #define c1 1.1910427e-05 | ^~~~~~~~~~~~~ /build/reproducible-path/satdump-1.2.2+gb79af48/src-interface/../src-core/common/calibration.h:8:12: error: expected unqualified-id before numeric constant 8 | #define c2 1.4387752 | ^~~~~~~~~ /usr/include/volk/volk_common.h: In function ‘float volk_arcsin_poly(float)’: /build/reproducible-path/satdump-1.2.2+gb79af48/src-interface/../src-core/common/calibration.h:7:12: error: expected unqualified-id before numeric constant 7 | #define c1 1.1910427e-05 | ^~~~~~~~~~~~~ /build/reproducible-path/satdump-1.2.2+gb79af48/src-interface/../src-core/common/calibration.h:8:12: error: expected unqualified-id before numeric constant 8 | #define c2 1.4387752 | ^~~~~~~~~ ... A fix is attached.
>From ab0ddc27c2065a54e7039ae6d5fc3582bf76a309 Mon Sep 17 00:00:00 2001 From: Adrian Bunk <[email protected]> Date: Sat, 14 Feb 2026 12:39:12 +0200 Subject: Fix the build with volk 3.3 --- src-core/common/calibration.cpp | 4 ++-- src-core/common/calibration.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src-core/common/calibration.cpp b/src-core/common/calibration.cpp index 1437304dd..90bc4c016 100644 --- a/src-core/common/calibration.cpp +++ b/src-core/common/calibration.cpp @@ -3,9 +3,9 @@ #include <vector> #include <ctime> -double temperature_to_radiance(double t, double v) { return (c1 * v * v * v) / (pow(e_num, c2 * v / t) - 1); } +double temperature_to_radiance(double t, double v) { return (1.1910427e-05 * v * v * v) / (pow(e_num, 1.4387752 * v / t) - 1); } -double radiance_to_temperature(double L, double v) { return (c2 * v) / (log(c1 * v * v * v / L + 1)); } +double radiance_to_temperature(double L, double v) { return (1.4387752 * v) / (log(1.1910427e-05 * v * v * v / L + 1)); } double freq_to_wavenumber(double freq) { return 1e7 / ((299792458.0 / freq) / 10e-10); } diff --git a/src-core/common/calibration.h b/src-core/common/calibration.h index c58eeeb46..ba0ca7583 100644 --- a/src-core/common/calibration.h +++ b/src-core/common/calibration.h @@ -4,8 +4,6 @@ #include <map> #include <ctime> -#define c1 1.1910427e-05 -#define c2 1.4387752 #define e_num 2.7182818 double temperature_to_radiance(double t, double v); -- 2.47.3

