There no reasons why the libboost-system-dev package could be required.
build: Drop boost-system dependency #21066
pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:210202-system changing 9 files +7 −132-
hebasto commented at 1:04 PM on February 2, 2021: member
- fanquake added the label Build system on Feb 2, 2021
- hebasto force-pushed on Feb 2, 2021
-
fanquake commented at 1:28 PM on February 2, 2021: member
Actually, I looked at this too quickly. This doesn't modify/remove any of the
boost::system::error_code ec;usage in our code? - hebasto marked this as a draft on Feb 2, 2021
-
hebasto commented at 1:34 PM on February 2, 2021: member
Actually, I looked at this too quickly. This doesn't modify/remove any of the
boost::system::error_code ec;usage in our code?$ git grep -n -e 'boost::system::error_code' src/wallet/db.cpp:17: boost::system::error_code ec; src/wallet/db.cpp:81: boost::system::error_code ec; src/wallet/db.cpp:105: boost::system::error_code ec; src/wallet/load.cpp:23: boost::system::error_code errorInteresting, why I have no errors during compiling and cross-compiling with depends?
-
build: Drop boost-system dependency 3ca25d9117
- hebasto force-pushed on Feb 2, 2021
-
fanquake commented at 2:02 PM on February 2, 2021: member
Interesting, why I have no errors during compiling and cross-compiling with depends?
If you try and build using Boost < 1.69.0, it will fail to link (1f65eac0b809ca4441cfaa6c9da4b9d3e47581d3):
make[2]: Leaving directory '/bitcoin' CXXLD bitcoind /usr/bin/ld: bitcoind-bitcoind.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv' //usr/lib/x86_64-linux-gnu/libboost_system.so.1.62.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:4980: recipe for target 'bitcoind' failed make[1]: *** [bitcoind] Error 1 AR libbitcoin_wallet.a CXXLD bitcoind /usr/bin/ld: bitcoind-bitcoind.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv' //usr/lib/x86_64-linux-gnu/libboost_system.so.1.65.1: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:4980: recipe for target 'bitcoind' failed make[1]: *** [bitcoind] Error 1See the Boost System revision history:
Boost 1.69.0 Boost.System is now header-only. A stub library is still built for compatibility, but linking to it is no longer necessary.
-
laanwj commented at 6:08 PM on February 2, 2021: member
$ git grep -n -e 'boost::system::error_code'
Right-I don't think getting rid of
boost::systemmakes sense beforeboost::filesystem. The error codes fromboost::systemare used internally all over the place. - hebasto closed this on Feb 2, 2021
-
DrahtBot commented at 6:37 PM on February 2, 2021: member
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
Reviewers, this pull request conflicts with the following ones:
- #21064 (refactor: use std::shared_mutex & remove Boost Thread by fanquake)
- #20744 ([POC] Use std::filesystem. Remove Boost Filesystem & System by fanquake)
- #16546 (External signer support - Wallet Box edition by Sjors)
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
- DrahtBot locked this on Aug 16, 2022