I was able to get it libwally compiled, but now get the following error:
-- Configuring done
-- Generating done
-- Build files have been written to: /micNfs/tools/tmp/brute_force_bip38
Consolidate compiler generated dependencies of target secp256k1
[ 5%] Building C object third_party/libwally-core/CMakeFiles/secp256k1.dir/src/secp256k1/src/secp256k1.c.o
[ 11%] Linking C static library libsecp256k1.a
[ 11%] Built target secp256k1
Consolidate compiler generated dependencies of target libwally-core
[ 16%] Building C object third_party/libwally-core/CMakeFiles/libwally-core.dir/src/aes.c.o
[ 22%] Building C object third_party/libwally-core/CMakeFiles/libwally-core.dir/src/base58.c.o
[ 27%] Building C object third_party/libwally-core/CMakeFiles/libwally-core.dir/src/bip38.c.o
[ 33%] Building C object third_party/libwally-core/CMakeFiles/libwally-core.dir/src/hex.c.o
[ 38%] Building C object third_party/libwally-core/CMakeFiles/libwally-core.dir/src/hmac.c.o
[ 44%] Building C object third_party/libwally-core/CMakeFiles/libwally-core.dir/src/internal.c.o
[ 50%] Building C object third_party/libwally-core/CMakeFiles/libwally-core.dir/src/pbkdf2.c.o
[ 55%] Building C object third_party/libwally-core/CMakeFiles/libwally-core.dir/src/scrypt.c.o
In file included from /micNfs/tools/tmp/brute_force_bip38/third_party/libwally-core/src/scrypt.c:65:0:
/micNfs/tools/tmp/brute_force_bip38/third_party/libwally-core/src/scrypt/crypto_scrypt.c: In function '_crypto_scrypt':
/micNfs/tools/tmp/brute_force_bip38/third_party/libwally-core/src/scrypt/crypto_scrypt.c:99:15: warning: implicit declaration of function 'posix_memalign' [-Wimplicit-function-declaration]
if ((errno = posix_memalign(&B0, 64, 128 * r * p)) != 0) {
^
[ 61%] Building C object third_party/libwally-core/CMakeFiles/libwally-core.dir/src/sign.c.o
[ 66%] Building C object third_party/libwally-core/CMakeFiles/libwally-core.dir/src/ccan/ccan/crypto/ripemd160/ripemd160.c.o
[ 72%] Building C object third_party/libwally-core/CMakeFiles/libwally-core.dir/src/ccan/ccan/crypto/sha256/sha256.c.o
[ 77%] Building C object third_party/libwally-core/CMakeFiles/libwally-core.dir/src/ccan/ccan/crypto/sha512/sha512.c.o
[ 83%] Building C object third_party/libwally-core/CMakeFiles/libwally-core.dir/src/ccan/ccan/str/hex/hex.c.o
[ 88%] Linking C static library liblibwally-core.a
[ 88%] Built target libwally-core
Consolidate compiler generated dependencies of target brute_force_bip38
[ 94%] Building CXX object CMakeFiles/brute_force_bip38.dir/src/main.cpp.o
[100%] Linking CXX executable brute_force_bip38
CMakeFiles/brute_force_bip38.dir/src/main.cpp.o: In function brute38::bip38_public_key_from_private_key(std::string const&, std::string const&)': main.cpp:(.text+0x19e): undefined reference to
bip38_to_private_key(char const*, unsigned char const*, unsigned long, unsigned int, unsigned char*, unsigned long)'
main.cpp:(.text+0x1bb): undefined reference to wally_ec_public_key_from_private_key(unsigned char const*, unsigned long, unsigned char*, unsigned long)' main.cpp:(.text+0x1d3): undefined reference to
wally_hex_from_bytes(unsigned char const*, unsigned long, char**)'
collect2: error: ld returned 1 exit status
make[2]: *** [brute_force_bip38] Error 1
make[1]: *** [CMakeFiles/brute_force_bip38.dir/all] Error 2
make: *** [all] Error 2
I'm using a pretty old compiler because I don't have access to the fancy Intel compiler. If you have a moment, could you tell me if there is something I am missing here? I have been able to compile your tool on four other pieces of hardware without issue, but this system is very odd and I'm kind of stumped.
Was thinking possibly ABI related, however I've not been able to figure out how to set the ABI values to try setting them the same for libwally.
In this instance - libwally is at: 0.60 on my system, but had to disable all asm options due to weird architecture.