Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues Compiling #73

Closed
ceemoneyx opened this issue Feb 22, 2023 · 6 comments
Closed

Issues Compiling #73

ceemoneyx opened this issue Feb 22, 2023 · 6 comments

Comments

@ceemoneyx
Copy link

I'm having issues compiling on Raspbian OS, when running 'make' I get the following output:
I've run both 'make' and 'sudo make' and installed all the dependencies

Thanks in advance for the help!

cc vanitygen.o pattern.o util.o groestl.o sha3.o ed25519.o stellar.o base32.o crc16.o simplevanitygen.o bech32.o segwit_addr.o -o vanitygen++ -ggdb -O3 -Wall -Wno-deprecated -lpcre -lcrypto -lm -lpthread /usr/bin/ld: util.o: in function vg_protect_crypt':
/home/cee/Desktop/vanitygen-plusplus/util.c:681: undefined reference to EVP_CIPHER_get_block_size' /usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/util.c:682: undefined reference to EVP_CIPHER_get_block_size'
/usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/util.c:682: undefined reference to EVP_CIPHER_get_block_size' /usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/util.c:708: undefined reference to EVP_CIPHER_get_key_length'
/usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/util.c:708: undefined reference to EVP_CIPHER_get_iv_length' /usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/util.c:713: undefined reference to EVP_CIPHER_get_key_length'
/usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/util.c:674: undefined reference to EVP_CIPHER_get_block_size' /usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/util.c:675: undefined reference to EVP_CIPHER_get_block_size'
/usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/util.c:675: undefined reference to EVP_CIPHER_get_block_size' /usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/util.c:749: undefined reference to EVP_CIPHER_get_key_length'
/usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/util.c:749: undefined reference to EVP_CIPHER_get_iv_length' /usr/bin/ld: simplevanitygen.o: in function thread_loop_simplevanitygen':
/home/cee/Desktop/vanitygen-plusplus/simplevanitygen.c:130: undefined reference to OSSL_PARAM_construct_utf8_string' /usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/simplevanitygen.c:131: undefined reference to OSSL_PARAM_construct_end'
/usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/simplevanitygen.c:132: undefined reference to EVP_PKEY_CTX_set_params' /usr/bin/ld: simplevanitygen.o: in function get_public_key':
/home/cee/Desktop/vanitygen-plusplus/simplevanitygen.c:82: undefined reference to EVP_PKEY_get_octet_string_param' /usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/simplevanitygen.c:84: undefined reference to EVP_PKEY_get_octet_string_param'
/usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/simplevanitygen.c:82: undefined reference to EVP_PKEY_get_octet_string_param' /usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/simplevanitygen.c:84: undefined reference to EVP_PKEY_get_octet_string_param'
/usr/bin/ld: /home/cee/Desktop/vanitygen-plusplus/simplevanitygen.c:82: undefined reference to EVP_PKEY_get_octet_string_param' /usr/bin/ld: simplevanitygen.o:/home/cee/Desktop/vanitygen-plusplus/simplevanitygen.c:84: more undefined references to EVP_PKEY_get_octet_string_param' follow
collect2: error: ld returned 1 exit status
make: *** [Makefile:40: vanitygen++] Error 1
`

@10gic
Copy link
Owner

10gic commented Feb 23, 2023

What is the OpenSSL version in your system? 3.0.0 is the minimum supported version.

You can use openssl version to check the version, for example:

$ openssl version
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

@ceemoneyx
Copy link
Author

ceemoneyx commented Feb 23, 2023 via email

@ceemoneyx
Copy link
Author

So all that to say, yes I do indeed have OpenSSL 3.0 installed and am still getting that error

@10gic
Copy link
Owner

10gic commented Feb 25, 2023

I suspect that you have both an old version of openssl and a newer version of openssl in your system, and it is looking for the old version of openssl when compiling. You can specify to use the new openssl by modifying the Makefile.

@ceemoneyx
Copy link
Author

ceemoneyx commented Feb 25, 2023 via email

@10gic
Copy link
Owner

10gic commented Feb 25, 2023

Modify LIBS and CFLAGS to the new OpenSSL related directory, for example:

LIBS+=-L/usr/local/opt/openssl/lib
CFLAGS+=-I/usr/local/opt/openssl/include

@10gic 10gic closed this as not planned Won't fix, can't repro, duplicate, stale May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants