vanitygen
vanitygen copied to clipboard
Dont make after update OpenSSL on OSX 10.9.1
After updating OpenSSL, make gives an error.
$ make --debug
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0
Reading makefiles...
Updating goal targets....
File `most' does not exist.
File `vanitygen' does not exist.
File `vanitygen.o' does not exist.
Must remake target `vanitygen.o'.
cc -ggdb -O3 -Wall -c -o vanitygen.o vanitygen.c
Successfully remade target file `vanitygen.o'.
File `pattern.o' does not exist.
Must remake target `pattern.o'.
cc -ggdb -O3 -Wall -c -o pattern.o pattern.c
Successfully remade target file `pattern.o'.
File `util.o' does not exist.
Must remake target `util.o'.
cc -ggdb -O3 -Wall -c -o util.o util.c
Successfully remade target file `util.o'.
Must remake target `vanitygen'.
cc vanitygen.o pattern.o util.o -o vanitygen -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
Undefined symbols for architecture x86_64:
"_PKCS5_PBKDF2_HMAC", referenced from:
_vg_protect_crypt in util.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [vanitygen] Error 1
$ openssl
OpenSSL> version
OpenSSL 1.0.1e 11 Feb 2013
How did you update openssl?
You might try using my fork at https://github.com/WyseNynja/vanitygen. Using brew to handle the dependencies made a lot of my issues go away. https://github.com/WyseNynja/homebrew-bitcoin
I'm having the same issue.
@WyseNynja I can't for the life of me compile this with any version of openssl or anything. Do you have a precompiled version you could just give out? I'm on Mavericks.
Help me WyseNynja, you're my only hope.
I don't have a precompiled version, but you can try using homebrew tap to compile it on your own system
brew tap WyseNynja/bitcoin
brew prune
brew install vanitygen
I ended up getting it to work by force-uninstalling my openssl and then building an older version from source. It was messy and ruined a bunch of my ports from macports, but I can always just rebuild them.
Thanks for that tap WyseNynja.
Not only did it fix this problem for me but also it got rid of other error messages and instead of running around 300Kkey/s in CPU mode it doubled and now runs at 600Kkey/s.
It's been some months already... has anyone found the solution to this? I still can't compile (or rather link) the current version due to
Undefined symbols for architecture x86_64:
"_PKCS5_PBKDF2_HMAC", referenced from:
_vg_protect_crypt in util.o
Any help/clues? Except switching to brew, I mean...
Changing line 2 of the Makefile to
CFLAGS=-ggdb -O3 -Wall -I /usr/local/Cellar/openssl/1.0.1j_1/include -L /usr/local/Cellar/openssl/1.0.1j_1/lib
fixed it for me.
OK, needed slightly different line but it worked:
CFLAGS=-ggdb -O3 -Wall -I /usr/local/include -I /usr/local/opt/openssl/include -L /usr/local/opt/openssl/lib
That is of course valid for brew installed openssl.
@silverdr Thank you!
@silverdr Thanks. That got it working.