Comments (5)
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.
It works, thanks Jonas!
from elements.
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.
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.
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)
- issueasset: issuance is always blinded HOT 2
- RPC example or tutorial opcodes enabled by liquid HOT 1
- Write and sign custom transaction code HOT 2
- Can´t mint tokens HOT 1
- Can't enable coin control features HOT 5
- Given claim_script does not match the given Bitcoin transaction. HOT 9
- signmessage HOT 1
- Wallet migration fails with confidential transactions HOT 8
- wallet managed by elements-cli receives tx with tokens but doesn't process them (not in the locally parsed TX, not in the balance) HOT 2
- Received funds appear in listreceivedbyaddress, but are not taken into account for the wallet balance and cannot be transferred
- Support for Jade hardware wallet HOT 3
- Confidential peg-in transaction HOT 11
- Sending transactions with 0.01 instead of 0.1 sats/vbyte
- `bad optional access` error at startup HOT 3
- fuzz crash in coins.h
- Refund after next dynafed transition
- add multi-asset support to new `sendall` RPC
- Can't claim peg-in because of invoking getpeginaddress during initial sync
- I would like to issue asset into my wallet HOT 3
- elements-qt 23.2.2rc1 and master crash at shutdown on M1 macOS
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elements.