Hello all.
I am trying to build the ybcoin wallet on a headless server but am having some issues. Any help would be appreciated.
The github repo is here:
https://github.com/ybc2/ybc2After executing:
make -f makefile.unix USE_UPNP=-
I get the following error:
g++ -pthread -Wall -Wextra -Wno-sign-compare -Wno-invalid-offsetof -Wno-unused-parameter -Wformat -Wformat-security -g -DBOOST_SPIRIT_THREADSAFE -I/usr/local/src/ybc2/src -I/usr/local/src/ybc2/src/obj -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -rdynamic -o ybsharesd obj/scanbalance.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/irc.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/script.o obj/util.o obj/wallet.o obj/walletdb.o obj/noui.o obj/kernel.o obj/distribution.o -Wl,-Bdynamic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread-mt -l db_cxx -l ssl -l crypto -l rt -Wl,-Bdynamic -l z -l dl -l pthread
/usr/bin/ld: cannot find -lboost_thread-mt
collect2: error: ld returned 1 exit status
make: *** [ybsharesd] Error 1
On the same machine I successfully built various coin daemons (like ppcoind, vpncoind, clamd...etc), all of them have the same dependency on the libboost library, but this one errors out for some reason.
So I will answer my own post.
The solution for me was to remove the
-mt ending in boost_thread-mt in the 33rd line of the makefile.unix file.
Before:
LIBS += \
LIBS += \
-Wl,-B$(LMODE) \
-l boost_system$(BOOST_LIB_SUFFIX) \
-l boost_filesystem$(BOOST_LIB_SUFFIX) \
-l boost_program_options$(BOOST_LIB_SUFFIX) \
-l boost_thread
-mt$(BOOST_LIB_SUFFIX) \
-l db_cxx$(BDB_LIB_SUFFIX) \
-l ssl \
-l crypto \
-l rt
After:
LIBS += \
-Wl,-B$(LMODE) \
-l boost_system$(BOOST_LIB_SUFFIX) \
-l boost_filesystem$(BOOST_LIB_SUFFIX) \
-l boost_program_options$(BOOST_LIB_SUFFIX) \
-l boost_thread$(BOOST_LIB_SUFFIX) \
-l db_cxx$(BDB_LIB_SUFFIX) \
-l ssl \
-l crypto \
-l rt
After the change it compiled successfully. Hope this helps anyone
This thread seems dead anyway haha