Error while compiling ka9q server

43 views
Skip to first unread message

Jari Kiiski

unread,
Aug 8, 2025, 3:19:35 PMAug 8
to radiosonde_auto_rx
Hello!
Now i ran into a new problem. I try to install ka9q server with rtlsdr to a laptop running headless Ubuntu 25.04 server. Every time i try to compile ka9q server i these errors:

 make -f Makefile.linux
cc -DNDEBUG=1 -O3 -march=native -std=gnu11 -pthread -Wall -funsafe-math-optimizations -fno-math-errno -fcx-limited-range -D_GNU_SOURCE=1 -Wextra -MMD -MP    -c -o aprs.o aprs.c
In file included from aprs.c:26:
misc.h:160:21: error: static declaration of ‘sinpif’ follows non-static declaration
  160 | static inline float sinpif(float x){
      |                     ^~~~~~
In file included from aprs.c:19:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:81:1: note: previous declaration of ‘sinpif’ with type ‘float(float)’
   81 | __MATHCALL_VEC (sinpi,, (_Mdouble_ __x));
      | ^~~~~~~~~~~~~~
make: *** [<builtin>: aprs.o] Error 1


I have double checked and checked again that i do everything by instructions. Does anybody got any ideas what is wrong now?

73, de OH4NDu


Mark Jessop

unread,
Aug 8, 2025, 5:37:52 PMAug 8
to Jari Kiiski, radiosonde_auto_rx
Is this using the commits we recommend in our setup guide ( https://github.com/projecthorus/radiosonde_auto_rx/wiki/KA9Q%E2%80%90Radio-Setup-Notes ), or using the latest in the ka9q-radio repository?

If using an old commit, try the latest. If that still doesnt work, I'd suggest raising an issue on the ka9q-radio repository https://github.com/ka9q/ka9q-radio/issues

73
Mark

--
You received this message because you are subscribed to the Google Groups "radiosonde_auto_rx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to radiosonde_auto...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/radiosonde_auto_rx/6d75f331-c653-4a9a-a1f3-fd01fb84adecn%40googlegroups.com.

Mark Jessop

unread,
Aug 11, 2025, 4:43:39 AMAug 11
to Jari Kiiski, radiosonde_auto_rx
OK, this is now a known issue with KA9Q-radio, and is being worked on.

- Old commits will not build on Debian 13 based systems (e.g. Ubuntu 25) due to glibc changes.
- The latest commits of ka9q-radio do build, but there's some behavioural issues with the band-scan data at the moment, resulting in it not working correctly.

I'm in discussions with Phil about how to best deal with this.

73
Mark VK5QI

hb9tmc

unread,
Aug 17, 2025, 4:04:01 PMAug 17
to radiosonde_auto_rx
As a workaround until there is a solution you can comment out the lines 159 to 162 in misc.h like this:

// Sin(πf)
//static inline float sinpif(float x){
//  return sinf(x * M_PI);
//}

Then it should compile.

73
Stefan

Phil Karn

unread,
Aug 19, 2025, 4:18:06 AMAug 19
to hb9tmc, radiosonde_auto_rx
I fixed this in a recent patch. It happened because Debian Trixie adopted a new version of the math library that defined sinpif(), which I had defined as a macro. I don't make that much use of it, so it was easy to fix.

Phil

--
You received this message because you are subscribed to the Google Groups "radiosonde_auto_rx" group.
To unsubscribe from this group and stop receiving emails from it, send an email to radiosonde_auto...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages