LINUX.ORG.RU

MakeFile Ошибка Компиляции

 


0

1

Как пофиксить? При компиляции через makefile идет установка файлов, все устанавливается, и в конце такая ошибка.

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 -c algo/sha3.c -o algo/sha3.o
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 -c algo/brainv2.c -o algo/brainv2.o
cd scrypt-jane; gcc -O3 -DSCRYPT_SALSA -DSCRYPT_SHA256 -c scrypt-jane.c -o scrypt-jane.o
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: cannot find -lz
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(b_addr.o): In function `BIO_lookup':
(.text+0xdc6): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(b_sock.o): In function `BIO_gethostbyname':
(.text+0x71): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: error: ld returned 1 exit status

Буду благодарен за любую помощь.

он вам говорит, что для работы ему нехватает какойто динамической библиотеки. Скорее всего это libzip - которая отсутсвует у вас в нужном ввиде

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

поставил libzip, теперь говорить.

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/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(b_addr.o): In function `BIO_lookup':
(.text+0xdc6): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(b_sock.o): In function `BIO_gethostbyname':
(.text+0x71): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): In function `CRYPTO_THREAD_lock_new':
(.text+0x25): undefined reference to `pthread_rwlock_init'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): In function `CRYPTO_THREAD_read_lock':
(.text+0x55): undefined reference to `pthread_rwlock_rdlock'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): In function `CRYPTO_THREAD_write_lock':
(.text+0x75): undefined reference to `pthread_rwlock_wrlock'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): In function `CRYPTO_THREAD_unlock':
(.text+0x95): undefined reference to `pthread_rwlock_unlock'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): In function `CRYPTO_THREAD_lock_free':
(.text+0xba): undefined reference to `pthread_rwlock_destroy'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): In function `CRYPTO_THREAD_run_once':
(.text+0xe5): undefined reference to `pthread_once'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): In function `CRYPTO_THREAD_init_local':
(.text+0x105): undefined reference to `pthread_key_create'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): In function `CRYPTO_THREAD_set_local':
(.text+0x137): undefined reference to `pthread_setspecific'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): In function `CRYPTO_THREAD_cleanup_local':
(.text+0x157): undefined reference to `pthread_key_delete'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): In function `CRYPTO_THREAD_get_local':
(.text+0x123): undefined reference to `pthread_getspecific'
/usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcrypto.a(threads_pthread.o): In function `CRYPTO_THREAD_get_current_id':
(.text+0x171): undefined reference to `pthread_self'
/usr/lib/gcc/x86_64-linux-gnu/6/libgcc_eh.a(unwind-dw2.o): In function `uw_init_context_1':
(.text+0x1dd5): undefined reference to `pthread_once'
collect2: error: ld returned 1 exit status
Makefile:68: ошибка выполнения рецепта для цели «brainflayer»
make: *** [brainflayer] Ошибка 1
Proxerboss
() автор топика
Ответ на: комментарий от Proxerboss

попробуйте в makefile добавить там где -lrt -pthread, но я сомневаюсь что поможет, потому как -lrt - это ключ добавления библиотеки, попробйте найти librt

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

поверить не могу) а я поиск юзал прежде чем тему создать, ничего такого не нашел. точнее совсем ничего

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

libc-dev и libpthread-stubs0-dev попробуй установить.

cetjs2 ★★★★★
()
Ответ на: комментарий от Silerus

мы отошли от темы, что мне нужно сделать чтобы все заработало? прошу прощение за возможно глупые вопросы, линукс юзаю недавно

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

по ваше теме может и нет, но kali linux -тут мелькает переодически

Silerus ★★★★
()
Ответ на: комментарий от Proxerboss

найдите, все затребуемые в makefile библиотеки, они должны быть у вас собраны статикой тоесть иметь оканчание .a

Silerus ★★★★
()
Ответ на: комментарий от Proxerboss

и так после пересборке в статике gmp openssl zlib в static - у меня все собралось. Но у меня не кали. Следовательно в идеале у вас должны быть установлены dev версии этих программ/библиотек

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