Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: Include <memory> for std::unique_ptr #12859

Merged
merged 1 commit into from
Apr 5, 2018

Conversation

luke-jr
Copy link
Member

@luke-jr luke-jr commented Apr 2, 2018

Not sure why all these includes were missing, but it's breaking builds for some users:

https://bugs.gentoo.org/show_bug.cgi?id=652142

(Added to all files with a reference to std::unique_ptr)

@randolf
Copy link
Contributor

randolf commented Apr 2, 2018

This doesn't compile on NetBSD 7.0 (64-bit), but the unmodified branch builds as expected. It seems that these updates prevent the check for "-ldb_cxx" from succeeding, even though Berkeley DB4 is already installed.

STEPS

git clone https://www.github.com/luke-jr/bitcoin
cd bitcoin
git checkout incl_memory
./autogen.sh
./configure CPPFLAGS="-I/usr/pkg/include" LDFLAGS="-L/usr/pkg/lib" BOOST_CPPFLAGS="-I/usr/pkg/include" BOOST_LDFLAGS="-L/usr/pkg/lib"

OUTCOME

checking for Berkeley DB C++ headers... /usr/pkg/include/db4/
checking for main in -ldb_cxx-4.8... no
checking for main in -ldb_cxx... no
configure: error: libdb_cxx missing, Bitcoin Core requires this library for wallet functionality (--disable-wallet to disable wallet functionality)

If a change is needed for the ./configure command, I'd be happy to add it to the documentation for the NetBSD installation instructions to accommodate this Pull Request.

Thanks.

@luke-jr
Copy link
Member Author

luke-jr commented Apr 2, 2018

Don't use PR branches directly (this one is based on the last common commit between 0.15 and master, for maximum merge-compatibility). Merge it into master to test.

(This shouldn't change anything during configure.)

@randolf
Copy link
Contributor

randolf commented Apr 2, 2018

@luke-jr I'm still learning how to use git, et al., so I welcome any suggestions on the proper way to attempt to compile with your changes.

@luke-jr
Copy link
Member Author

luke-jr commented Apr 2, 2018

git clone https://www.github.com/bitcoin/bitcoin
cd bitcoin
git fetch https://www.github.com/luke-jr/bitcoin incl_memory
git merge FETCH_HEAD
./autogen.sh
./configure CPPFLAGS="-I/usr/pkg/include" LDFLAGS="-L/usr/pkg/lib" BOOST_CPPFLAGS="-I/usr/pkg/include" BOOST_LDFLAGS="-L/usr/pkg/lib"

@randolf
Copy link
Contributor

randolf commented Apr 2, 2018

ACK.

@luke-jr Thanks, that worked, and it compiled successfully on NetBSD.

@luke-jr
Copy link
Member Author

luke-jr commented Apr 2, 2018

@fanquake This should be "Bug", not "Refactoring"...

@fanquake fanquake added Bug and removed Refactoring labels Apr 2, 2018
@promag
Copy link
Contributor

promag commented Apr 3, 2018

utACK a5bca13.

@sipa
Copy link
Member

sipa commented Apr 3, 2018

utACK a5bca13

@practicalswift
Copy link
Contributor

utACK a5bca13. i686-w64-mingw32 build timeout is unrelated.

@laanwj laanwj merged commit a5bca13 into bitcoin:master Apr 5, 2018
@laanwj laanwj added this to the 0.16.2 milestone Jun 13, 2018
fanquake pushed a commit to fanquake/bitcoin that referenced this pull request Jun 13, 2018
@fanquake fanquake mentioned this pull request Jun 13, 2018
@fanquake
Copy link
Member

Added to #13455 for backport.

laanwj added a commit that referenced this pull request Jul 9, 2018
9fd3e00 depends: Update Qt download url (fanquake)
f7401c8 Fix parameter count check for importpubkey. (Kristaps Kaupe)
cbd2f70 expose CBlockIndex::nTx in getblock(header) (Gregory Sanders)
ce8aa54 Add Windows shutdown handler (Chun Kuan Lee)
18b0c69 Bugfix: Include <memory> for std::unique_ptr (Luke Dashjr)

Pull request description:

  Backports:
  * #12859 Bugfix: Include <memory> for std::unique_ptr
  * #13131 Add Windows shutdown handler
  * #13451 rpc: expose CBlockIndex::nTx in getblock(header)
  * #13507 RPC: Fix parameter count check for importpubkey
  * #13544 depends: Update Qt download url

  to the 0.16 branch.

Tree-SHA512: eeaec52d001d5c81e67dda3a2d3fee7a9445e569366e597b18e81d802c1b7f89e545afd53d094740c37c1714050304979398b9860144454d3a5cb5abc9e9eaca
HashUnlimited pushed a commit to chaincoin/chaincoin that referenced this pull request Jan 11, 2019
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jun 10, 2020
a5bca13 Bugfix: Include <memory> for std::unique_ptr (Luke Dashjr)

Pull request description:

  Not sure why all these includes were missing, but it's breaking builds for some users:

  https://bugs.gentoo.org/show_bug.cgi?id=652142

  (Added to all files with a reference to `std::unique_ptr`)

Tree-SHA512: 8a2c67513ca07b9bb52c34e8a20b15e56f8af2530310d9ee9b0a69694dd05e02e7a3683f14101a2685d457672b56addec591a0bb83900a0eb8e2a43d43200509
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jun 10, 2020
a5bca13 Bugfix: Include <memory> for std::unique_ptr (Luke Dashjr)

Pull request description:

  Not sure why all these includes were missing, but it's breaking builds for some users:

  https://bugs.gentoo.org/show_bug.cgi?id=652142

  (Added to all files with a reference to `std::unique_ptr`)

Tree-SHA512: 8a2c67513ca07b9bb52c34e8a20b15e56f8af2530310d9ee9b0a69694dd05e02e7a3683f14101a2685d457672b56addec591a0bb83900a0eb8e2a43d43200509
PastaPastaPasta pushed a commit to PastaPastaPasta/dash that referenced this pull request Jun 10, 2020
a5bca13 Bugfix: Include <memory> for std::unique_ptr (Luke Dashjr)

Pull request description:

  Not sure why all these includes were missing, but it's breaking builds for some users:

  https://bugs.gentoo.org/show_bug.cgi?id=652142

  (Added to all files with a reference to `std::unique_ptr`)

Tree-SHA512: 8a2c67513ca07b9bb52c34e8a20b15e56f8af2530310d9ee9b0a69694dd05e02e7a3683f14101a2685d457672b56addec591a0bb83900a0eb8e2a43d43200509
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants