Open tibbon opened 10 years ago
I'm trying brew install boost
right now to see if that helps. It appears that there's some library dependency here that might be the problem.
Ok, well that 'helped' a bit. New errors! Seem to be having a problem with SHA256 on Mavericks?
davids-mbp:src davidfisher$ make -f makefile.osx
llvm-g++ -c -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -DUSE_UPNP=1 -DUSE_IPV6=1 -I/Users/davidfisher/Code/datacoin-hp/src/leveldb/include -I/Users/davidfisher/Code/datacoin-hp/src/leveldb/helpers -DHAVE_BUILD_INFO -I"/Users/davidfisher/Code/datacoin-hp/src" -I"/Users/davidfisher/Code/datacoin-hp/src"/obj -I"/opt/local/include" -I"/opt/local/include/db48" -MMD -MF obj/alert.d -o obj/alert.o alert.cpp
In file included from alert.cpp:11:
In file included from /Users/davidfisher/Code/datacoin-hp/src/alert.h:13:
In file included from /Users/davidfisher/Code/datacoin-hp/src/util.h:37:
In file included from /Users/davidfisher/Code/datacoin-hp/src/netbase.h:10:
/Users/davidfisher/Code/datacoin-hp/src/serialize.h:911:10: error: class member cannot be redeclared
void insert(iterator it, std::vector<char>::const_iterator first, std::vector<char>::const_iterator last)
^
/Users/davidfisher/Code/datacoin-hp/src/serialize.h:898:10: note: previous declaration is here
void insert(iterator it, const_iterator first, const_iterator last)
^
/Users/davidfisher/Code/datacoin-hp/src/serialize.h:911:10: error: redefinition of 'insert'
void insert(iterator it, std::vector<char>::const_iterator first, std::vector<char>::const_iterator last)
^
/Users/davidfisher/Code/datacoin-hp/src/serialize.h:898:10: note: previous definition is here
void insert(iterator it, const_iterator first, const_iterator last)
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:22:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA256((unsigned char*)&hash1, sizeof(hash1), (unsigned char*)&hash2);
^
/usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here
unsigned char *SHA256(const unsigned char *d, size_t n,unsigned char *md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:36:9: warning: 'SHA256_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA256_Init(&ctx);
^
/usr/include/openssl/sha.h:147:5: note: 'SHA256_Init' declared here
int SHA256_Init(SHA256_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:44:9: warning: 'SHA256_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA256_Update(&ctx, pch, size);
^
/usr/include/openssl/sha.h:148:5: note: 'SHA256_Update' declared here
int SHA256_Update(SHA256_CTX *c, const void *data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:51:9: warning: 'SHA256_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA256_Final((unsigned char*)&hash1, &ctx);
^
/usr/include/openssl/sha.h:149:5: note: 'SHA256_Final' declared here
int SHA256_Final(unsigned char *md, SHA256_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:53:9: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA256((unsigned char*)&hash1, sizeof(hash1), (unsigned char*)&hash2);
^
/usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here
unsigned char *SHA256(const unsigned char *d, size_t n,unsigned char *md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:73:5: warning: 'SHA256_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA256_Init(&ctx);
^
/usr/include/openssl/sha.h:147:5: note: 'SHA256_Init' declared here
int SHA256_Init(SHA256_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:76:5: warning: 'SHA256_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA256_Final((unsigned char*)&hash1, &ctx);
^
/usr/include/openssl/sha.h:149:5: note: 'SHA256_Final' declared here
int SHA256_Final(unsigned char *md, SHA256_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:78:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA256((unsigned char*)&hash1, sizeof(hash1), (unsigned char*)&hash2);
^
/usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here
unsigned char *SHA256(const unsigned char *d, size_t n,unsigned char *md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:90:5: warning: 'SHA256_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA256_Init(&ctx);
^
/usr/include/openssl/sha.h:147:5: note: 'SHA256_Init' declared here
int SHA256_Init(SHA256_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:94:5: warning: 'SHA256_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA256_Final((unsigned char*)&hash1, &ctx);
^
/usr/include/openssl/sha.h:149:5: note: 'SHA256_Final' declared here
int SHA256_Final(unsigned char *md, SHA256_CTX *c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:96:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA256((unsigned char*)&hash1, sizeof(hash1), (unsigned char*)&hash2);
^
/usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here
unsigned char *SHA256(const unsigned char *d, size_t n,unsigned char *md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:111:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA256(&vch[0], vch.size(), (unsigned char*)&hash1);
^
/usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here
unsigned char *SHA256(const unsigned char *d, size_t n,unsigned char *md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:113:5: warning: 'RIPEMD160' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
RIPEMD160((unsigned char*)&hash1, sizeof(hash1), (unsigned char*)&hash2);
^
/usr/include/openssl/ripemd.h:101:16: note: 'RIPEMD160' declared here
unsigned char *RIPEMD160(const unsigned char *d, size_t n,
^
In file included from alert.cpp:13:
In file included from /Users/davidfisher/Code/datacoin-hp/src/net.h:21:
/Users/davidfisher/Code/datacoin-hp/src/addrman.h:385:10: warning: 'RAND_bytes' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
RAND_bytes(&nKey[0], 32);
^
/usr/include/openssl/rand.h:104:6: note: 'RAND_bytes' declared here
int RAND_bytes(unsigned char *buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:11:
In file included from /Users/davidfisher/Code/datacoin-hp/src/alert.h:13:
In file included from /Users/davidfisher/Code/datacoin-hp/src/util.h:37:
In file included from /Users/davidfisher/Code/datacoin-hp/src/netbase.h:10:
In file included from /Users/davidfisher/Code/datacoin-hp/src/serialize.h:22:
/Users/davidfisher/Code/datacoin-hp/src/allocators.h:250:13: warning: 'OPENSSL_cleanse' is deprecated: first deprecated in OS X 10.7
[-Wdeprecated-declarations]
OPENSSL_cleanse(p, sizeof(T) * n);
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/memory:1486:14: note: in instantiation of member function
'zero_after_free_allocator<char>::deallocate' requested here
{__a.deallocate(__p, __n);}
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/vector:478:25: note: in instantiation of member function
'std::__1::allocator_traits<zero_after_free_allocator<char> >::deallocate' requested here
__alloc_traits::deallocate(__alloc(), __begin_, capacity());
^
/Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/iterator:1197:53: note: in instantiation of member function 'std::__1::__vector_base<char,
zero_after_free_allocator<char> >::~__vector_base' requested here
template <class _Tp, class _Alloc> friend class vector;
^
/usr/include/openssl/crypto.h:486:6: note: 'OPENSSL_cleanse' declared here
void OPENSSL_cleanse(void *ptr, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:20:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA256((pbegin == pend ? pblank : (unsigned char*)&pbegin[0]), (pend - pbegin) * sizeof(pbegin[0]), (unsigned char*)&hash1);
^
/Users/davidfisher/Code/datacoin-hp/src/key.h:85:16: note: in instantiation of function template specialization 'Hash<std::__1::__wrap_iter<const unsigned char
*> >' requested here
return Hash(vchPubKey.begin(), vchPubKey.end());
^
/usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here
unsigned char *SHA256(const unsigned char *d, size_t n,unsigned char *md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from alert.cpp:12:
In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14:
/Users/davidfisher/Code/datacoin-hp/src/hash.h:20:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
SHA256((pbegin == pend ? pblank : (unsigned char*)&pbegin[0]), (pend - pbegin) * sizeof(pbegin[0]), (unsigned char*)&hash1);
^
/Users/davidfisher/Code/datacoin-hp/src/net.h:423:24: note: in instantiation of function template specialization 'Hash<std::__1::__wrap_iter<char *> >'
requested here
uint256 hash = Hash(ssSend.begin() + CMessageHeader::HEADER_SIZE, ssSend.end());
^
/usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here
unsigned char *SHA256(const unsigned char *d, size_t n,unsigned char *md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
17 warnings and 2 errors generated.
make: *** [obj/alert.o] Error 1
davids-mbp:src davidfisher$
Commented out lines 898 through 909 in serialize.h and it seems to get further now. But yet again, a new set of errors:
(many things and then...)
/usr/include/openssl/ripemd.h:101:16: note: 'RIPEMD160' declared here
unsigned char *RIPEMD160(const unsigned char *d, size_t n,
^
In file included from db.cpp:6:
In file included from /Users/davidfisher/Code/datacoin-hp/src/db.h:8:
In file included from /Users/davidfisher/Code/datacoin-hp/src/main.h:13:
In file included from /Users/davidfisher/Code/datacoin-hp/src/script.h:14:
In file included from /Users/davidfisher/Code/datacoin-hp/src/keystore.h:8:
/Users/davidfisher/Code/datacoin-hp/src/crypter.h:79:9: warning: 'OPENSSL_cleanse' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
OPENSSL_cleanse(chKey, sizeof(chKey));
^
/usr/include/openssl/crypto.h:486:6: note: 'OPENSSL_cleanse' declared here
void OPENSSL_cleanse(void *ptr, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from db.cpp:6:
In file included from /Users/davidfisher/Code/datacoin-hp/src/db.h:8:
In file included from /Users/davidfisher/Code/datacoin-hp/src/main.h:13:
In file included from /Users/davidfisher/Code/datacoin-hp/src/script.h:14:
In file included from /Users/davidfisher/Code/datacoin-hp/src/keystore.h:8:
/Users/davidfisher/Code/datacoin-hp/src/crypter.h:80:9: warning: 'OPENSSL_cleanse' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]
OPENSSL_cleanse(chIV, sizeof(chIV));
^
/usr/include/openssl/crypto.h:486:6: note: 'OPENSSL_cleanse' declared here
void OPENSSL_cleanse(void *ptr, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER;
^
In file included from db.cpp:6:
/Users/davidfisher/Code/datacoin-hp/src/db.h:14:10: fatal error: 'db_cxx.h' file not found
#include <db_cxx.h>
^
82 warnings and 1 error generated.
Hi, I never could crosscompile it, and can't look too much right now but someone suggested this for 64bit:
-arch x86_64
macx:QMAKE_CFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk
macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.5 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk
On Tue, Dec 24, 2013 at 5:50 PM, David Fisher notifications@github.comwrote:
Ok, well that 'helped' a bit. New errors! Seem to be having a problem with SHA256 on Mavericks?
davids-mbp:src davidfisher$ make -f makefile.osx llvm-g++ -c -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -DUSE_UPNP=1 -DUSE_IPV6=1 -I/Users/davidfisher/Code/datacoin-hp/src/leveldb/include -I/Users/davidfisher/Code/datacoin-hp/src/leveldb/helpers -DHAVE_BUILD_INFO -I"/Users/davidfisher/Code/datacoin-hp/src" -I"/Users/davidfisher/Code/datacoin-hp/src"/obj -I"/opt/local/include" -I"/opt/local/include/db48" -MMD -MF obj/alert.d -o obj/alert.o alert.cpp In file included from alert.cpp:11: In file included from /Users/davidfisher/Code/datacoin-hp/src/alert.h:13: In file included from /Users/davidfisher/Code/datacoin-hp/src/util.h:37: In file included from /Users/davidfisher/Code/datacoin-hp/src/netbase.h:10: /Users/davidfisher/Code/datacoin-hp/src/serialize.h:911:10: error: class member cannot be redeclared void insert(iterator it, std::vector
::const_iterator first, std::vector ::const_iterator last) ^ /Users/davidfisher/Code/datacoin-hp/src/serialize.h:898:10: note: previous declaration is here void insert(iterator it, const_iterator first, const_iterator last) ^ /Users/davidfisher/Code/datacoin-hp/src/serialize.h:911:10: error: redefinition of 'insert' void insert(iterator it, std::vector ::const_iterator first, std::vector ::const_iterator last) ^ /Users/davidfisher/Code/datacoin-hp/src/serialize.h:898:10: note: previous definition is here void insert(iterator it, const_iterator first, constiterator last) ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:22:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256((unsigned char)&hash1, sizeof(hash1), (unsigned char_)&hash2); ^ /usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here unsigned char _SHA256(const unsigned char d, size_t n,unsigned char md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:36:9: warning: 'SHA256_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256_Init(&ctx); ^ /usr/include/openssl/sha.h:147:5: note: 'SHA256_Init' declared here int SHA256_Init(SHA256_CTX c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:44:9: warning: 'SHA256_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256_Update(&ctx, pch, size); ^ /usr/include/openssl/sha.h:148:5: note: 'SHA256_Update' declared here int SHA256_Update(SHA256_CTX c, const void data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:51:9: warning: 'SHA256_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256Final((unsigned char)&hash1, &ctx); ^ /usr/include/openssl/sha.h:149:5: note: 'SHA256_Final' declared here int SHA256_Final(unsigned char _md, SHA256_CTX c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:53:9: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256((unsigned char)&hash1, sizeof(hash1), (unsigned char_)&hash2); ^ /usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here unsigned char SHA256(const unsigned char d, size_t n,unsigned char md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:73:5: warning: 'SHA256_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256_Init(&ctx); ^ /usr/include/openssl/sha.h:147:5: note: 'SHA256_Init' declared here int SHA256_Init(SHA256_CTX c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:76:5: warning: 'SHA256_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256Final((unsigned char)&hash1, &ctx); ^ /usr/include/openssl/sha.h:149:5: note: 'SHA256_Final' declared here int SHA256_Final(unsigned char _md, SHA256_CTX c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:78:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256((unsigned char)&hash1, sizeof(hash1), (unsigned char_)&hash2); ^ /usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here unsigned char SHA256(const unsigned char d, size_t n,unsigned char md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:90:5: warning: 'SHA256_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256_Init(&ctx); ^ /usr/include/openssl/sha.h:147:5: note: 'SHA256_Init' declared here int SHA256_Init(SHA256_CTX c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:94:5: warning: 'SHA256_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256Final((unsigned char)&hash1, &ctx); ^ /usr/include/openssl/sha.h:149:5: note: 'SHA256_Final' declared here int SHA256_Final(unsigned char _md, SHA256_CTX c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:96:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256((unsigned char)&hash1, sizeof(hash1), (unsigned char_)&hash2); ^ /usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here unsigned char SHA256(const unsigned char d, size_t n,unsigned char md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:111:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256(&vch[0], vch.size(), (unsigned char)&hash1); ^ /usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here unsigned char _SHA256(const unsigned char d, size_t n,unsigned char md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:113:5: warning: 'RIPEMD160' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] RIPEMD160((unsigned char)&hash1, sizeof(hash1), (unsigned char_)&hash2); ^ /usr/include/openssl/ripemd.h:101:16: note: 'RIPEMD160' declared here unsigned char RIPEMD160(const unsigned char d, size_t n, ^ In file included from alert.cpp:13: In file included from /Users/davidfisher/Code/datacoin-hp/src/net.h:21: /Users/davidfisher/Code/datacoin-hp/src/addrman.h:385:10: warning: 'RAND_bytes' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] RAND_bytes(&nKey[0], 32); ^ /usr/include/openssl/rand.h:104:6: note: 'RAND_bytes' declared here int RAND_bytes(unsigned char buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:11: In file included from /Users/davidfisher/Code/datacoin-hp/src/alert.h:13: In file included from /Users/davidfisher/Code/datacoin-hp/src/util.h:37: In file included from /Users/davidfisher/Code/datacoin-hp/src/netbase.h:10: In file included from /Users/davidfisher/Code/datacoin-hp/src/serialize.h:22: /Users/davidfisher/Code/datacoin-hp/src/allocators.h:250:13: warning: 'OPENSSL_cleanse' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] OPENSSL_cleanse(p, sizeof(T) * n); ^ /Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/memory:1486:14: note: in instantiation of member function 'zero_after_free_allocator ::deallocate' requested here {a.deallocate(p, n);} ^ /Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/vector:478:25: note: in instantiation of member function 'std::1::allocator_traits<zero_after_free_allocator >::deallocate' requested here alloctraits::deallocate(alloc(), begin, capacity()); ^ /Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/iterator:1197:53: note: in instantiation of member function 'std::1::vector_base<char, zero_after_free_allocator >::~ vector_base' requested here template <class _Tp, class _Alloc> friend class vector; ^ /usr/include/openssl/crypto.h:486:6: note: 'OPENSSL_cleanse' declared here void OPENSSL_cleanse(void ptr, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:20:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256((pbegin == pend ? pblank : (unsigned char)&pbegin[0]), (pend - pbegin) * sizeof(pbegin[0]), (unsigned char_)&hash1); ^ /Users/davidfisher/Code/datacoin-hp/src/key.h:85:16: note: in instantiation of function template specialization 'Hash<std::1::wrap_iter<const unsigned char > >' requested here return Hash(vchPubKey.begin(), vchPubKey.end()); ^ /usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here unsigned char SHA256(const unsigned char d, size_t n,unsigned char md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:20:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256((pbegin == pend ? pblank : (unsigned char)&pbegin[0]), (pend - pbegin) * sizeof(pbegin[0]), (unsigned char_)&hash1); ^ /Users/davidfisher/Code/datacoin-hp/src/net.h:423:24: note: in instantiation of function template specialization 'Hash<std::1::wrap_iter<char > >' requested here uint256 hash = Hash(ssSend.begin() + CMessageHeader::HEADER_SIZE, ssSend.end()); ^ /usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here unsigned char SHA256(const unsigned char d, size_t n,unsigned char md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ 17 warnings and 2 errors generated. make: _* [obj/alert.o] Error 1 davids-mbp:src davidfisher$ Reply to this email directly or view it on GitHubhttps://github.com/foo1inge/datacoin-hp/issues/1#issuecomment-31186924 .
That definitely cleaned up some of the warnings, but I'm still halting on the db_cxx.h error. Trying to debug that one now, just for others who might hit similar issues.
On Tue, Dec 24, 2013 at 6:00 PM, Palm Detroit notifications@github.comwrote:
Hi, I never could crosscompile it, and can't look too much right now but someone suggested this for 64bit:
-arch x86_64
macx:QMAKE_CFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk
macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.5 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.5.sdk
On Tue, Dec 24, 2013 at 5:50 PM, David Fisher notifications@github.comwrote:
Ok, well that 'helped' a bit. New errors! Seem to be having a problem with SHA256 on Mavericks?
davids-mbp:src davidfisher$ make -f makefile.osx llvm-g++ -c -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -DUSE_UPNP=1 -DUSE_IPV6=1 -I/Users/davidfisher/Code/datacoin-hp/src/leveldb/include -I/Users/davidfisher/Code/datacoin-hp/src/leveldb/helpers -DHAVE_BUILD_INFO -I"/Users/davidfisher/Code/datacoin-hp/src" -I"/Users/davidfisher/Code/datacoin-hp/src"/obj -I"/opt/local/include" -I"/opt/local/include/db48" -MMD -MF obj/alert.d -o obj/alert.o alert.cpp In file included from alert.cpp:11: In file included from /Users/davidfisher/Code/datacoin-hp/src/alert.h:13: In file included from /Users/davidfisher/Code/datacoin-hp/src/util.h:37: In file included from /Users/davidfisher/Code/datacoin-hp/src/netbase.h:10: /Users/davidfisher/Code/datacoin-hp/src/serialize.h:911:10: error: class member cannot be redeclared void insert(iterator it, std::vector
::const_iterator first, std::vector ::const_iterator last) ^ /Users/davidfisher/Code/datacoin-hp/src/serialize.h:898:10: note: previous declaration is here void insert(iterator it, const_iterator first, const_iterator last) ^ /Users/davidfisher/Code/datacoin-hp/src/serialize.h:911:10: error: redefinition of 'insert' void insert(iterator it, std::vector ::const_iterator first, std::vector ::const_iterator last) ^ /Users/davidfisher/Code/datacoin-hp/src/serialize.h:898:10: note: previous definition is here void insert(iterator it, const_iterator first, constiterator last) ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:22:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256((unsigned char)&hash1, sizeof(hash1), (unsigned char_)&hash2); ^ /usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here unsigned char _SHA256(const unsigned char d, size_t n,unsigned char md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:36:9: warning: 'SHA256_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256_Init(&ctx); ^ /usr/include/openssl/sha.h:147:5: note: 'SHA256_Init' declared here int SHA256_Init(SHA256_CTX c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:44:9: warning: 'SHA256_Update' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256_Update(&ctx, pch, size); ^ /usr/include/openssl/sha.h:148:5: note: 'SHA256_Update' declared here int SHA256_Update(SHA256_CTX c, const void data, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:51:9: warning: 'SHA256_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256Final((unsigned char)&hash1, &ctx); ^ /usr/include/openssl/sha.h:149:5: note: 'SHA256_Final' declared here int SHA256_Final(unsigned char _md, SHA256_CTX c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:53:9: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256((unsigned char)&hash1, sizeof(hash1), (unsigned char_)&hash2); ^ /usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here unsigned char SHA256(const unsigned char d, size_t n,unsigned char md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:73:5: warning: 'SHA256_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256_Init(&ctx); ^ /usr/include/openssl/sha.h:147:5: note: 'SHA256_Init' declared here int SHA256_Init(SHA256_CTX c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:76:5: warning: 'SHA256_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256Final((unsigned char)&hash1, &ctx); ^ /usr/include/openssl/sha.h:149:5: note: 'SHA256_Final' declared here int SHA256_Final(unsigned char _md, SHA256_CTX c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:78:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256((unsigned char)&hash1, sizeof(hash1), (unsigned char_)&hash2); ^ /usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here unsigned char SHA256(const unsigned char d, size_t n,unsigned char md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:90:5: warning: 'SHA256_Init' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256_Init(&ctx); ^ /usr/include/openssl/sha.h:147:5: note: 'SHA256_Init' declared here int SHA256_Init(SHA256_CTX c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:94:5: warning: 'SHA256_Final' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256Final((unsigned char)&hash1, &ctx); ^ /usr/include/openssl/sha.h:149:5: note: 'SHA256_Final' declared here int SHA256_Final(unsigned char _md, SHA256_CTX c) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:96:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256((unsigned char)&hash1, sizeof(hash1), (unsigned char_)&hash2); ^ /usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here unsigned char SHA256(const unsigned char d, size_t n,unsigned char md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:111:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256(&vch[0], vch.size(), (unsigned char)&hash1); ^ /usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here unsigned char _SHA256(const unsigned char d, size_t n,unsigned char md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:113:5: warning: 'RIPEMD160' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] RIPEMD160((unsigned char)&hash1, sizeof(hash1), (unsigned char)&hash2); ^ /usr/include/openssl/ripemd.h:101:16: note: 'RIPEMD160' declared here unsigned char RIPEMD160(const unsigned char d, size_t n, ^ In file included from alert.cpp:13: In file included from /Users/davidfisher/Code/datacoin-hp/src/net.h:21: /Users/davidfisher/Code/datacoin-hp/src/addrman.h:385:10: warning: 'RAND_bytes' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] RAND_bytes(&nKey[0], 32); ^ /usr/include/openssl/rand.h:104:6: note: 'RAND_bytes' declared here int RAND_bytes(unsigned char buf,int num) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_AND_LATER; ^ In file included from alert.cpp:11: In file included from /Users/davidfisher/Code/datacoin-hp/src/alert.h:13: In file included from /Users/davidfisher/Code/datacoin-hp/src/util.h:37: In file included from /Users/davidfisher/Code/datacoin-hp/src/netbase.h:10: In file included from /Users/davidfisher/Code/datacoin-hp/src/serialize.h:22: /Users/davidfisher/Code/datacoin-hp/src/allocators.h:250:13: warning: 'OPENSSL_cleanse' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] OPENSSL_cleanse(p, sizeof(T) \ n); ^ /Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/memory:1486:14: note: in instantiation of member function 'zero_after_free_allocator
::deallocate' requested here {a.deallocate(p, n);} ^ /Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/vector:478:25: note: in instantiation of member function 'std::1::allocator_traits<zero_after_free_allocator ::deallocate' requested here __alloctraits::deallocate(alloc(), begin, capacity()); ^ /Library/Developer/CommandLineTools/usr/bin/../lib/c++/v1/iterator:1197:53: note: in instantiation of member function 'std::1::vector_base<char, zero_after_free_allocator
>::~vector_base' requested here template <class _Tp, class _Alloc> friend class vector; ^ /usr/include/openssl/crypto.h:486:6: note: 'OPENSSL_cleanse' declared here void OPENSSL_cleanse(void _ptr, size_t len) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:20:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256((pbegin == pend ? pblank : (unsigned char)&pbegin[0]), (pend - pbegin) * sizeof(pbegin[0]), (unsigned char_)&hash1); ^ /Users/davidfisher/Code/datacoin-hp/src/key.h:85:16: note: in instantiation of function template specialization 'Hash<std::1::__wrap_iter<const unsigned char > >' requested here return Hash(vchPubKey.begin(), vchPubKey.end()); ^ /usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here unsigned char SHA256(const unsigned char d, size_t n,unsigned char md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ In file included from alert.cpp:12: In file included from /Users/davidfisher/Code/datacoin-hp/src/key.h:14: /Users/davidfisher/Code/datacoin-hp/src/hash.h:20:5: warning: 'SHA256' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations] SHA256((pbegin == pend ? pblank : (unsigned char)&pbegin[0]), (pend - pbegin) * sizeof(pbegin[0]), (unsigned char_)&hash1); ^ /Users/davidfisher/Code/datacoin-hp/src/net.h:423:24: note: in instantiation of function template specialization 'Hash<std::1::wrap_iter<char > >' requested here uint256 hash = Hash(ssSend.begin() + CMessageHeader::HEADER_SIZE, ssSend.end()); ^ /usr/include/openssl/sha.h:150:16: note: 'SHA256' declared here unsigned char SHA256(const unsigned char d, size_t n,unsigned char md) DEPRECATED_IN_MAC_OS_X_VERSION_10_7_ANDLATER; ^ 17 warnings and 2 errors generated. make: ** [obj/alert.o] Error 1 davids-mbp:src davidfisher$ Reply to this email directly or view it on GitHub< https://github.com/foo1inge/datacoin-hp/issues/1#issuecomment-31186924> .
Reply to this email directly or view it on GitHubhttps://github.com/foo1inge/datacoin-hp/issues/1#issuecomment-31187061 .
use macports to install berkeley db
port install db48
however i'm now stuck in linker error. missing symbols
Undefined symbols for architecture x86_64:
"boost::program_options::detail::common_config_file_iterator::common_config_file_iterator(std::1::set<std::1::basic_string<char, std::1::char_traits
i upgraded libboost and it compiled successfully on mac :)
Can you make a ready to run Mac wallet?
Trying to build using the makefile.osx but without much luck. Any ideas?