dump1090 icon indicating copy to clipboard operation
dump1090 copied to clipboard

Errors on Mac OS Sonoma 14.3.1

Open tankrobbers opened this issue 1 year ago • 3 comments

I'm new to terminal and have this error when trying to compile on my Mac running Sonoma 14.3.1.

cc -I. -D_POSIX_C_SOURCE=200112L -DMODES_DUMP1090_VERSION="unknown" -DMODES_DUMP1090_VARIANT="dump1090-fa" -DMISSING_NANOSLEEP -DENABLE_CPUFEATURES -Icpu_features/include -DENABLE_RTLSDR -DENABLE_BLADERF -DENABLE_HACKRF -DENABLE_SOAPYSDR -DSTARCH_MIX_X86 -O3 -g -std=c11 -fno-common -Wall -Wmissing-declarations -Werror -Wformat-signedness -W -I/opt/local/include/ -I/opt/local/include/ -I/opt/local/include -I/opt/local/include/libhackrf -I/opt/local/include/libusb-1.0 -I/opt/local/include -c dump1090.c -o dump1090.o error: unknown warning option '-Wformat-signedness' [-Werror,-Wunknown-warning-option] make: *** [dump1090.o] Error 1

Can anybody tell me what I've done wrong and how to fix it.

Thanks Rob

tankrobbers avatar Feb 25 '24 20:02 tankrobbers

I removed the flag from the Makefile and it built

--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ PROGNAME=dump1090
 DUMP1090_VERSION ?= unknown

 CFLAGS ?= -O3 -g
-DUMP1090_CFLAGS := -std=c11 -fno-common -Wall -Wmissing-declarations -Werror -Wformat-signedness -W
+DUMP1090_CFLAGS := -std=c11 -fno-common -Wall -Wmissing-declarations -Werror -W
 DUMP1090_CPPFLAGS := -I. -D_POSIX_C_SOURCE=200112L -DMODES_DUMP1090_VERSION=\"$(DUMP1090_VERSION)\" -DMODES_DUMP1090_VARIANT=\"dump1090-fa\"

 LIBS = -lpthread -lm

kieran avatar Mar 02 '24 22:03 kieran

Thanks, will give that a go

tankrobbers avatar Mar 03 '24 09:03 tankrobbers

I was able to get it to compile and work removing that flag as well, on 14.5 Sonoma.

geerlingguy avatar Jun 27 '24 23:06 geerlingguy