vanitygen icon indicating copy to clipboard operation
vanitygen copied to clipboard

Dont make after update OpenSSL on OSX 10.9.1

Open Bigbublik opened this issue 11 years ago • 11 comments

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

Bigbublik avatar Jan 25 '14 19:01 Bigbublik

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

BlinkyStitt avatar Jan 26 '14 22:01 BlinkyStitt

I'm having the same issue.

jackcogdill avatar Mar 02 '14 22:03 jackcogdill

@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.

jackcogdill avatar Mar 03 '14 03:03 jackcogdill

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

BlinkyStitt avatar Mar 04 '14 03:03 BlinkyStitt

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.

jackcogdill avatar Mar 04 '14 03:03 jackcogdill

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.

gosuto-inzasheru avatar Jul 20 '14 02:07 gosuto-inzasheru

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...

silverdr avatar Nov 03 '14 17:11 silverdr

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.

masonforest avatar Jan 26 '15 02:01 masonforest

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 avatar Apr 10 '15 18:04 silverdr

@silverdr Thank you!

ianberdin avatar Aug 10 '15 11:08 ianberdin

@silverdr Thanks. That got it working.

johnpitchers avatar Apr 13 '16 02:04 johnpitchers