|
Title: Problem Compiling Bitcoin Post by: casascius on September 21, 2011, 04:41:10 AM 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 Title: Re: Problem Compiling Bitcoin Post by: bitrick on September 21, 2011, 05:09:30 AM 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> Title: Re: Problem Compiling Bitcoin Post by: casascius on September 21, 2011, 05:24:22 AM 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.
Title: Re: Problem Compiling Bitcoin Post by: bitrick on September 21, 2011, 05:33:24 AM 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 ? Title: Re: Problem Compiling Bitcoin Post by: casascius on September 21, 2011, 05:53:25 AM 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! |