Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help with the compilation #3

Open
bczhc opened this issue Nov 7, 2023 · 0 comments
Open

Help with the compilation #3

bczhc opened this issue Nov 7, 2023 · 0 comments

Comments

@bczhc
Copy link

bczhc commented Nov 7, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant