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

Compilation on Arch Linux fails #106

Open
oniony opened this issue Nov 7, 2017 · 2 comments
Open

Compilation on Arch Linux fails #106

oniony opened this issue Nov 7, 2017 · 2 comments

Comments

@oniony
Copy link

oniony commented Nov 7, 2017

Compilation is failing. It seems from the error message that the type BIGNUM doesn't exist:

cc -ggdb -O3 -Wall   -c -o vanitygen.o vanitygen.c
In file included from vanitygen.c:32:0:
pattern.h:54:12: error: field ‘vxc_bntarg’ has incomplete type
BIGNUM    vxc_bntarg;
          ^~~~~~~~~~
@oniony
Copy link
Author

oniony commented Nov 7, 2017

After some investigation it turns out that it's trying to compile against the wrong version of OpenSSL. I fixed the problem by modifying the CFLAGS and LIBS variables to include the OpenSSL 1.0 headers and library:

LIBS=-L/usr/lib/openssl-1.0 -lpcre -lcrypto -lm -lpthread
CFLAGS=-ggdb -O3 -Wall -I/usr/include/openssl-1.0

I've taken the liberty to update the wiki installation page too.

This was referenced May 12, 2018
@Wikinaut
Copy link

Wikinaut commented May 12, 2018

debian 10:

Temporarily install OpenSSL 1.0 headers:

sudo apt-get install libssl1.0-dev -y

and change in Makefile the first two lines to

LIBS=-L/usr/lib/openssl-1.0 -lpcre -lcrypto -lm -lpthread
CFLAGS=-ggdb -O3 -Wall -I/usr/include/openssl-1.0

Run make. After compilation, it may be a good practice to re-install the correct openssl:

sudo apt-get install libssl-dev -y

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