Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 2019 12:16:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 242722] net-p2p/litecoin: fix build on GCC architectures
Message-ID:  <bug-242722-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D242722

            Bug ID: 242722
           Summary: net-p2p/litecoin: fix build on GCC architectures
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: pkubaj@FreeBSD.org
                CC: hsw@bitmark.com
                CC: hsw@bitmark.com
             Flags: maintainer-feedback?(hsw@bitmark.com)

Created attachment 210056
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D210056&action=
=3Dedit
patch

Recent upgrade of some dependency causes GCC to fail to build this port:
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 |=20
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() >=3D 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 y=
ou
mean 'Enqueue'?
  106 |                 while (running && queue.empty())
      |                                   ^~~~~
      |                                   Enqueue
httpserver.cpp:110:31: error: 'queue' was not declared in this scope; did y=
ou
mean 'Enqueue'?
  110 |                 i =3D std::move(queue.front());
      |                               ^~~~~
      |                               Enqueue

Include deque in httpserver.c to fix it.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-242722-7788>