AvianNetwork/Avian

Cross compile for x86_64-win fails to compile without "--disable-shared"

Opened this issue · 0 comments

x86_64-win with PoW cache from #168 will not build unless --disable-shared is passed to the configure script. This is the error:

/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-block.o:block.cpp:(.text+0x1576): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text+0xa34): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text+0xe2a): undefined reference to `ArgsManager::GetArg(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long long) const'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text+0xeb0): undefined reference to `ArgsManager::GetArg(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, long long) const'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text+0x131b): undefined reference to `GetDataDir(bool)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_Z5errorIJA5_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbPKcDpRKT_[_Z5errorIJA5_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbPKcDpRKT_]+0x3f1): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_Z5errorIJA5_cPKcEEbS2_DpRKT_[_Z5errorIJA5_cPKcEEbS2_DpRKT_]+0x3f1): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_Z5errorIJA5_cEEbPKcDpRKT_[_Z5errorIJA5_cEEbPKcDpRKT_]+0x107): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_Z5errorIJA6_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbPKcDpRKT_[_Z5errorIJA6_cNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEbPKcDpRKT_]+0x3f1): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_Z5errorIJA6_cPKcEEbS2_DpRKT_[_Z5errorIJA6_cPKcEEbS2_DpRKT_]+0x3f1): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE5WriteERKS0_[_ZN7CFlatDBI9CPowCacheE5WriteERKS0_]+0x33): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE5WriteERKS0_[_ZN7CFlatDBI9CPowCacheE5WriteERKS0_]+0x86): undefined reference to `Params()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE5WriteERKS0_[_ZN7CFlatDBI9CPowCacheE5WriteERKS0_]+0x247): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE5WriteERKS0_[_ZN7CFlatDBI9CPowCacheE5WriteERKS0_]+0x30b): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE5WriteERKS0_[_ZN7CFlatDBI9CPowCacheE5WriteERKS0_]+0x478): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE5WriteERKS0_[_ZN7CFlatDBI9CPowCacheE5WriteERKS0_]+0x7a0): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x31): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x569): undefined reference to `Params()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x5b3): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x685): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x793): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x885): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x986): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4ReadERS0_b[_ZN7CFlatDBI9CPowCacheE4ReadERS0_b]+0x14d3): undefined reference to `GetTimeMillis()'
make[2]: Leaving directory '/home/runner/work/Avian/Avian/src'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x36): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x115): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x240): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x37d): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x438): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
make[1]: Leaving directory '/home/runner/work/Avian/Avian/src'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x52b): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x619): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x71b): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x8e3): undefined reference to `LogPrintStr(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.text$_ZN7CFlatDBI9CPowCacheE4DumpERS0_[_ZN7CFlatDBI9CPowCacheE4DumpERS0_]+0x1716): undefined reference to `GetTimeMillis()'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.rdata$.refptr.logCategories[.refptr.logCategories]+0x0): undefined reference to `logCategories'
/usr/bin/x86_64-w64-mingw32-ld: primitives/.libs/libavianconsensus_la-powcache.o:powcache.cpp:(.rdata$.refptr.gArgs[.refptr.gArgs]+0x0): undefined reference to `gArgs'
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:5831: libavianconsensus.la] Error 1
make[1]: *** [Makefile:15961: install-recursive] Error 1
make: *** [Makefile:753: install-recursive] Error 1