August 26, 2026, 12:16:43 PM

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 - dashed-slug

Pages: [1]
1
Hi again,

Apologies for reviving an old thread, but this post is directly related to this issue that I was facing a while ago, where I couldn't build the wallet on Ubuntu 16.10.

You were absolutely right akumaburn, the code builds perfectly on Ubuntu 16.04.

I got to try it again today because I want to finish up and test that RPC adapter for the Bitcoin and Altcoin Wallets WordPress plugin.

I decided to publish the Dockerfile in case anyone's interested: https://github.com/alex-georgiou/goldcoin-chest

Be careful not to use it in production before editing the .conf file, for security reasons!

regards,
Alex

2
I saw this several times when building the client on a Mac and I didn't use boost 1.58, but rather a more recent version.

before "array" in  net.h:11 add "boost::"

The error is this:  "net.cpp:61:1: error: reference to ‘array’ is ambiguous", which means that the compiler doesn't know which array class to use.  Be specific by specifying the boost namespace.

Thanks. This describes the specific programming error that the compiler chokes on.

Unfortunately I do not know C well enough (I know, embarrassing). If there are bugs in the code that cause the build to fail then I believe the development team can fix them better than I can.

I would just like to know how to run a known working build so I can communicate with the wallet from some PHP/WordPress code I'm writing.

This is not high priority. To give you some background, I am the developer of the Bitcoin and Altcoin Wallets WordPress plugin and after the last Goldcoin Sunday talk we decided that I would provide connectivity to Goldcoin from the Wallets plugin. This will give Goldcoin users access to all my other plugins that provide other payment gateways (WooCommerce e-shops, Events Manager bookings, and more to come) For most merchants and shop owners, connectivity will go through a cloud wallet service that we have agreed on, but eventually I would still like to be able to let larger shops connect to the daemon through the RPC API. To do this I will need a running instance of the daemon that I can use for testing.

I used the head of the master branch. Is there perhaps a more stable tag you could recommend?

Thanks and regards
Alex

3
Thanks to both of you for the help.

I've managed to install the correct boost library version with:

Code: [Select]
sudo add-apt-repository "deb http://cz.archive.ubuntu.com/ubuntu xenial main universe"
sudo apt update

Code: [Select]
And now the library is available:
apt-cache madison libboost-all-dev
libboost-all-dev |   1.61.0.2 | http://archive.ubuntu.com/ubuntu yakkety/universe amd64 Packages
libboost-all-dev | 1.58.0.1ubuntu1 | http://cz.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
boost-defaults |   1.61.0.2 | http://archive.ubuntu.com/ubuntu yakkety/main Sources

so I installed the correct version with:

Code: [Select]
sudo apt install libboost-all-dev=1.58.0.1ubuntu1
however building still fails. This is what I did:

Code: [Select]
git clone https://github.com/goldcoin/goldcoin
cd goldcoin/src
mkdir obj
make -f makefile.unix  USE_IPV6=1 USE_UPNP=1 USE_QRCODE=1 64BIT=1 RELEASE=1

Compilation fails with:

Code: [Select]
net.cpp:61:1: error: reference to ‘array’ is ambiguous
 array<int, THREAD_MAX> vnThreadsRunning;
 ^~~~~
In file included from net.h:11:0,
                 from main.h:11,
                 from db.h:10,
                 from net.cpp:9:
/usr/include/boost/array.hpp:60:11: note: candidates are: template<class T, long unsigned int N> class boost::array
     class array {
           ^~~~~
In file included from /usr/include/c++/6/tuple:39:0,
                 from /usr/include/c++/6/bits/stl_map.h:63,
                 from /usr/include/c++/6/map:61,
                 from util.h:19,
                 from bignum.h:14,
                 from main.h:10,
                 from db.h:10,
                 from net.cpp:9:
/usr/include/c++/6/array:90:12: note:                 template<class _Tp, long unsigned int _Nm> struct std::array
     struct array
            ^~~~~
makefile.unix:153: recipe for target 'obj/net.o' failed
make: *** [obj/net.o] Error 1

The master branch was on the 54a47e7 commit at the time.

what's more, the wallet binaries still don't find the libboost_system.so.1.58.0 library. Maybe an LD_LIBRARY_PATH issue?

Any ideas?

4
Hi, I'm trying to run the wallet on my linux machine:

Code: [Select]
$ lsb_release -r
Release: 16.10

It complains that the libboost-system library 1.58.0 is not there

Code: [Select]
$ ./goldcoind
./goldcoind: error while loading shared libraries: libboost_system.so.1.58.0: cannot open shared object file: No such file or directory

However the repositories don't have this version.

Code: [Select]
$ apt search libboost-system
Sorting... Done
Full Text Search... Done
libboost-system-dev/yakkety,now 1.61.0.2 amd64 [installed]
  Operating system (e.g. diagnostics support) library (default version)

libboost-system1.54.0/now 1.54.0-4ubuntu3.1 amd64 [installed,local]
  Operating system (e.g. diagnostics support) library

libboost-system1.60-dev/yakkety 1.60.0+dfsg-6 amd64
  Operating system (e.g. diagnostics support) library

libboost-system1.60.0/yakkety 1.60.0+dfsg-6 amd64
  Operating system (e.g. diagnostics support) library

libboost-system1.61-dev/yakkety,now 1.61.0+dfsg-2.1 amd64 [installed,automatic]
  Operating system (e.g. diagnostics support) library

libboost-system1.61.0/yakkety,now 1.61.0+dfsg-2.1 amd64 [installed,automatic]
  Operating system (e.g. diagnostics support) library

I'm still trying to figure out how to install the right library version but in the meantime I thought I'd post this here because I'm guessing Ubuntu 16.10 is something a lot of folks use?


Pages: [1]