LINUX.ORG.RU

Помогите в сборке программы

 


0

1

Всем привет! Помогите пожалуйста, весь мозг сломал уже. При попытке сбора программы командой make (все библиотеки устанавливал) пишет следующее (заранее извиняюсь за слитный текст, моя первая тема, попробовал редактировать - не очень вышло):

gcc -O3 -flto -funsigned-char -falign-functions=16 -falign-loops=16 -falign-jumps=16 -Wall -Wextra -Wno-pointer-sign -Wno-sign-compare -pedantic -std=gnu99 -static brainflayer.o hex.o bloom.o mmapf.o hsearchf.o ec_pubkey_fast.o ripemd160_256.o dldummy.o algo/brainwalletio.o algo/warpwallet.o algo/keccak.o algo/sha3.o algo/brainv2.o secp256k1/.libs/libsecp256k1.a scrypt-jane/scrypt-jane.o -lssl -lrt -lcrypto -lz -lgmp -o brainflayer
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libcrypto.a(b_addr.o): в функции «BIO_lookup_ex»:
(.text+0xbea): предупреждение: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libcrypto.a(b_sock.o): в функции «BIO_gethostbyname»:
(.text+0x71): предупреждение: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/libgcc_eh.a(unwind-dw2.o): в функции «uw_init_context_1»:
(.text+0x1de5): неопределённая ссылка на «pthread_once»
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): в функции «CRYPTO_THREAD_lock_new»:
(.text+0x45): неопределённая ссылка на «pthread_rwlock_init»
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): в функции «CRYPTO_THREAD_read_lock»:
(.text+0x75): неопределённая ссылка на «pthread_rwlock_rdlock»
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): в функции «CRYPTO_THREAD_write_lock»:
(.text+0x95): неопределённая ссылка на «pthread_rwlock_wrlock»
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): в функции «CRYPTO_THREAD_unlock»:
(.text+0xb5): неопределённая ссылка на «pthread_rwlock_unlock»
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): в функции «CRYPTO_THREAD_lock_free»:
(.text+0xda): неопределённая ссылка на «pthread_rwlock_destroy»
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): в функции «CRYPTO_THREAD_run_once»:
(.text+0x105): неопределённая ссылка на «pthread_once»
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): в функции «CRYPTO_THREAD_init_local»:
(.text+0x125): неопределённая ссылка на «pthread_key_create»
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): в функции «CRYPTO_THREAD_set_local»:
(.text+0x157): неопределённая ссылка на «pthread_setspecific»
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): в функции «CRYPTO_THREAD_cleanup_local»:
(.text+0x177): неопределённая ссылка на «pthread_key_delete»
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): в функции «openssl_init_fork_handlers»:
(.text+0x1d3): неопределённая ссылка на «pthread_once»
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/8/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): в функции «CRYPTO_THREAD_get_local»:
(.text+0x143): неопределённая ссылка на «pthread_getspecific»
collect2: error: ld returned 1 exit status
make: *** [Makefile:68: brainflayer] Ошибка 1



Последнее исправление: Deleted (всего исправлений: 4)
Ответ на: комментарий от voldemar1010

make clean делал?

у меня это говно выдает

/usr/lib/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: brainflayer.o: in function `main':
brainflayer.c:(.text.startup+0xc23): undefined reference to `bloom_chk_hash160'
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
make: *** [Makefile:67: brainflayer] Ошибка 1

kickass
()
Ответ на: комментарий от voldemar1010
 ./brainflayer -h
Usage: ./brainflayer [OPTION]...

 -a                          open output file in append mode
 -b FILE                     check for matches against bloom filter FILE
 -f FILE                     verify matches against sorted hash160s in FILE
 -i FILE                     read from FILE instead of stdin
 -o FILE                     write to FILE instead of stdout
 -c TYPES                    use TYPES for public key to hash160 computation
                             multiple can be specified, for example the default
                             is 'uc', which will check for both uncompressed
                             and compressed addresses using Bitcoin's algorithm
                             u - uncompressed address
                             c - compressed address
                             e - ethereum address
                             x - most signifigant bits of x coordinate
 -t TYPE                     inputs are TYPE - supported types:
                             sha256 (default) - classic brainwallet
                             sha3   - sha3-256
                             priv   - raw private keys (requires -x)
                             warp   - WarpWallet (supports -s or -p)
                             bwio   - brainwallet.io (supports -s or -p)
                             bv2    - brainv2 (supports -s or -p) VERY SLOW
                             rush   - rushwallet (requires -r) FAST
                             keccak - keccak256 (ethercamp/old ethaddress)
                             camp2  - keccak256 * 2031 (new ethercamp)
 -x                          treat input as hex encoded
 -s SALT                     use SALT for salted input types (default: none)
 -p PASSPHRASE               use PASSPHRASE for salted input types, inputs
                             will be treated as salts
 -r FRAGMENT                 use FRAGMENT for cracking rushwallet passphrase
 -I HEXPRIVKEY               incremental private key cracking mode, starting
                             at HEXPRIVKEY (supports -n) FAST
 -k K                        skip the first K lines of input
 -n K/N                      use only the Kth of every N input lines
 -B                          batch size for affine transformations
                             must be a power of 2 (default/max: 4096)
 -w WINDOW_SIZE              window size for ecmult table (default: 16)
                             uses about 3 * 2^w KiB memory on startup, but
                             only about 2^w KiB once the table is built
 -m FILE                     load ecmult table from FILE
                             the ecmtabgen tool can build such a table
 -v                          verbose - display cracking progress
 -h                          show this help

gcc-4.9.4

kickass
()
Ответ на: комментарий от kickass

убрал в файле make -static Вроде пошло строка помощь тоже заработало Интересно а весь остальной функционал работает? будем пробовать. Спасибо что все помогали )))

voldemar1010
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.