Bitcoin Forum
April 19, 2024, 05:12:40 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Compiling Rockscluster Centos 5.5  (Read 4177 times)
destine (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
September 16, 2010, 08:13:22 AM
 #1

Hi,

I saw the other thread that had some compiled the binaries however they are old and don't provide what i need.
I have all the prerequisites install according to the documentation

sudo make -f makefile.unix bitcoind

is the command i'm using.

Heres is the output:

Code:
[root@test trunk]# sudo make -f makefile.unix bitcoind
g++ -c -O2 -Wno-invalid-offsetof -Wformat -g -D__WXDEBUG__ -D__WXGTK__ -DNOPCH -DFOURWAYSSE2 -I"/usr/local/include/wx-2.9" -I"/usr/local/lib/wx/include/gtk2-unicode-debug-static-2.9" -o obj/nogui/util.o util.cpp
In file included from util.cpp:5:
headers.h:38:27: error: openssl/ecdsa.h: No such file or directory
key.h:46: error: ISO C++ forbids declaration of 'EC_KEY' with no type
key.h:46: error: expected ';' before '*' token
key.h: In constructor 'CKey::CKey()':
key.h:52: error: 'pkey' was not declared in this scope
key.h:52: error: 'EC_KEY_new_by_curve_name' was not declared in this scope
key.h: In copy constructor 'CKey::CKey(const CKey&)':
key.h:60: error: 'pkey' was not declared in this scope
key.h:60: error: 'const class CKey' has no member named 'pkey'
key.h:60: error: 'EC_KEY_dup' was not declared in this scope
key.h: In member function 'CKey& CKey::operator=(const CKey&)':
key.h:68: error: 'pkey' was not declared in this scope
key.h:68: error: 'const class CKey' has no member named 'pkey'
key.h:68: error: 'EC_KEY_copy' was not declared in this scope
key.h: In destructor 'CKey::~CKey()':
key.h:76: error: 'pkey' was not declared in this scope
key.h:76: error: 'EC_KEY_free' was not declared in this scope
key.h: In member function 'void CKey::MakeNewKey()':
key.h:86: error: 'pkey' was not declared in this scope
key.h:86: error: 'EC_KEY_generate_key' was not declared in this scope
key.h: In member function 'bool CKey::SetPrivKey(const CPrivKey&)':
key.h:94: error: 'pkey' was not declared in this scope
key.h:94: error: 'd2i_ECPrivateKey' was not declared in this scope
key.h: In member function 'CPrivKey CKey::GetPrivKey() const':
key.h:102: error: 'pkey' was not declared in this scope
key.h:102: error: 'i2d_ECPrivateKey' was not declared in this scope
key.h: In member function 'bool CKey::SetPubKey(const std::vector<unsigned char, std::allocator<unsigned char> >&)':
key.h:115: error: 'pkey' was not declared in this scope
key.h:115: error: 'o2i_ECPublicKey' was not declared in this scope
key.h: In member function 'std::vector<unsigned char, std::allocator<unsigned char> > CKey::GetPubKey() const':
key.h:123: error: 'pkey' was not declared in this scope
key.h:123: error: 'i2o_ECPublicKey' was not declared in this scope
key.h: In member function 'bool CKey::Sign(uint256, std::vector<unsigned char, std::allocator<unsigned char> >&)':
key.h:138: error: 'pkey' was not declared in this scope
key.h:138: error: 'ECDSA_sign' was not declared in this scope
key.h: In member function 'bool CKey::Verify(uint256, const std::vector<unsigned char, std::allocator<unsigned char> >&)':
key.h:148: error: 'pkey' was not declared in this scope
key.h:148: error: 'ECDSA_verify' was not declared in this scope
db.h: In member function 'bool CDB::Exists(const K&)':
db.h:142: error: 'class Db' has no member named 'exists'
make: *** [obj/nogui/util.o] Error 1

I'm not sure where to go from here.

I need to be able to compile the code myself as i will be adjusting it for testing purposes.

Any assistance would be greatly appreciated.

Cheers
destine
"Bitcoin: mining our own business since 2009" -- Pieter Wuille
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713546760
Hero Member
*
Offline Offline

Posts: 1713546760

View Profile Personal Message (Offline)

Ignore
1713546760
Reply with quote  #2

1713546760
Report to moderator
1713546760
Hero Member
*
Offline Offline

Posts: 1713546760

View Profile Personal Message (Offline)

Ignore
1713546760
Reply with quote  #2

1713546760
Report to moderator
1713546760
Hero Member
*
Offline Offline

Posts: 1713546760

View Profile Personal Message (Offline)

Ignore
1713546760
Reply with quote  #2

1713546760
Report to moderator
The Madhatter
Hero Member
*****
Offline Offline

Activity: 490
Merit: 509


My avatar pic says it all


View Profile
September 16, 2010, 10:46:46 AM
 #2

That means you are missing ecdsa support in openssl.

Look at the configure for your openssl. Look for -no-ec and -no-ecdsa options. Remove them, recompile/reinstall openssl.
destine (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
September 16, 2010, 01:27:15 PM
 #3

Thanks,

i found the reference in the Configure file, where the build would auto disable ecdsa and commented it out, as seen bellow.

Code:
#if (defined($disabled{"ec"}))
# {
# $disabled{"ecdsa"} = "forced";
# $disabled{"ecdh"} = "forced";
# }

However i still get the same error.

Thanks for your help
destine (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
September 17, 2010, 01:53:43 AM
 #4

I've just had a suggestion from a colleague to put the openssl header file in the wanted location. Will do that when i get to my pc.

I'm still open to any other option.

Thanks people  Smiley
destine (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
September 21, 2010, 11:54:24 AM
 #5

Hi,

checked for the header file ecdsa>h and it is in the following path

Code:
 /usr/local/ssl/include/openssl/ecdsa.h

i have no idea where to go from here.
Any suggestions or solutions?

destine (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
October 11, 2010, 05:33:44 AM
 #6

heya,

I manged to get past the ecdsa error.

Downloaded openssl, make all, make install
cp –R –L include/openssl /usr/include
nano –w /bitcoin/whereverthemakefileis/makefile.unix

then added –I”/usr/include” to the include path


now i have one last issue to get past, the error is below.

Code:
No rule to make target 'obj/nogui/util.o', needed by 'bitcoind'.


I have tried downloading the util.o from MIT but it had no effect.

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!