aczid / crypto1_bs

Bitsliced Crypto-1 brute-forcer
200 stars 78 forks source link

Compiling on GCC10 #44

Closed vd-rd closed 3 years ago

vd-rd commented 4 years ago

Hello, The compilation fails on a GCC10 system.

/usr/bin/ld: /tmp/ccqmPvUe.o:(.bss+0x20): multiple definition of `bs_ones'; /tmp/ccK3OYTd.o:(.bss+0x4b160): first defined here
/usr/bin/ld: /tmp/ccqmPvUe.o:(.bss+0x0): multiple definition of `bs_zeroes'; /tmp/ccK3OYTd.o:(.bss+0x4b140): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x0): multiple definition of `bitsliced_rollback_byte'; /tmp/ccK3OYTd.o:(.bss+0x20): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x4b110): multiple definition of `keys_found'; /tmp/ccK3OYTd.o:(.bss+0x4b130): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x4b140): multiple definition of `bs_ones'; /tmp/ccK3OYTd.o:(.bss+0x4b160): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x4b108): multiple definition of `total_states_tested'; /tmp/ccK3OYTd.o:(.bss+0x4b128): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x25900): multiple definition of `bitsliced_encrypted_nonces'; /tmp/ccK3OYTd.o:(.bss+0x25920): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x4b120): multiple definition of `bs_zeroes'; /tmp/ccK3OYTd.o:(.bss+0x4b140): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x100): multiple definition of `bitsliced_encrypted_parity_bits'; /tmp/ccK3OYTd.o:(.bss+0x120): first defined here
/usr/bin/ld: /tmp/ccSgNOxe.o:(.bss+0x4b100): multiple definition of `total_states'; /tmp/ccK3OYTd.o:(.bss+0x4b120): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:20: solve_bs] Error 1

The fix (not sure if it's correct) is to add a -Wl,--allow-multiple-definition linker option

javix64 commented 4 years ago

yep it's working right. i was stuck in this step like 1hour. thanks so much! <3

aczid commented 3 years ago

Thank you for the fix, sorry it took me so long to merge it.

vd-rd commented 3 years ago

No worries, thank you for your amazing work 👍🏻