Git Product home page Git Product logo

Comments (5)

K0-RR avatar K0-RR commented on September 26, 2024

Same issue on Fedora 36

from vanitygen-plusplus.

10gic avatar 10gic commented on September 26, 2024

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.

from vanitygen-plusplus.

K0-RR avatar K0-RR commented on September 26, 2024

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

from vanitygen-plusplus.

10gic avatar 10gic commented on September 26, 2024

Try install pcre library:
sudo apt-get install libpcre3-dev. # Debian, Ubuntu, etc
sudo yum install pcre-devel # CentOS, Redhat, etc

See: https://stackoverflow.com/questions/22555561/error-building-fatal-error-pcre-h-no-such-file-or-directory

from vanitygen-plusplus.

K0-RR avatar K0-RR commented on September 26, 2024

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.

from vanitygen-plusplus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.