Closed K0-RR closed 1 year ago
Same issue on Fedora 36
It looks like you don't have the OpenCL library installed. Please install it firstly, before building oclvanitygen++.
If you just need vanitygen++ (It does not depend on the OpenCL library), you can just run make
instead of make all
.
I tried only make
and now I'm getting this error:
~/vanitygen-plusplus$ make
cc -ggdb -O3 -Wall -c -o vanitygen.o vanitygen.c
vanitygen.c: In function ‘vg_thread_loop’:
vanitygen.c:83:9: warning: ‘EC_KEY_get0_group’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
83 | pgroup = EC_KEY_get0_group(pkey);
| ^~~~~~
In file included from vanitygen.c:28:
/usr/include/openssl/ec.h:1034:39: note: declared here
1034 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
| ^~~~~~~~~~~~~~~~~
vanitygen.c:102:9: warning: ‘EC_POINT_make_affine’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
102 | EC_POINT_make_affine(pgroup, pbatchinc, vxcp->vxc_bnctx);
| ^~~~~~~~~~~~~~~~~~~~
In file included from vanitygen.c:28:
/usr/include/openssl/ec.h:844:27: note: declared here
844 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_make_affine(const EC_GROUP *group,
| ^~~~~~~~~~~~~~~~~~~~
vanitygen.c:132:25: warning: ‘EC_KEY_generate_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
132 | EC_KEY_generate_key(pkey);
| ^~~~~~~~~~~~~~~~~~~
In file included from vanitygen.c:28:
/usr/include/openssl/ec.h:1101:27: note: declared here
1101 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_generate_key(EC_KEY *key);
| ^~~~~~~~~~~~~~~~~~~
vanitygen.c:135:33: warning: ‘EC_KEY_get0_private_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
135 | BIGNUM *pkbn = BN_dup(EC_KEY_get0_private_key(pkey));
| ^~~~~~
In file included from vanitygen.c:28:
/usr/include/openssl/ec.h:1048:37: note: declared here
1048 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key);
| ^~~~~~~~~~~~~~~~~~~~~~~
vanitygen.c:145:33: warning: ‘EC_KEY_set_private_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
145 | EC_KEY_set_private_key(pkey, pkbn); /* set private key in pkey */
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from vanitygen.c:28:
/usr/include/openssl/ec.h:1056:27: note: declared here
1056 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv);
| ^~~~~~~~~~~~~~~~~~~~~~
vanitygen.c:152:33: warning: ‘EC_KEY_set_public_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
152 | EC_KEY_set_public_key(pkey, origin); /* set public key in pkey */
| ^~~~~~~~~~~~~~~~~~~~~
In file included from vanitygen.c:28:
/usr/include/openssl/ec.h:1070:27: note: declared here
1070 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub);
| ^~~~~~~~~~~~~~~~~~~~~
vanitygen.c:161:32: warning: ‘EC_KEY_get0_private_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
161 | EC_KEY_get0_private_key(pkey));
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from vanitygen.c:28:
/usr/include/openssl/ec.h:1048:37: note: declared here
1048 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key);
| ^~~~~~~~~~~~~~~~~~~~~~~
vanitygen.c:167:25: warning: ‘EC_KEY_get0_public_key’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
167 | EC_POINT_copy(ppnt[0], EC_KEY_get0_public_key(pkey));
| ^~~~~~~~~~~~~
In file included from vanitygen.c:28:
/usr/include/openssl/ec.h:1062:39: note: declared here
1062 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key);
| ^~~~~~~~~~~~~~~~~~~~~~
vanitygen.c:223:17: warning: ‘EC_POINTs_make_affine’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
223 | EC_POINTs_make_affine(pgroup, nbatch, ppnt, vxcp->vxc_bnctx);
| ^~~~~~~~~~~~~~~~~~~~~
In file included from vanitygen.c:28:
/usr/include/openssl/ec.h:846:27: note: declared here
846 | OSSL_DEPRECATEDIN_3_0 int EC_POINTs_make_affine(const EC_GROUP *group, size_t num,
| ^~~~~~~~~~~~~~~~~~~~~
vanitygen.c:238:33: warning: ‘RIPEMD160’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
238 | RIPEMD160(hash1, sizeof(hash1), &vxcp->vxc_binres[1]);
| ^~~~~~~~~
In file included from vanitygen.c:27:
/usr/include/openssl/ripemd.h:49:38: note: declared here
49 | OSSL_DEPRECATEDIN_3_0 unsigned char *RIPEMD160(const unsigned char *d, size_t n,
| ^~~~~~~~~
vanitygen.c: In function ‘main’:
vanitygen.c:517:33: warning: ‘EC_KEY_get0_group’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
517 | EC_KEY_get0_group(pkey),
| ^~~~~~~~~~~~~~~~~
In file included from vanitygen.c:28:
/usr/include/openssl/ec.h:1034:39: note: declared here
1034 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key);
| ^~~~~~~~~~~~~~~~~
vanitygen.c:519:25: warning: ‘EC_KEY_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
519 | EC_KEY_free(pkey);
| ^~~~~~~~~~~
In file included from vanitygen.c:28:
/usr/include/openssl/ec.h:1003:28: note: declared here
1003 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key);
| ^~~~~~~~~~~
cc -ggdb -O3 -Wall -c -o pattern.o pattern.c
pattern.c:32:10: fatal error: pcre.h: No such file or directory
32 | #include <pcre.h>
| ^~~~~~~~
compilation terminated.
make: *** [<builtin>: pattern.o] Error 1
Try install pcre library:
sudo apt-get install libpcre3-dev
. # Debian, Ubuntu, etc
sudo yum install pcre-devel
# CentOS, Redhat, etc
That fixed compiling vanitygen, thanks. For oclvanity I was getting this error
oclengine.c:43:10: fatal error: CL/cl.h: No such file or directory
43 | #include <CL/cl.h>
and after following this guide I fixed it using
sudo ln -s /usr/lib/x86_64-linux-gnu/libOpenCL.so.1 /usr/lib/libOpenCL.so
. Not sure why I needed this random command and I'm not a fan of blankly copy-pasting something from the internet but that probably had nothing to do with your code so closing.
Here is my log from Linux Mint.