Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703228 - net-p2p/bitcoind-18.0: httpserver.cpp:74:10: error: ‘deque’ in namespace ‘std’ does not name a template type
Summary: net-p2p/bitcoind-18.0: httpserver.cpp:74:10: error: ‘deque’ in namespace ‘std...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Luke-Jr
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: boost-1.72
  Show dependency tree
 
Reported: 2019-12-17 18:50 UTC by Craig Andrews
Modified: 2019-12-26 12:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,36.78 KB, text/x-log)
2019-12-17 18:51 UTC, Craig Andrews
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Andrews gentoo-dev 2019-12-17 18:50:01 UTC
* Package:    net-p2p/bitcoind-0.18.0
 * Repository: gentoo
 * Maintainer: luke-jr+gentoobugs@utopios.org proxy-maint@gentoo.org
 * USE:        abi_x86_64 amd64 asm bitcoin_policy_rbf elibc_glibc kernel_linux system-leveldb upnp userland_GNU wallet
 * FEATURES:   ccache network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox


From build.log:
---
httpserver.cpp:74:10: error: ‘deque’ in namespace ‘std’ does not name a template type
   74 |     std::deque<std::unique_ptr<WorkItem>> queue;
      |          ^~~~~
httpserver.cpp:33:1: note: ‘std::deque’ is defined in header ‘<deque>’; did you forget to ‘#include <deque>’?
   32 | #include <support/events.h>
  +++ |+#include <deque>
   33 | 
httpserver.cpp: In member function ‘bool WorkQueue<WorkItem>::Enqueue(WorkItem*)’:
httpserver.cpp:92:13: error: ‘queue’ was not declared in this scope; did you mean ‘Enqueue’?
   92 |         if (queue.size() >= maxDepth) {
      |             ^~~~~
      |             Enqueue
httpserver.cpp:95:9: error: ‘queue’ was not declared in this scope; did you mean ‘Enqueue’?
   95 |         queue.emplace_back(std::unique_ptr<WorkItem>(item));
      |         ^~~~~
      |         Enqueue
httpserver.cpp: In member function ‘void WorkQueue<WorkItem>::Run()’:
httpserver.cpp:106:35: error: ‘queue’ was not declared in this scope; did you mean ‘Enqueue’?
  106 |                 while (running && queue.empty())
      |                                   ^~~~~
      |                                   Enqueue
httpserver.cpp:110:31: error: ‘queue’ was not declared in this scope; did you mean ‘Enqueue’?
  110 |                 i = std::move(queue.front());
      |                               ^~~~~
      |                               Enqueue
make[2]: *** [Makefile:7898: libbitcoin_server_a-httpserver.o] Error 1
---

Reproducible: Always
Comment 1 Craig Andrews gentoo-dev 2019-12-17 18:51:57 UTC
Created attachment 599958 [details]
build.log
Comment 2 Luke-Jr 2019-12-17 19:07:03 UTC
Should I adapt DEPEND(s) of existing versions, or just address the build issue on bump?
Comment 3 Craig Andrews gentoo-dev 2019-12-17 19:11:23 UTC
(In reply to Luke-Jr from comment #2)
> Should I adapt DEPEND(s) of existing versions, or just address the build
> issue on bump?

You can just address the build issue on bump :)
If it's fixed in 0.19, you can just bump to that - no need for a 0.18-r1 fixing this issue in that case.
Comment 4 Larry the Git Cow gentoo-dev 2019-12-26 11:57:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09466c2700ea5873259b648537738131d325d54a

commit 09466c2700ea5873259b648537738131d325d54a
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2019-12-26 11:56:49 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2019-12-26 11:56:49 +0000

    net-p2p/bitcoind: Add patch for missing <deque> include
    
    Closes: https://bugs.gentoo.org/703228
    Package-Manager: Portage-2.3.83, Repoman-2.3.20
    Signed-off-by: David Seifert <soap@gentoo.org>

 net-p2p/bitcoind/bitcoind-0.16.3.ebuild                      |  1 +
 net-p2p/bitcoind/bitcoind-0.17.1.ebuild                      |  1 +
 net-p2p/bitcoind/bitcoind-0.18.0.ebuild                      |  1 +
 net-p2p/bitcoind/files/bitcoind-0.16.3-missing-include.patch | 10 ++++++++++
 4 files changed, 13 insertions(+)
Comment 5 David Seifert gentoo-dev 2019-12-26 12:00:21 UTC
I've added a quick patch in order to stable boost-1.72 soon. Add 0.19.0 at your leisure.