LINUX.ORG.RU

Ошибка сегментирования при запуске

 


0

1

Забыл свою парольную фразу, пытаюсь установить программу для подбора своей фразы, от кошелька.

Git clone https://github.com/ryancdotorg/brainflayer Потом иду cd /root/brainflayer/ Делаю chmod +x Makefile, далее запускаю ./Makefile.

Идет компиляция, но что то мне подсказывает что в ней есть какие-то ошибки, в общем после компиляции, я пробую запустить программу, и с любыми параметрами получаю ошибку «Ошибка сегментирования»

root@kali:~/brainflayer# ./brainflayer Ошибка сегментирования

Помогите пожалуйста.


root@kali:~/brainflayer# make
git submodule init
Подмодуль «scrypt-jane» (https://github.com/ryancdotorg/scrypt-jane.git) зарегистрирован по пути «scrypt-jane»
Подмодуль «secp256k1» (https://github.com/ryancdotorg/secp256k1.git) зарегистрирован по пути «secp256k1»
git submodule update
Клонирование в «/root/brainflayer/scrypt-jane»…
Клонирование в «/root/brainflayer/secp256k1»…
Подмодуль по пути «scrypt-jane»: забрано состояние «1be9d57162392f11a860bec8005cc3ce5afdd057»
Подмодуль по пути «secp256k1»: забрано состояние «cc623d50e43507f1d41490280a06065bf7fa3128»
cd secp256k1; make distclean || true
make[1]: вход в каталог «/root/brainflayer/secp256k1»
make[1]: *** Нет правила для сборки цели «distclean».  Останов.
make[1]: выход из каталога «/root/brainflayer/secp256k1»
cd secp256k1; ./autogen.sh
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
libtoolize: copying file 'build-aux/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux/m4'.
libtoolize: copying file 'build-aux/m4/libtool.m4'
libtoolize: copying file 'build-aux/m4/ltoptions.m4'
libtoolize: copying file 'build-aux/m4/ltsugar.m4'
libtoolize: copying file 'build-aux/m4/ltversion.m4'
libtoolize: copying file 'build-aux/m4/lt~obsolete.m4'
configure.ac:10: installing 'build-aux/compile'
configure.ac:5: installing 'build-aux/config.guess'
configure.ac:5: installing 'build-aux/config.sub'
configure.ac:9: installing 'build-aux/install-sh'
configure.ac:9: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
parallel-tests: installing 'build-aux/test-driver'
cd secp256k1; ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether make supports nested variables... (cached) yes
./configure: line 12100: PKG_PROG_PKG_CONFIG: command not found
checking for ar... /usr/bin/ar
checking for ranlib... /usr/bin/ranlib
checking for strip... /usr/bin/strip
checking for gcc... gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking how to run the C preprocessor... gcc -E
checking for gcc option to accept ISO C89... (cached) none needed
checking if gcc supports -std=c89 -pedantic -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wstrict-prototypes -Wno-unused-function -Wno-long-long -Wno-overlength-strings... yes
checking for __int128... yes
checking for __builtin_expect... yes
checking for x86_64 assembly availability... yes
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for __gmpz_init in -lgmp... yes
checking whether byte ordering is bigendian... no
configure: Using assembly optimizations: x86_64
configure: Using field implementation: 64bit
configure: Using bignum implementation: gmp
configure: Using scalar implementation: 64bit
configure: Using endomorphism optimizations: no
configure: Building ECDH module: no
configure: Building Schnorr signatures module: no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libsecp256k1.pc
config.status: creating src/libsecp256k1-config.h
config.status: executing depfiles commands
config.status: executing libtool commands
troy1
() автор топика
Ответ на: комментарий от Radjah

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

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

openssl и gpm у меня установлены, после запуска make вроде бы все ок, если попробую его во второй раз запустить, напишет то что все уже выполнено all.

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

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

Читать до просветления:

Should compile on Linux with make provided you have the required devel libs installed (at least openssl and gpm are required along with libsecp256k1's build dependencies). I really need to learn autotools. If you file an issue about a build failure in libsecp256k1 I will close it.

Radjah ★★★★★
()

chmod +x Makefile

Это лишнее.

./configure && make

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

Читать до просветления:

Вы бы сначала прочитали вопрос, прежде чем советовать по процедуре сборки. У автора собирается бинарник - но он падает в кору при запуске! А вы пытаетесь объяснить как собрать бинарник (и какие либы нужны)

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

Информации мало, но думаю причина падения в этом:

configure: Using assembly optimizations: x86_64

Думаю у вас и автора проги разные процессоры.

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