Mictronics / readsb-protobuf

Readsb is a Mode-S/ADSB/TIS decoder for RTLSDR, BladeRF, Modes-Beast and GNS5894 devices. Future development version with protocol buffer storage.
Other
90 stars 25 forks source link

Replaces deprecated sys_siglist[sig] with strsignal(sig) in readsbrr… #12

Closed glillig closed 3 years ago

glillig commented 3 years ago

Running make on the latest ArchLinuxARM-rpi-4 throws the following error:

/usr/bin/ld: readsbrrd.o: in function signal_handler': /home/glillig/github/Mictronics/readsb-protobuf/readsbrrd.c:103: undefined reference tosys_siglist' collect2: error: ld returned 1 exit status make: *** [Makefile:81: readsbrrd] Error 1

This happens due to the glibc version 2.32-2 installed. Searching the net showed that since version 2.32 the deprecated arrays sys_siglist, _sys_siglist, and sys_sigabbrev are no longer available to newly linked binaries, and their declarations have been removed from .

This fix replaces sys_siglist[sig] with strsignal(sig) in readsbrrd.c.

Mictronics commented 3 years ago

Thanks for your contributing.