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

Build fails on gcc-10 as: ld: CpuAes.o:/build/truecrack/src/Crypto/CpuAes.h:1233: multiple definition of `t_rc'; CpuCore.o:/build/truecrack/src/Crypto/CpuAes.h:1237: first defined here #56

Open
trofi opened this issue Dec 20, 2022 · 1 comment

Comments

@trofi
Copy link

trofi commented Dec 20, 2022

gcc-10 changed the default from -fcommon to -fno-common: https://gcc.gnu.org/PR85678

As a result build fails as:

truecrack> gcc -o truecrack  Volumes.o Crc.o Endian.o Pkcs5.o CpuCore.o Crypto.o Core.o Charset.o Utils.o Main.o Rmd160.o CpuAes.o Sha1.o Sha2.o Whirlpool.o Serpent.o Twofish.o -g -I./Common/ -I./Crypto/ -I./Cuda/ -I./Main/ -I./ -I/usr/local/cuda/include/    -lm -O3
truecrack> /<<NIX>>/binutils-2.38/bin/ld: Core.o:/build/truecrack/src/Main/Core.h:49: multiple definition of `CORE_typeAttack'; CpuCore.o:/build/truecrack/src/Main/Core.h:49: first defined here
truecrack> /<<NIX>>/binutils-2.38/bin/ld: Core.o:/build/truecrack/src/Main/Core.h:41: multiple definition of `CORE_volumePath'; CpuCore.o:/build/truecrack/src/Main/Core.h:41: first defined here
truecrack> /<<NIX>>/binutils-2.38/bin/ld: Core.o:/build/truecrack/src/Main/Core.h:61: multiple definition of `CORE_hidden'; CpuCore.o:/build/truecrack/src/Main/Core.h:61: first defined here
...
@trofi
Copy link
Author

trofi commented Dec 20, 2022

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