Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont make after update OpenSSL on OSX 10.9.1 #45

Open
Bigbublik opened this issue Jan 25, 2014 · 11 comments
Open

Dont make after update OpenSSL on OSX 10.9.1 #45

Bigbublik opened this issue Jan 25, 2014 · 11 comments

Comments

@Bigbublik
Copy link

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
@BlinkyStitt
Copy link

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

@jackcogdill
Copy link

I'm having the same issue.

@jackcogdill
Copy link

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

@BlinkyStitt
Copy link

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

@jackcogdill
Copy link

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.

@gosuto-inzasheru
Copy link

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.

@silverdr
Copy link

silverdr commented Nov 3, 2014

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

@masonforest
Copy link

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.

@silverdr
Copy link

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.

@ianberdin
Copy link

@silverdr Thank you!

@johnpitchers
Copy link

@silverdr Thanks. That got it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants