Hi. I'm trying to compile this useful project, and encountered this error:
~/beastblackbox master ?1 ❯ make 22:08:05
gcc -DMODES_DUMP1090_VERSION=\"acd433f\" -O2 -g -Wall -Werror -W -D_FILE_OFFSET_BITS=64 -std=c11 -D_DEFAULT_SOURCE -s -flto -c beastblackbox.c -o beastblackbox.o
gcc -DMODES_DUMP1090_VERSION=\"acd433f\" -O2 -g -Wall -Werror -W -D_FILE_OFFSET_BITS=64 -std=c11 -D_DEFAULT_SOURCE -s -flto -c mode_ac.c -o mode_ac.o
gcc -DMODES_DUMP1090_VERSION=\"acd433f\" -O2 -g -Wall -Werror -W -D_FILE_OFFSET_BITS=64 -std=c11 -D_DEFAULT_SOURCE -s -flto -c mode_s.c -o mode_s.o
gcc -DMODES_DUMP1090_VERSION=\"acd433f\" -O2 -g -Wall -Werror -W -D_FILE_OFFSET_BITS=64 -std=c11 -D_DEFAULT_SOURCE -s -flto -c crc.c -o crc.o
gcc -DMODES_DUMP1090_VERSION=\"acd433f\" -O2 -g -Wall -Werror -W -D_FILE_OFFSET_BITS=64 -std=c11 -D_DEFAULT_SOURCE -s -flto -c cpr.c -o cpr.o
gcc -DMODES_DUMP1090_VERSION=\"acd433f\" -O2 -g -Wall -Werror -W -D_FILE_OFFSET_BITS=64 -std=c11 -D_DEFAULT_SOURCE -s -flto -c icao_filter.c -o icao_filter.o
gcc -DMODES_DUMP1090_VERSION=\"acd433f\" -O2 -g -Wall -Werror -W -D_FILE_OFFSET_BITS=64 -std=c11 -D_DEFAULT_SOURCE -s -flto -c track.c -o track.o
gcc -DMODES_DUMP1090_VERSION=\"acd433f\" -O2 -g -Wall -Werror -W -D_FILE_OFFSET_BITS=64 -std=c11 -D_DEFAULT_SOURCE -s -flto -c util.c -o util.o
gcc -DMODES_DUMP1090_VERSION=\"acd433f\" -O2 -g -Wall -Werror -W -D_FILE_OFFSET_BITS=64 -std=c11 -D_DEFAULT_SOURCE -s -flto -c kmlexport.c -o kmlexport.o
gcc -g -o beastblackbox beastblackbox.o mode_ac.o mode_s.o crc.o cpr.o icao_filter.o track.o util.o kmlexport.o -lm
/usr/bin/ld: mode_ac.o (symbol from plugin): in function `ModeAToModeC':
(.text+0x0): multiple definition of `Modes'; beastblackbox.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: mode_s.o (symbol from plugin): in function `Modes':
(.text+0x0): multiple definition of `Modes'; beastblackbox.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: crc.o (symbol from plugin): in function `modesChecksum':
(.text+0x0): multiple definition of `Modes'; beastblackbox.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: icao_filter.o (symbol from plugin): in function `icaoFilterInit':
(.text+0x0): multiple definition of `Modes'; beastblackbox.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: track.o (symbol from plugin): in function `Modes':
(.text+0x0): multiple definition of `Modes'; beastblackbox.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: util.o (symbol from plugin): in function `Modes':
(.text+0x0): multiple definition of `Modes'; beastblackbox.o (symbol from plugin):(.text+0x0): first defined here
/usr/bin/ld: kmlexport.o (symbol from plugin): in function `writeKMLpreamble':
(.text+0x0): multiple definition of `Modes'; beastblackbox.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:53: beastblackbox] Error 1
Commit: acd433f
My system: Arch Linux; kernel 6.5.7
How can I solve it? Thanks!
Hi. I'm trying to compile this useful project, and encountered this error:
Commit: acd433f
My system: Arch Linux; kernel 6.5.7
How can I solve it? Thanks!