Code Monkey home page Code Monkey logo

Comments (5)

jonasnick avatar jonasnick commented on August 28, 2024 2

Hi @wirion. I'm also using Arch and I have the same problem. You can work around it by building with C++03 and fixing leveldb's build system (which was replaced upstream).

leveldb.patch

diff --git a/src/leveldb/Makefile b/src/leveldb/Makefile
index 2bd2cad..50e360a 100644
--- a/src/leveldb/Makefile
+++ b/src/leveldb/Makefile
@@ -21,7 +21,7 @@ $(shell CC="$(CC)" CXX="$(CXX)" TARGET_OS="$(TARGET_OS)" \
 include build_config.mk

 CFLAGS += -I. -I./include $(PLATFORM_CCFLAGS) $(OPT)
-CXXFLAGS += -I. -I./include $(PLATFORM_CXXFLAGS) $(OPT)
+CXXFLAGS += -I. -I./include $(OPT) $(PLATFORM_CXXFLAGS)

 LDFLAGS += $(PLATFORM_LDFLAGS)
 LIBS += $(PLATFORM_LIBS)

Then run:

make clean
./autogen.sh
CXXFLAGS='-std=c++03' ./configure --without-miniupnpc
git apply leveldb.patch
make

from elements.

wirion avatar wirion commented on August 28, 2024 1

It works, thanks Jonas!

from elements.

TomMcCabe avatar TomMcCabe commented on August 28, 2024

Can you tell us what commands you ran to build? My concern being the Arch example builds without miniupnpc...https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md#setup-and-build-example-arch-linux

from elements.

wirion avatar wirion commented on August 28, 2024

I was using

./autogen.sh && ./configure && make

without modifiers.

I see there was a change in API from 1.9 to 2.0 which did change the upnpDiscover function. Ubuntu seems to use miniupnpc 1.9 for the moment and Arch uses miniupnpc 2.0.

I rebuilt by adding --without-miniupnpc only and got past the upnpDiscover errors but still get errors about ambiguous operators.

chainparams.cpp: In constructor ‘CMainParams::CMainParams(CScript)’:
chainparams.cpp:145:51: error: ambiguous overload for ‘operator=’ (operand types are ‘std::vector<unsigned char>’ and ‘boost::assign_detail::generic_list<int>’)
         base58Prefixes[PUBKEY_ADDRESS] = list_of(0);

I've got boost 1.61 and I've tried to build boost 1.58 which is what is on Ubuntu's xenial xerus, but got more errors during that compilation.

from elements.

wirion avatar wirion commented on August 28, 2024

Just for reference, bitcoin/bitcoin's master builds fine on my system. I see they accounted for the new dependency. Are there plans to rebase elements off a newer bitcoin release?

from elements.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.