Bitcoin Forum
April 25, 2024, 07:39:52 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Problem Compiling Bitcoin  (Read 1276 times)
casascius (OP)
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1386
Merit: 1136


The Casascius 1oz 10BTC Silver Round (w/ Gold B)


View Profile WWW
September 21, 2011, 04:41:10 AM
 #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

Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable.  I never believe them.  If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins.  I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion.  Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice.  Don't keep coins online. Use paper or hardware wallets instead.
"You Asked For Change, We Gave You Coins" -- casascius
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
bitrick
Member
**
Offline Offline

Activity: 64
Merit: 140


View Profile
September 21, 2011, 05: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 <openssl/opensslconf.h>

#ifdef OPENSSL_NO_ECDSA
#error ECDSA is disabled.
#endif

#include <openssl/ec.h>

<snip>
casascius (OP)
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1386
Merit: 1136


The Casascius 1oz 10BTC Silver Round (w/ Gold B)


View Profile WWW
September 21, 2011, 05: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.

Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable.  I never believe them.  If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins.  I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion.  Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice.  Don't keep coins online. Use paper or hardware wallets instead.
bitrick
Member
**
Offline Offline

Activity: 64
Merit: 140


View Profile
September 21, 2011, 05: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 ?
casascius (OP)
Mike Caldwell
VIP
Legendary
*
Offline Offline

Activity: 1386
Merit: 1136


The Casascius 1oz 10BTC Silver Round (w/ Gold B)


View Profile WWW
September 21, 2011, 05: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!

Companies claiming they got hacked and lost your coins sounds like fraud so perfect it could be called fashionable.  I never believe them.  If I ever experience the misfortune of a real intrusion, I declare I have been honest about the way I have managed the keys in Casascius Coins.  I maintain no ability to recover or reproduce the keys, not even under limitless duress or total intrusion.  Remember that trusting strangers with your coins without any recourse is, as a matter of principle, not a best practice.  Don't keep coins online. Use paper or hardware wallets instead.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!