samr7 / vanitygen

GNU Affero General Public License v3.0
1.23k stars 632 forks source link

Can't compile #138

Open underattach opened 2 years ago

underattach commented 2 years ago

cc -ggdb -O3 -Wall -c -o vanitygen.o vanitygen.c In file included from vanitygen.c:32: pattern.h:54:12: error: field ‘vxc_bntarg’ has incomplete type BIGNUM vxc_bntarg; ^~~~~~ pattern.h:55:12: error: field ‘vxc_bnbase’ has incomplete type BIGNUM vxc_bnbase; ^~~~~~ pattern.h:56:12: error: field ‘vxc_bntmp’ has incomplete type BIGNUM vxc_bntmp; ^~~~~ pattern.h:57:12: error: field ‘vxc_bntmp2’ has incomplete type BIGNUM vxc_bntmp2; ^~~~~~ vanitygen.c: In function ‘vg_thread_loop’: vanitygen.c:134:21: error: ‘BN_MASK2’ undeclared (first use in this function); did you mean ‘BN_BITS2’? if ((rekey_at == BN_MASK2) || (rekey_at > rekey_max)) ^~~~ BN_BITS2 vanitygen.c:134:21: note: each undeclared identifier is reported only once for each function it appears in make: *** [: vanitygen.o] Error 1

Debian version: 10.12 gcc version 8.3.0 (Debian 8.3.0-6)

jowodo commented 2 years ago

same on

Eventually, I did this:

git clone https://github.com/10gic/vanitygen-plusplus 
cd vanitygen-plusplus 
make 
./vanitygen++ 1test
PRFinklemeister commented 1 year ago

Tried vanitygen-plusplsu and get this...

vanitygen.c: In function ‘main’:
vanitygen.c:397:14: warning: variable ‘coin’ set but not used [-Wunused-but-set-variable]
  397 |  const char *coin = "BTC";
      |              ^~~~
cc -ggdb -O3 -Wall -Wno-deprecated   -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.
jowodo commented 1 year ago

@PRFinklemeister please submit an issue at https://github.com/10gic/vanitygen-plusplus/issues Also, check if somebody else already had a similar problem and if not, include information about your system (e.g. the output of the commands: uname -a, lsb_release -a and gcc --version and include the exact commands on how to replicate the error which you encountered.