Author

Topic: Problem Compiling Bitcoin (Read 1315 times)

vip
Activity: 1386
Merit: 1140
The Casascius 1oz 10BTC Silver Round (w/ Gold B)
September 21, 2011, 12:53:25 AM
#5
They are both present, they just bomb out with all the errors.

I think I might have found the problem - there is also a /usr/local/include/openssl that apparently gets a higher precedence in the evaluation of #include's.  Your mention of ecdsa.h including ec.h made it occur to me that there might be an ec.h elsewhere in the filesystem that's getting found as a higher priority, and this directory seems to be the culprit.

Renaming the offending directory made all the openssl errors go away. (the real desired versions are in /usr/include)

Thanks for your help!
member
Activity: 64
Merit: 140
September 21, 2011, 12:33:24 AM
#4
Thanks for your help.  Could this mean I am missing a dependency?  Or have an OpenSSL build without EC support?  Not sure where to go from here.  I do not get the "ECDSA is disabled" message that the #error directive would apparently show if I didn't have ECDSA support.

Are you saying you do not have /usr/include/openssl/ec.h  or /usr/include/openssl/ecdsa.h ?
vip
Activity: 1386
Merit: 1140
The Casascius 1oz 10BTC Silver Round (w/ Gold B)
September 21, 2011, 12:24:22 AM
#3
Thanks for your help.  Could this mean I am missing a dependency?  Or have an OpenSSL build without EC support?  Not sure where to go from here.  I do not get the "ECDSA is disabled" message that the #error directive would apparently show if I didn't have ECDSA support.
member
Activity: 64
Merit: 140
September 21, 2011, 12:09:30 AM
#2
That should come from /usr/include/openssl/ec.h

$ grep EC_KEY\; /usr/include/openssl/ec.h
typedef struct ec_key_st EC_KEY;

and ecdsa.h includes it:

#ifndef HEADER_ECDSA_H
#define HEADER_ECDSA_H

#include

#ifdef OPENSSL_NO_ECDSA
#error ECDSA is disabled.
#endif

#include

vip
Activity: 1386
Merit: 1140
The Casascius 1oz 10BTC Silver Round (w/ Gold B)
September 20, 2011, 11:41:10 PM
#1
Can anyone tell me what I might be doing wrong trying to compile Bitcoin from source?

http://pastebin.com/wYDFLzds

I have downloaded the openssl tarball directly from openssl.org.  I am not sure why I should be getting these errors or what to do about them.

Thanks in advance
Jump to: