taw00 / dashcore-rpm

Dash for Fedora, CentOS, and Red Hat Enterprise Linux
MIT License
8 stars 8 forks source link

Dash Core does not build with boost 1.73 #3

Closed taw00 closed 3 years ago

taw00 commented 3 years ago

Dash core does not build with boost 1.73 (which is what ships with Fedora 33)

ERROR # 1

CXX      libdash_server_a-httpserver.o
httpserver.cpp:78:10: error: 'deque' in namespace 'std' does not name a template type
   78 |     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:96:13: error: 'queue' was not declared in this scope; did you mean 'Enqueue'?
   96 |         if (queue.size() >= maxDepth) {
      |             ^~~~~
      |             Enqueue
httpserver.cpp:99:9: error: 'queue' was not declared in this scope; did you mean 'Enqueue'?
   99 |         queue.emplace_back(std::unique_ptr<WorkItem>(item));
      |         ^~~~~
      |         Enqueue
httpserver.cpp: In member function 'void WorkQueue<WorkItem>::Run()':
httpserver.cpp:110:35: error: 'queue' was not declared in this scope; did you mean 'Enqueue'?
  110 |                 while (running && queue.empty())
      |                                   ^~~~~
      |                                   Enqueue
httpserver.cpp:114:31: error: 'queue' was not declared in this scope; did you mean 'Enqueue'?
  114 |                 i = std::move(queue.front());
      |                               ^~~~~
      |                               Enqueue
make[2]: *** [Makefile:7333: libdash_server_a-httpserver.o] Error 1
make[2]: Leaving directory '/builddir/build/BUILD/dashcore-0.16/dash-0.16.1.1/src'
make[1]: *** [Makefile:12157: all-recursive] Error 1
make[1]: Leaving directory '/builddir/build/BUILD/dashcore-0.16/dash-0.16.1.1/src'
make: *** [Makefile:737: all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.0Bk7Vs (%build)
    Bad exit status from /var/tmp/rpm-tmp.0Bk7Vs (%build)

ERROR # 2

bind.cpp ... note: '#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated.
taw00 commented 3 years ago

Fixed with commit 160524a2b42bdcf23cfa9898f7e0116789a7fea9