Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - HardFork

Pages: 1 [2]
16
Technical Support / Re: build errors
« on: February 14, 2014, 04:00:08 am »
Here is the command I ran manually which succeeded:

/usr/bin/c++   -O2 -g -DNDEBUG    CMakeFiles/bts_wallet.dir/main.cpp.o CMakeFiles/bts_wallet.dir/chain_connection.cpp.o  -o bts_wallet -rdynamic ../libbshare.a -lrt -lreadline -ldl ../fc/libfc.a ../fc/vendor/easylzma/src/libeasylzma_static.a -Wl,-Bstatic -lboost_thread-mt -lboost_date_time-mt -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_signals-mt -lboost_serialization-mt -lboost_chrono-mt -lboost_unit_test_framework-mt -lboost_context-mt -lboost_coroutine -lssl -lcrypto ../vendor/miniupnp/miniupnpc/libminiupnpc.a ../vendor/leveldb-1.12.0/libleveldb.a -Wl,-Bdynamic -lpthread -ldb_cxx -lz -ldl

Note that there is an "-ldl" early in the command (presumably from the ${CMAKE_DL_LIBS} in CMakeLists.txt) and that I had to add "-ldl" again at the end.

Need to get this to happen using only CMakeLists.txt

17
Technical Support / Re: build errors
« on: February 14, 2014, 03:55:52 am »
I already figured out to try that and it didn't work.  (It turns out dl was already there anyway because of ${CMAKE_DL_LIBS} so me adding dl just caused it to appear twice)

I ran: make VERBOSE=1 to find out the command that was failing and if I manually run that /usr/bin/c++ command, adding -ldl at the very end, it succeeds.  So how can we get CMakeLists.txt put dl at the very end of the /usr/bin/c++ command?

18
Technical Support / Re: build errors
« on: February 14, 2014, 03:28:47 am »
OK... I had previously added pthread to several CMakeLists.txt files but I wanted to narrow it down, so I removed them all and added them back one by one.

It turns out the only change needed to get past the "undefined reference to `pthread_once'" error was to add the line:

    target_link_libraries( leveldb pthread )

to the end of "BitShares/vendor/leveldb-1.12.0/CMakeLists.txt"

(Previously there was no target_link_libraries at all in that file)

19
Technical Support / Re: build errors
« on: February 14, 2014, 03:18:58 am »
OK, I finally got past it by using pthread (not ${pthread})

Now I have a new error:
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
(.text+0x11): undefined reference to `dlopen'

20
Technical Support / Re: build errors
« on: February 14, 2014, 03:07:56 am »
I tried both beginning and ending and i'm still getting the same problem.

I also ran: make VERBOSE=1 to capture the command that caused the errors:

/usr/bin/c++   -O2 -g -DNDEBUG    CMakeFiles/bts_server.dir/server.cpp.o CMakeFiles/bts_server.dir/chain_connection.cpp.o CMakeFiles/bts_server.dir/chain_server.cpp.o  -o bts_server -rdynamic ../libbshare.a -lrt -ldl ../fc/libfc.a ../fc/vendor/easylzma/src/libeasylzma_static.a -Wl,-Bstatic -lboost_thread-mt -lboost_date_time-mt -lboost_system-mt -lboost_filesystem-mt -lboost_program_options-mt -lboost_signals-mt -lboost_serialization-mt -lboost_chrono-mt -lboost_unit_test_framework-mt -lboost_context-mt -lboost_coroutine -lssl -lcrypto ../vendor/miniupnp/miniupnpc/libminiupnpc.a ../vendor/leveldb-1.12.0/libleveldb.a -Wl,-Bdynamic -ldb_cxx -lz

but the command doesn't even have -lpthread in it, so it doesn't seem like my changing the CMakeLists.txt  had any effect.  I even tried adding -lpthread to the command manually (both at the beginning and end) and that didn't help... still the same error

21
Technical Support / Re: build errors
« on: February 14, 2014, 02:02:56 am »
bts_server and bts_wallet

22
Technical Support / Re: cmake 2.8.12 needed to build
« on: February 14, 2014, 01:34:38 am »
I ended up building cmake from source today to get around that.

23
Technical Support / Re: build errors
« on: February 14, 2014, 01:28:46 am »
I tried both pthread and ${pthread} and got the same problem each time.

24
Technical Support / build errors
« on: February 13, 2014, 10:19:28 pm »
I followed the build instructions.

When I run: make

I get:

../vendor/leveldb-1.12.0/libleveldb.a(port_posix.cc.o): In function `leveldb::port::InitOnce(int*, void (*)())':
/home/tzadik/BitShares/vendor/leveldb-1.12.0/port/port_posix.cc:50: undefined reference to `pthread_once'

25
General Discussion / Re: new dev -- please send me some test shares
« on: February 09, 2014, 01:10:28 am »
bump

26
General Discussion / new dev -- please send me some test shares
« on: February 04, 2014, 02:37:31 am »
Hi all... I'm a new dev just getting started on BitShares.  I have the code built and am running bts_server.  I also ran bts_wallet and created an address (Egn3ggkuVw4D2fMVaKw7iesCFmT).   Can someone send me some test shares?

Pages: 1 [2]