This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
3
Stratux Failing Build
Post Body
Hi.
I'm using the stratux-setup script to install Stratux to a running Raspberry Pi (yes I know I can make a card...I'm doing it this way for a learning exercise) and it keeps failing the build of dump1090.
HEAD is now at eec0b15 Update README.md
make xdump978 xdump1090 xgen_gdl90 fancontrol
make[1]: Entering directory '/root/stratux'
cd dump978 && make lib
make[2]: Entering directory '/root/stratux/dump978'
gcc -c -O2 -g -Wall -Werror -Ifec -fpic -DBUILD_LIB=1 dump978.c fec.c fec/decode_rs_char.c fec/init_rs_char.c
gcc -shared -lm -o ../libdump978.so dump978.o fec.o decode_rs_char.o init_rs_char.o
make[2]: Leaving directory '/root/stratux/dump978'
sudo cp -f ./libdump978.so /usr/lib/libdump978.so
git submodule update --init
cd dump1090 && make
make[2]: Entering directory '/root/stratux/dump1090'
fatal: No names found, cannot describe anything.
gcc -DMODES_DUMP1090_VERSION=\"\" -O2 -g -Wall -Werror -W `pkg-config --cflags librtlsdr` -c dump1090.c -o dump1090.o
fatal: No names found, cannot describe anything.
gcc -DMODES_DUMP1090_VERSION=\"\" -O2 -g -Wall -Werror -W -c anet.c -o anet.o
fatal: No names found, cannot describe anything.
gcc -DMODES_DUMP1090_VERSION=\"\" -O2 -g -Wall -Werror -W -c interactive.c -o interactive.o
interactive.c: In function ‘interactiveShowData’:
interactive.c:140:44: error: ‘d’ directive output may be truncated writing between 3 and 9 bytes into a region of size 5 [-Werror=format-truncation=]
140 | snprintf(strFl,6,"Fd",(a->altitude/100));
| ^~~~
interactive.c:140:42: note: directive argument in the range [-21474836, 21474836]
140 | snprintf(strFl,6,"Fd",(a->altitude/100));
| ^~~~~~~
interactive.c:140:25: note: ‘snprintf’ output between 5 and 11 bytes into a destination of size 6
140 | snprintf(strFl,6,"Fd",(a->altitude/100));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:37: interactive.o] Error 1
make[2]: Leaving directory '/root/stratux/dump1090'
make[1]: *** [Makefile:26: xdump1090] Error 2
make[1]: Leaving directory '/root/stratux'
make: *** [Makefile:14: all] Error 2
cp -f gen_gdl90 /usr/bin/gen_gdl90
cp: cannot stat 'gen_gdl90': No such file or directory
make: *** [Makefile:40: install] Error 1
Raspberry Pi OS Bookworm (32-bit version...tried it on 64-bit with same result).
Any ideas?
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 3 months ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/stratux/com...