forked from mutability/dump1090
-
Notifications
You must be signed in to change notification settings - Fork 269
Open
Description
When issued following command on Fedora 43 amd64, got 3 errors
[abcd@localhost dump1090]$ make RTLSDR=yes DUMP1090_VERSION=$(git describe --tags | sed 's/-.*//')
Found solutions also, and could successfully built and run the dump1090 binary.
Errors and their solutions are listed below.
ERROR -1
interactive.c:143:23: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
143 | char spinner[4] = "|/-\\";
SOLUTION:
Changed
char spinner[4]
to
char spinner[]
ERROR -2
ais_charset.c:3:24: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (65 chars into 64 available) [-Werror=unterminated-string-initialization]
3 | char ais_charset[64] = "@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_ !\"#$%&'()*+,-./0123456789:;<=>?";
SOLUTION:
Changed
char ais_charset[64]
to
char ais_charset[65]
ERROR -3
In file included from ais_charset.c:1:
ais_charset.h:4:13: note: previous declaration of ‘ais_charset’ with type ‘char[64]’
4 | extern char ais_charset[64];
| ^~~~~~~~~~~
SOLUTION:
Changed
extern char ais_charset[64]
to
extern char ais_charset[65]
[abcd@localhost dump1090]$ DUMP1090_VERSION=$(git describe --tags | sed 's/-.*//')
[abcd@localhost dump1090]$ echo ${DUMP1090_VERSION}
v10.2
[abcd@localhost ~]$ rpm -q gcc
gcc-15.2.1-3.fc43.x86_64
[abcd@localhost ~]$ rpm -q make
make-4.4.1-11.fc43.x86_64
Metadata
Metadata
Assignees
Labels
No labels