pyroscope / rtorrent-ps

:art: Extended rTorrent distribution with a fully customizable canvas and colors, other feature additions, and complete docs.
http://rtorrent-ps.readthedocs.io/
GNU General Public License v2.0
465 stars 43 forks source link

Latest, unable to build centos 6.5. #121

Closed stevezau closed 4 years ago

stevezau commented 5 years ago

Hello, trying to upgrade to latest version.

i'm stuck on centos 6.5, old i know. Not sure if you still support it as getting errors.

Installing from source, Running ./build.all all.

It failed with an error complaining that gcc unknown option -std=c++11

Looking at https://github.com/pyroscope/rtorrent-ps/blob/master/build.sh#L180. this is due to the old version of gcc on centos 6.5.

media@srv [~/src/rtorrent-ps]# gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)

Researching, i tried to force -std=c++0x. But now i'm getting

/bin/sh ../../../libtool --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../..  -I. -I./.. -I./../.. -I../../.. -I /home/media/.local/rtorrent/0.9.6-PS-1.2-dev/include -pthread  -std=c++0x -I/usr/include -I/usr/include  -g -O2 -g -DDEBUG -fvisibility=hidden   -MT peer_list.lo -MD -MP -MF .deps/peer_list.Tpo -c -o peer_list.lo peer_list.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../.. -I. -I./.. -I./../.. -I../../.. -I /home/media/.local/rtorrent/0.9.6-PS-1.2-dev/include -pthread -std=c++0x -I/usr/include -I/usr/include -g -O2 -g -DDEBUG -fvisibility=hidden -MT peer_list.lo -MD -MP -MF .deps/peer_list.Tpo -c peer_list.cc  -fPIC -DPIC -o .libs/peer_list.o
mv -f .deps/peer_info.Tpo .deps/peer_info.Plo
mv -f .deps/peer.Tpo .deps/peer.Plo
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_algobase.h:66,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/algorithm:61,
                 from peer_list.cc:41:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_pair.h: In constructor ‘std::pair<_T1, _T2>::pair(_U1&&, _U2&&) [with _U1 = long int, _U2 = int, _T1 = torrent::extents_base<unsigned int, int, 256u, 8u>*, _T2 = int]’:
./../../torrent/utils/extents.h:54:   instantiated from ‘torrent::extents_base<Key, Tp, TableSize, TableBits>::extents_base(Key, unsigned int, Tp) [with Key = unsigned int, Tp = int, unsigned int TableSize = 256u, unsigned int TableBits = 8u]’
./../../torrent/utils/extents.h:111:   instantiated from ‘torrent::extents<Key, Tp, MaskBits, TableSize, TableBits>::extents() [with Key = unsigned int, Tp = int, unsigned int MaskBits = 32u, unsigned int TableSize = 256u, unsigned int TableBits = 8u]’
peer_list.cc:63:   instantiated from here
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_pair.h:90: error: invalid conversion from ‘long int’ to ‘torrent::extents_base<unsigned int, int, 256u, 8u>*’
gmake[4]: *** [peer_list.lo] Error 1
gmake[4]: *** Waiting for unfinished jobs....
mv -f .deps/connection_list.Tpo .deps/connection_list.Plo
gmake[4]: Leaving directory `/home/media/src/rtorrent-ps/libtorrent-0.13.6/src/torrent/peer'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/home/media/src/rtorrent-ps/libtorrent-0.13.6/src/torrent'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/media/src/rtorrent-ps/libtorrent-0.13.6/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/home/media/src/rtorrent-ps/libtorrent-0.13.6'
gmake: *** [all] Error 2

So i tried to upgrade to new dev toolset using https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/. I also reverted build.sh

Now getting errors

Any advice?


g++ -DHAVE_CONFIG_H -I. -I../..  -I. -I./.. -I../.. -I /home/media/.local/rtorrent/0.9.6-PS-1.2-dev/include -pthread  -std=c++11  -g -O2 -g -DDEBUG     -I/home/media/.local/rtorrent/0.9.6-PS-1.2-dev/include   -I/home/media/.local/rtorrent/0.9.6-PS-1.2-dev/include    -I/home/media/.local/rtorrent/0.9.6-PS-1.2-dev/include  -MT utils.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o utils.cc
In file included from canvas.h:43:0,
                 from canvas.cc:44:
attributes.h:54:2: error: #error "SysV or X/Open-compatible Curses header file required"
 #error "SysV or X/Open-compatible Curses header file required"
  ^~~~~
In file included from canvas.h:43:0,
                 from manager.cc:43:
attributes.h:54:2: error: #error "SysV or X/Open-compatible Curses header file required"
 #error "SysV or X/Open-compatible Curses header file required"
  ^~~~~
In file included from canvas.h:43:0,
                 from window.h:43,
                 from frame.cc:46:
attributes.h:54:2: error: #error "SysV or X/Open-compatible Curses header file required"
 #error "SysV or X/Open-compatible Curses header file required"
  ^~~~~
attributes.h:67:32: error: ‘A_NORMAL’ was not declared in this scope
   static const int a_normal  = A_NORMAL;
                                ^~~~~~~~
attributes.h:68:32: error: ‘A_BOLD’ was not declared in this scope
   static const int a_bold    = A_BOLD;
                                ^~~~~~
attributes.h:69:32: error: ‘A_REVERSE’ was not declared in this scope
   static const int a_reverse = A_REVERSE;
                                ^~~~~~~~~
In file included from canvas.cc:44:0:
canvas.h:73:3: error: ‘chtype’ does not name a type; did you mean ‘ctime’?
   chtype              get_background()                                        { return getbkgd(m_window); }
   ^~~~~~
   ctime
canvas.h:74:38: error: ‘chtype’ has not been declared
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                      ^~~~~~
canvas.h:79:36: error: ‘chtype’ has not been declared
   void                print_border(chtype ls, chtype rs,
                                    ^~~~~~
canvas.h:79:47: error: ‘chtype’ has not been declared
   void                print_border(chtype ls, chtype rs,
                                               ^~~~~~
canvas.h:80:36: error: ‘chtype’ has not been declared
                                    chtype ts, chtype bs,
                                    ^~~~~~
canvas.h:80:47: error: ‘chtype’ has not been declared
                                    chtype ts, chtype bs,
                                               ^~~~~~
canvas.h:81:36: error: ‘chtype’ has not been declared
                                    chtype tl, chtype tr,
                                    ^~~~~~
canvas.h:81:47: error: ‘chtype’ has not been declared
                                    chtype tl, chtype tr,
                                               ^~~~~~
canvas.h:82:36: error: ‘chtype’ has not been declared
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                    ^~~~~~
canvas.h:82:47: error: ‘chtype’ has not been declared
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                               ^~~~~~
canvas.h:93:40: error: ‘chtype’ does not name a type; did you mean ‘ctime’?
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                        ^~~~~~
                                        ctime
canvas.h:94:72: error: ‘chtype’ does not name a type; did you mean ‘ctime’?
   void                print_char(unsigned int x, unsigned int y, const chtype ch) { mvwaddch(m_window, y, x, ch); }
                                                                        ^~~~~~
                                                                        ctime
canvas.h:117:3: error: ‘WINDOW’ does not name a type; did you mean ‘_IOW’?
   WINDOW*             m_window;
   ^~~~~~
   _IOW
In file included from canvas.cc:44:0:
canvas.h: In destructor ‘display::Canvas::~Canvas()’:
canvas.h:52:22: error: ‘m_window’ was not declared in this scope
   ~Canvas() { delwin(m_window); }
                      ^~~~~~~~
canvas.h:52:22: note: suggested alternative: ‘rewind’
   ~Canvas() { delwin(m_window); }
                      ^~~~~~~~
                      rewind
canvas.h:52:15: error: ‘delwin’ was not declared in this scope
   ~Canvas() { delwin(m_window); }
               ^~~~~~
canvas.h:52:15: note: suggested alternative: ‘rewind’
   ~Canvas() { delwin(m_window); }
               ^~~~~~
               rewind
canvas.h: In member function ‘void display::Canvas::refresh()’:
canvas.h:54:94: error: ‘m_window’ was not declared in this scope
   void                refresh()                                               { wnoutrefresh(m_window); }
                                                                                              ^~~~~~~~
canvas.h:54:94: note: suggested alternative: ‘rewind’
   void                refresh()                                               { wnoutrefresh(m_window); }
                                                                                              ^~~~~~~~
                                                                                              rewind
canvas.h:54:81: error: ‘wnoutrefresh’ was not declared in this scope
   void                refresh()                                               { wnoutrefresh(m_window); }
                                                                                 ^~~~~~~~~~~~
canvas.h:54:81: note: suggested alternative: ‘refresh’
   void                refresh()                                               { wnoutrefresh(m_window); }
                                                                                 ^~~~~~~~~~~~
                                                                                 refresh
canvas.h: In static member function ‘static void display::Canvas::refresh_std()’:
canvas.h:55:94: error: ‘stdscr’ was not declared in this scope
   static void         refresh_std()                                           { wnoutrefresh(stdscr); }
                                                                                              ^~~~~~
canvas.h:55:94: note: suggested alternative: ‘stderr’
   static void         refresh_std()                                           { wnoutrefresh(stdscr); }
                                                                                              ^~~~~~
                                                                                              stderr
canvas.h:55:81: error: ‘wnoutrefresh’ was not declared in this scope
   static void         refresh_std()                                           { wnoutrefresh(stdscr); }
                                                                                 ^~~~~~~~~~~~
canvas.h:55:81: note: suggested alternative: ‘refresh’
   static void         refresh_std()                                           { wnoutrefresh(stdscr); }
                                                                                 ^~~~~~~~~~~~
                                                                                 refresh
canvas.h: In member function ‘void display::Canvas::redraw()’:
canvas.h:56:91: error: ‘m_window’ was not declared in this scope
   void                redraw()                                                { redrawwin(m_window); }
                                                                                           ^~~~~~~~
canvas.h:56:91: note: suggested alternative: ‘rewind’
   void                redraw()                                                { redrawwin(m_window); }
                                                                                           ^~~~~~~~
                                                                                           rewind
canvas.h:56:81: error: ‘redrawwin’ was not declared in this scope
   void                redraw()                                                { redrawwin(m_window); }
                                                                                 ^~~~~~~~~
canvas.h:56:81: note: suggested alternative: ‘redraw’
   void                redraw()                                                { redrawwin(m_window); }
                                                                                 ^~~~~~~~~
                                                                                 redraw
canvas.h: In static member function ‘static void display::Canvas::redraw_std()’:
canvas.h:57:91: error: ‘stdscr’ was not declared in this scope
   static void         redraw_std()                                            { redrawwin(stdscr); }
                                                                                           ^~~~~~
canvas.h:57:91: note: suggested alternative: ‘stderr’
   static void         redraw_std()                                            { redrawwin(stdscr); }
                                                                                           ^~~~~~
                                                                                           stderr
canvas.h:57:81: error: ‘redrawwin’ was not declared in this scope
   static void         redraw_std()                                            { redrawwin(stdscr); }
                                                                                 ^~~~~~~~~
canvas.h:57:81: note: suggested alternative: ‘redraw’
   static void         redraw_std()                                            { redrawwin(stdscr); }
                                                                                 ^~~~~~~~~
                                                                                 redraw
canvas.h: In member function ‘void display::Canvas::resize(int, int)’:
canvas.h:59:89: error: ‘m_window’ was not declared in this scope
   void                resize(int w, int h)                                    { wresize(m_window, h, w); }
                                                                                         ^~~~~~~~
canvas.h:59:89: note: suggested alternative: ‘rewind’
   void                resize(int w, int h)                                    { wresize(m_window, h, w); }
                                                                                         ^~~~~~~~
                                                                                         rewind
canvas.h:59:81: error: ‘wresize’ was not declared in this scope
   void                resize(int w, int h)                                    { wresize(m_window, h, w); }
                                                                                 ^~~~~~~
canvas.h:59:81: note: suggested alternative: ‘resize’
   void                resize(int w, int h)                                    { wresize(m_window, h, w); }
                                                                                 ^~~~~~~
                                                                                 resize
canvas.h: In static member function ‘static void display::Canvas::resize_term(int, int)’:
canvas.h:62:81: error: ‘resizeterm’ was not declared in this scope
   static void         resize_term(int x, int y)                               { resizeterm(y, x); }
                                                                                 ^~~~~~~~~~
canvas.h:62:81: note: suggested alternative: ‘resize_term’
   static void         resize_term(int x, int y)                               { resizeterm(y, x); }
                                                                                 ^~~~~~~~~~
                                                                                 resize_term
canvas.h: In static member function ‘static void display::Canvas::resize_term(std::pair<int, int>)’:
canvas.h:63:81: error: ‘resizeterm’ was not declared in this scope
   static void         resize_term(std::pair<int, int> dim)                    { resizeterm(dim.second, dim.first); }
                                                                                 ^~~~~~~~~~
canvas.h:63:81: note: suggested alternative: ‘resize_term’
   static void         resize_term(std::pair<int, int> dim)                    { resizeterm(dim.second, dim.first); }
                                                                                 ^~~~~~~~~~
                                                                                 resize_term
canvas.h: In member function ‘unsigned int display::Canvas::get_x()’:
canvas.h:65:106: error: ‘m_window’ was not declared in this scope
   unsigned int        get_x()                                                 { int x, __UNUSED y; getyx(m_window, y, x); return x; }
                                                                                                          ^~~~~~~~
canvas.h:65:106: note: suggested alternative: ‘rewind’
   unsigned int        get_x()                                                 { int x, __UNUSED y; getyx(m_window, y, x); return x; }
                                                                                                          ^~~~~~~~
                                                                                                          rewind
canvas.h:65:100: error: ‘getyx’ was not declared in this scope
   unsigned int        get_x()                                                 { int x, __UNUSED y; getyx(m_window, y, x); return x; }
                                                                                                    ^~~~~
canvas.h:65:100: note: suggested alternative: ‘get_x’
   unsigned int        get_x()                                                 { int x, __UNUSED y; getyx(m_window, y, x); return x; }
                                                                                                    ^~~~~
                                                                                                    get_x
In file included from canvas.cc:44:0:
canvas.h: In member function ‘unsigned int display::Canvas::get_y()’:
canvas.h:66:97: error: ‘m_window’ was not declared in this scope
   unsigned int        get_y()                                                 { int x, y; getyx(m_window, y, x); return y; }
                                                                                                 ^~~~~~~~
canvas.h:66:97: note: suggested alternative: ‘rewind’
   unsigned int        get_y()                                                 { int x, y; getyx(m_window, y, x); return y; }
                                                                                                 ^~~~~~~~
                                                                                                 rewind
canvas.h:66:91: error: ‘getyx’ was not declared in this scope
   unsigned int        get_y()                                                 { int x, y; getyx(m_window, y, x); return y; }
                                                                                           ^~~~~
canvas.h:66:91: note: suggested alternative: ‘get_x’
   unsigned int        get_y()                                                 { int x, y; getyx(m_window, y, x); return y; }
                                                                                           ^~~~~
                                                                                           get_x
canvas.h: In member function ‘unsigned int display::Canvas::width()’:
canvas.h:68:109: error: ‘m_window’ was not declared in this scope
   unsigned int        width()                                                 { int x, __UNUSED y; getmaxyx(m_window, y, x); return x; }
                                                                                                             ^~~~~~~~
canvas.h:68:109: note: suggested alternative: ‘rewind’
   unsigned int        width()                                                 { int x, __UNUSED y; getmaxyx(m_window, y, x); return x; }
                                                                                                             ^~~~~~~~
                                                                                                             rewind
canvas.h:68:100: error: ‘getmaxyx’ was not declared in this scope
   unsigned int        width()                                                 { int x, __UNUSED y; getmaxyx(m_window, y, x); return x; }
                                                                                                    ^~~~~~~~
canvas.h:68:100: note: suggested alternative: ‘get_x’
   unsigned int        width()                                                 { int x, __UNUSED y; getmaxyx(m_window, y, x); return x; }
                                                                                                    ^~~~~~~~
                                                                                                    get_x
canvas.h: In member function ‘unsigned int display::Canvas::height()’:
canvas.h:69:100: error: ‘m_window’ was not declared in this scope
   unsigned int        height()                                                { int x, y; getmaxyx(m_window, y, x); return y; }
                                                                                                    ^~~~~~~~
canvas.h:69:100: note: suggested alternative: ‘rewind’
   unsigned int        height()                                                { int x, y; getmaxyx(m_window, y, x); return y; }
                                                                                                    ^~~~~~~~
                                                                                                    rewind
canvas.h:69:91: error: ‘getmaxyx’ was not declared in this scope
   unsigned int        height()                                                { int x, y; getmaxyx(m_window, y, x); return y; }
                                                                                           ^~~~~~~~
canvas.h:69:91: note: suggested alternative: ‘get_x’
   unsigned int        height()                                                { int x, y; getmaxyx(m_window, y, x); return y; }
                                                                                           ^~~~~~~~
                                                                                           get_x
canvas.h: In member function ‘void display::Canvas::move(unsigned int, unsigned int)’:
canvas.h:71:87: error: ‘m_window’ was not declared in this scope
   void                move(unsigned int x, unsigned int y)                    { wmove(m_window, y, x); }
                                                                                       ^~~~~~~~
canvas.h:71:87: note: suggested alternative: ‘rewind’
   void                move(unsigned int x, unsigned int y)                    { wmove(m_window, y, x); }
                                                                                       ^~~~~~~~
                                                                                       rewind
canvas.h:71:81: error: ‘wmove’ was not declared in this scope
   void                move(unsigned int x, unsigned int y)                    { wmove(m_window, y, x); }
                                                                                 ^~~~~
canvas.h:71:81: note: suggested alternative: ‘move’
   void                move(unsigned int x, unsigned int y)                    { wmove(m_window, y, x); }
                                                                                 ^~~~~
                                                                                 move
canvas.h: In member function ‘void display::Canvas::set_background(int)’:
canvas.h:74:97: error: ‘m_window’ was not declared in this scope
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                                 ^~~~~~~~
canvas.h:74:97: note: suggested alternative: ‘rewind’
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                                 ^~~~~~~~
                                                                                                 rewind
canvas.h:74:88: error: ‘wbkgdset’ was not declared in this scope
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                        ^~~~~~~~
canvas.h:74:88: note: suggested alternative: ‘wmemset’
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                        ^~~~~~~~
                                                                                        wmemset
canvas.h:74:108: error: return-statement with a value, in function returning 'void' [-fpermissive]
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                                            ^
canvas.h: In member function ‘void display::Canvas::erase()’:
canvas.h:76:88: error: ‘m_window’ was not declared in this scope
   void                erase()                                                 { werase(m_window); }
                                                                                        ^~~~~~~~
canvas.h:76:88: note: suggested alternative: ‘rewind’
   void                erase()                                                 { werase(m_window); }
                                                                                        ^~~~~~~~
                                                                                        rewind
canvas.h:76:81: error: ‘werase’ was not declared in this scope
   void                erase()                                                 { werase(m_window); }
                                                                                 ^~~~~~
canvas.h:76:81: note: suggested alternative: ‘erase’
   void                erase()                                                 { werase(m_window); }
                                                                                 ^~~~~~
                                                                                 erase
canvas.h: In static member function ‘static void display::Canvas::erase_std()’:
canvas.h:77:88: error: ‘stdscr’ was not declared in this scope
   static void         erase_std()                                             { werase(stdscr); }
                                                                                        ^~~~~~
canvas.h:77:88: note: suggested alternative: ‘stderr’
   static void         erase_std()                                             { werase(stdscr); }
                                                                                        ^~~~~~
                                                                                        stderr
canvas.h:77:81: error: ‘werase’ was not declared in this scope
   static void         erase_std()                                             { werase(stdscr); }
                                                                                 ^~~~~~
canvas.h:77:81: note: suggested alternative: ‘erase’
   static void         erase_std()                                             { werase(stdscr); }
                                                                                 ^~~~~~
                                                                                 erase
canvas.h: In member function ‘void display::Canvas::print_border(int, int, int, int, int, int, int, int)’:
canvas.h:82:89: error: ‘m_window’ was not declared in this scope
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                                                                         ^~~~~~~~
canvas.h:82:89: note: suggested alternative: ‘rewind’
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                                                                         ^~~~~~~~
                                                                                         rewind
canvas.h:82:81: error: ‘wborder’ was not declared in this scope
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                                                                 ^~~~~~~
canvas.h: In member function ‘void display::Canvas::print_char(int)’:
canvas.h:93:92: error: ‘m_window’ was not declared in this scope
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                                                                            ^~~~~~~~
canvas.h:93:92: note: suggested alternative: ‘rewind’
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                                                                            ^~~~~~~~
                                                                                            rewind
canvas.h:93:85: error: ‘waddch’ was not declared in this scope
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                                                                     ^~~~~~
canvas.h:93:85: note: suggested alternative: ‘width’
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                                                                     ^~~~~~
                                                                                     width
canvas.h: In member function ‘void display::Canvas::print_char(unsigned int, unsigned int, int)’:
canvas.h:94:94: error: ‘m_window’ was not declared in this scope
   void                print_char(unsigned int x, unsigned int y, const chtype ch) { mvwaddch(m_window, y, x, ch); }
                                                                                              ^~~~~~~~
canvas.h:94:94: note: suggested alternative: ‘rewind’
   void                print_char(unsigned int x, unsigned int y, const chtype ch) { mvwaddch(m_window, y, x, ch); }
                                                                                              ^~~~~~~~
                                                                                              rewind
canvas.h:94:85: error: ‘mvwaddch’ was not declared in this scope
   void                print_char(unsigned int x, unsigned int y, const chtype ch) { mvwaddch(m_window, y, x, ch); }
                                                                                     ^~~~~~~~
canvas.h: In member function ‘void display::Canvas::set_attr(unsigned int, unsigned int, unsigned int, int, int)’:
canvas.h:96:112: error: ‘m_window’ was not declared in this scope
   void                set_attr(unsigned int x, unsigned int y, unsigned int n, int attr, int color) { mvwchgat(m_window, y, x, n, attr, color, NULL); }
                                                                                                                ^~~~~~~~
canvas.h:96:112: note: suggested alternative: ‘rewind’
   void                set_attr(unsigned int x, unsigned int y, unsigned int n, int attr, int color) { mvwchgat(m_window, y, x, n, attr, color, NULL); }
                                                                                                                ^~~~~~~~
                                                                                                                rewind
canvas.h:96:103: error: ‘mvwchgat’ was not declared in this scope
   void                set_attr(unsigned int x, unsigned int y, unsigned int n, int attr, int color) { mvwchgat(m_window, y, x, n, attr, color, NULL); }
                                                                                                       ^~~~~~~~
canvas.h:96:103: note: suggested alternative: ‘wcscat’
   void                set_attr(unsigned int x, unsigned int y, unsigned int n, int attr, int color) { mvwchgat(m_window, y, x, n, attr, color, NULL); }
                                                                                                       ^~~~~~~~
                                                                                                       wcscat
canvas.h: In member function ‘void display::Canvas::set_default_attributes(int)’:
canvas.h:98:100: error: ‘m_window’ was not declared in this scope
   void                set_default_attributes(int attr)                            { (void)wattrset(m_window, attr); }
                                                                                                    ^~~~~~~~
canvas.h:98:100: note: suggested alternative: ‘rewind’
   void                set_default_attributes(int attr)                            { (void)wattrset(m_window, attr); }
                                                                                                    ^~~~~~~~
                                                                                                    rewind
canvas.h:98:91: error: ‘wattrset’ was not declared in this scope
   void                set_default_attributes(int attr)                            { (void)wattrset(m_window, attr); }
                                                                                           ^~~~~~~~
canvas.h:98:91: note: suggested alternative: ‘tzset’
   void                set_default_attributes(int attr)                            { (void)wattrset(m_window, attr); }
                                                                                           ^~~~~~~~
                                                                                           tzset
canvas.h: In static member function ‘static int display::Canvas::get_screen_width()’:
canvas.h:104:109: error: ‘stdscr’ was not declared in this scope
   static int          get_screen_width()                                      { int x, __UNUSED y; getmaxyx(stdscr, y, x); return x; }
                                                                                                             ^~~~~~
canvas.h:104:109: note: suggested alternative: ‘stderr’
   static int          get_screen_width()                                      { int x, __UNUSED y; getmaxyx(stdscr, y, x); return x; }
                                                                                                             ^~~~~~
                                                                                                             stderr
canvas.h:104:100: error: ‘getmaxyx’ was not declared in this scope
   static int          get_screen_width()                                      { int x, __UNUSED y; getmaxyx(stdscr, y, x); return x; }
                                                                                                    ^~~~~~~~
canvas.h:104:100: note: suggested alternative: ‘get_x’
   static int          get_screen_width()                                      { int x, __UNUSED y; getmaxyx(stdscr, y, x); return x; }
                                                                                                    ^~~~~~~~
                                                                                                    get_x
canvas.h: In static member function ‘static int display::Canvas::get_screen_height()’:
canvas.h:105:100: error: ‘stdscr’ was not declared in this scope
   static int          get_screen_height()                                     { int x, y; getmaxyx(stdscr, y, x); return y; }
                                                                                                    ^~~~~~
canvas.h:105:100: note: suggested alternative: ‘stderr’
   static int          get_screen_height()                                     { int x, y; getmaxyx(stdscr, y, x); return y; }
                                                                                                    ^~~~~~
                                                                                                    stderr
canvas.h:105:91: error: ‘getmaxyx’ was not declared in this scope
   static int          get_screen_height()                                     { int x, y; getmaxyx(stdscr, y, x); return y; }
                                                                                           ^~~~~~~~
canvas.h:105:91: note: suggested alternative: ‘get_x’
   static int          get_screen_height()                                     { int x, y; getmaxyx(stdscr, y, x); return y; }
                                                                                           ^~~~~~~~
                                                                                           get_x
canvas.h: In static member function ‘static void display::Canvas::do_update()’:
canvas.h:109:81: error: ‘doupdate’ was not declared in this scope
   static void         do_update()                                             { doupdate(); }
                                                                                 ^~~~~~~~
canvas.h:109:81: note: suggested alternative: ‘do_update’
   static void         do_update()                                             { doupdate(); }
                                                                                 ^~~~~~~~
                                                                                 do_update
canvas.h: In member function ‘void display::Canvas::print(const char*, ...)’:
canvas.h:124:3: error: ‘va_start’ was not declared in this scope
   va_start(arglist, str);
   ^~~~~~~~
canvas.h:124:3: note: suggested alternative: ‘va_list’
   va_start(arglist, str);
   ^~~~~~~~
   va_list
canvas.h:125:13: error: ‘m_window’ was not declared in this scope
   vw_printw(m_window, const_cast<char*>(str), arglist);
             ^~~~~~~~
canvas.h:125:13: note: suggested alternative: ‘rewind’
   vw_printw(m_window, const_cast<char*>(str), arglist);
             ^~~~~~~~
             rewind
canvas.h:125:3: error: ‘vw_printw’ was not declared in this scope
   vw_printw(m_window, const_cast<char*>(str), arglist);
   ^~~~~~~~~
canvas.h:125:3: note: suggested alternative: ‘vwprintf’
   vw_printw(m_window, const_cast<char*>(str), arglist);
   ^~~~~~~~~
   vwprintf
canvas.h:126:3: error: ‘va_end’ was not declared in this scope
   va_end(arglist);
   ^~~~~~
canvas.h:126:3: note: suggested alternative: ‘rand’
   va_end(arglist);
   ^~~~~~
   rand
canvas.h: In member function ‘void display::Canvas::print(unsigned int, unsigned int, const char*, ...)’:
canvas.h:133:3: error: ‘va_start’ was not declared in this scope
   va_start(arglist, str);
   ^~~~~~~~
canvas.h:133:3: note: suggested alternative: ‘va_list’
   va_start(arglist, str);
   ^~~~~~~~
   va_list
canvas.h:134:9: error: ‘m_window’ was not declared in this scope
   wmove(m_window, y, x);
         ^~~~~~~~
canvas.h:134:9: note: suggested alternative: ‘rewind’
   wmove(m_window, y, x);
         ^~~~~~~~
         rewind
canvas.h:134:3: error: ‘wmove’ was not declared in this scope
   wmove(m_window, y, x);
   ^~~~~
canvas.h:134:3: note: suggested alternative: ‘move’
   wmove(m_window, y, x);
   ^~~~~
   move
canvas.h:135:3: error: ‘vw_printw’ was not declared in this scope
   vw_printw(m_window, const_cast<char*>(str), arglist);
   ^~~~~~~~~
canvas.h:135:3: note: suggested alternative: ‘vwprintf’
   vw_printw(m_window, const_cast<char*>(str), arglist);
   ^~~~~~~~~
   vwprintf
canvas.h:136:3: error: ‘va_end’ was not declared in this scope
   va_end(arglist);
   ^~~~~~
canvas.h:136:3: note: suggested alternative: ‘rand’
   va_end(arglist);
   ^~~~~~
   rand
canvas.cc: In constructor ‘display::Canvas::Canvas(int, int, int, int)’:
canvas.cc:51:3: error: class ‘display::Canvas’ does not have any field named ‘m_window’
   m_window(newwin(height, width, y, x)) {
   ^~~~~~~~
canvas.cc:51:12: error: ‘newwin’ was not declared in this scope
   m_window(newwin(height, width, y, x)) {
            ^~~~~~
canvas.cc:51:12: note: suggested alternative: ‘rewind’
   m_window(newwin(height, width, y, x)) {
            ^~~~~~
            rewind
canvas.cc:53:7: error: ‘m_window’ was not declared in this scope
   if (m_window == NULL)
       ^~~~~~~~
canvas.cc:53:7: note: suggested alternative: ‘rewind’
   if (m_window == NULL)
       ^~~~~~~~
       rewind
canvas.cc: In member function ‘void display::Canvas::resize(int, int, int, int)’:
canvas.cc:59:11: error: ‘m_window’ was not declared in this scope
   wresize(m_window, h, w);
           ^~~~~~~~
canvas.cc:59:11: note: suggested alternative: ‘rewind’
   wresize(m_window, h, w);
           ^~~~~~~~
           rewind
canvas.cc:59:3: error: ‘wresize’ was not declared in this scope
   wresize(m_window, h, w);
   ^~~~~~~
canvas.cc:59:3: note: suggested alternative: ‘resize’
   wresize(m_window, h, w);
   ^~~~~~~
   resize
canvas.cc:60:3: error: ‘mvwin’ was not declared in this scope
   mvwin(m_window, y, x);
   ^~~~~
canvas.cc:60:3: note: suggested alternative: ‘rewind’
   mvwin(m_window, y, x);
   ^~~~~
   rewind
canvas.cc: In member function ‘void display::Canvas::print_attributes(unsigned int, unsigned int, const char*, const char*, const attributes_list*)’:
canvas.cc:67:3: error: ‘attr_t’ was not declared in this scope
   attr_t org_attr;
   ^~~~~~
canvas.cc:67:3: note: suggested alternative: ‘atexit’
   attr_t org_attr;
   ^~~~~~
   atexit
canvas.cc:69:13: error: ‘m_window’ was not declared in this scope
   wattr_get(m_window, &org_attr, &org_pair, NULL);
             ^~~~~~~~
canvas.cc:69:13: note: suggested alternative: ‘rewind’
   wattr_get(m_window, &org_attr, &org_pair, NULL);
             ^~~~~~~~
             rewind
canvas.cc:69:24: error: ‘org_attr’ was not declared in this scope
   wattr_get(m_window, &org_attr, &org_pair, NULL);
                        ^~~~~~~~
canvas.cc:69:24: note: suggested alternative: ‘set_attr’
   wattr_get(m_window, &org_attr, &org_pair, NULL);
                        ^~~~~~~~
                        set_attr
canvas.cc:69:3: error: ‘wattr_get’ was not declared in this scope
   wattr_get(m_window, &org_attr, &org_pair, NULL);
   ^~~~~~~~~
canvas.cc:72:3: error: ‘wattr_set’ was not declared in this scope
   wattr_set(m_window, Attributes::a_normal, Attributes::color_default, NULL);
   ^~~~~~~~~
canvas.cc: In static member function ‘static void display::Canvas::initialize()’:
canvas.cc:101:3: error: ‘initscr’ was not declared in this scope
   initscr();
   ^~~~~~~
canvas.cc:101:3: note: suggested alternative: ‘initstate’
   initscr();
   ^~~~~~~
   initstate
canvas.cc:102:3: error: ‘raw’ was not declared in this scope
   raw();
   ^~~
canvas.cc:102:3: note: suggested alternative: ‘rand’
   raw();
   ^~~
   rand
canvas.cc:103:3: error: ‘noecho’ was not declared in this scope
   noecho();
   ^~~~~~
attributes.h:67:32: error: ‘A_NORMAL’ was not declared in this scope
   static const int a_normal  = A_NORMAL;
                                ^~~~~~~~
canvas.cc:104:11: error: ‘stdscr’ was not declared in this scope
   nodelay(stdscr, TRUE);
           ^~~~~~
canvas.cc:104:11: note: suggested alternative: ‘stderr’
   nodelay(stdscr, TRUE);
           ^~~~~~
           stderr
canvas.cc:104:19: error: ‘TRUE’ was not declared in this scope
   nodelay(stdscr, TRUE);
                   ^~~~
attributes.h:68:32: error: ‘A_BOLD’ was not declared in this scope
   static const int a_bold    = A_BOLD;
                                ^~~~~~
canvas.cc:104:3: error: ‘nodelay’ was not declared in this scope
   nodelay(stdscr, TRUE);
   ^~~~~~~
attributes.h:69:32: error: ‘A_REVERSE’ was not declared in this scope
   static const int a_reverse = A_REVERSE;
                                ^~~~~~~~~
canvas.cc:105:3: error: ‘keypad’ was not declared in this scope
   keypad(stdscr, TRUE);
   ^~~~~~
canvas.cc:105:3: note: suggested alternative: ‘key_t’
   keypad(stdscr, TRUE);
   ^~~~~~
   key_t
canvas.cc:106:3: error: ‘curs_set’ was not declared in this scope
   curs_set(0);
   ^~~~~~~~
canvas.cc:106:3: note: suggested alternative: ‘fd_set’
   curs_set(0);
   ^~~~~~~~
   fd_set
canvas.cc: In static member function ‘static void display::Canvas::cleanup()’:
canvas.cc:116:3: error: ‘noraw’ was not declared in this scope
   noraw();
   ^~~~~
In file included from manager.cc:43:0:
canvas.h:73:3: error: ‘chtype’ does not name a type; did you mean ‘ctime’?
   chtype              get_background()                                        { return getbkgd(m_window); }
   ^~~~~~
   ctime
canvas.cc:116:3: note: suggested alternative: ‘redraw’
   noraw();
   ^~~~~
   redraw
canvas.h:74:38: error: ‘chtype’ has not been declared
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                      ^~~~~~
canvas.cc:117:3: error: ‘endwin’ was not declared in this scope
   endwin();
   ^~~~~~
canvas.h:79:36: error: ‘chtype’ has not been declared
   void                print_border(chtype ls, chtype rs,
                                    ^~~~~~
canvas.h:79:47: error: ‘chtype’ has not been declared
   void                print_border(chtype ls, chtype rs,
                                               ^~~~~~
canvas.h:80:36: error: ‘chtype’ has not been declared
                                    chtype ts, chtype bs,
                                    ^~~~~~
canvas.h:80:47: error: ‘chtype’ has not been declared
                                    chtype ts, chtype bs,
                                               ^~~~~~
canvas.h:81:36: error: ‘chtype’ has not been declared
                                    chtype tl, chtype tr,
                                    ^~~~~~
canvas.h:81:47: error: ‘chtype’ has not been declared
                                    chtype tl, chtype tr,
                                               ^~~~~~
canvas.h:82:36: error: ‘chtype’ has not been declared
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                    ^~~~~~
canvas.h:82:47: error: ‘chtype’ has not been declared
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                               ^~~~~~
canvas.cc:117:3: note: suggested alternative: ‘stdin’
   endwin();
   ^~~~~~
   stdin
canvas.h:93:40: error: ‘chtype’ does not name a type; did you mean ‘ctime’?
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                        ^~~~~~
                                        ctime
canvas.h:94:72: error: ‘chtype’ does not name a type; did you mean ‘ctime’?
   void                print_char(unsigned int x, unsigned int y, const chtype ch) { mvwaddch(m_window, y, x, ch); }
                                                                        ^~~~~~
                                                                        ctime
canvas.h:117:3: error: ‘WINDOW’ does not name a type
   WINDOW*             m_window;
   ^~~~~~
In file included from manager.cc:43:0:
canvas.h: In destructor ‘display::Canvas::~Canvas()’:
canvas.h:52:22: error: ‘m_window’ was not declared in this scope
   ~Canvas() { delwin(m_window); }
                      ^~~~~~~~
canvas.h:52:22: note: suggested alternative: ‘rewind’
   ~Canvas() { delwin(m_window); }
                      ^~~~~~~~
                      rewind
canvas.h:52:15: error: ‘delwin’ was not declared in this scope
   ~Canvas() { delwin(m_window); }
               ^~~~~~
canvas.h:52:15: note: suggested alternative: ‘rewind’
   ~Canvas() { delwin(m_window); }
               ^~~~~~
               rewind
canvas.h: In member function ‘void display::Canvas::refresh()’:
canvas.h:54:94: error: ‘m_window’ was not declared in this scope
   void                refresh()                                               { wnoutrefresh(m_window); }
                                                                                              ^~~~~~~~
canvas.h:54:94: note: suggested alternative: ‘rewind’
   void                refresh()                                               { wnoutrefresh(m_window); }
                                                                                              ^~~~~~~~
                                                                                              rewind
canvas.h:54:81: error: ‘wnoutrefresh’ was not declared in this scope
   void                refresh()                                               { wnoutrefresh(m_window); }
                                                                                 ^~~~~~~~~~~~
canvas.h:54:81: note: suggested alternative: ‘refresh’
   void                refresh()                                               { wnoutrefresh(m_window); }
                                                                                 ^~~~~~~~~~~~
                                                                                 refresh
canvas.h: In static member function ‘static void display::Canvas::refresh_std()’:
canvas.h:55:94: error: ‘stdscr’ was not declared in this scope
   static void         refresh_std()                                           { wnoutrefresh(stdscr); }
                                                                                              ^~~~~~
canvas.h:55:94: note: suggested alternative: ‘stderr’
   static void         refresh_std()                                           { wnoutrefresh(stdscr); }
                                                                                              ^~~~~~
                                                                                              stderr
canvas.h:55:81: error: ‘wnoutrefresh’ was not declared in this scope
   static void         refresh_std()                                           { wnoutrefresh(stdscr); }
                                                                                 ^~~~~~~~~~~~
canvas.h:55:81: note: suggested alternative: ‘refresh’
   static void         refresh_std()                                           { wnoutrefresh(stdscr); }
                                                                                 ^~~~~~~~~~~~
                                                                                 refresh
canvas.h: In member function ‘void display::Canvas::redraw()’:
canvas.h:56:91: error: ‘m_window’ was not declared in this scope
   void                redraw()                                                { redrawwin(m_window); }
                                                                                           ^~~~~~~~
canvas.h:56:91: note: suggested alternative: ‘rewind’
   void                redraw()                                                { redrawwin(m_window); }
                                                                                           ^~~~~~~~
                                                                                           rewind
canvas.h:56:81: error: ‘redrawwin’ was not declared in this scope
   void                redraw()                                                { redrawwin(m_window); }
                                                                                 ^~~~~~~~~
canvas.h:56:81: note: suggested alternative: ‘redraw’
   void                redraw()                                                { redrawwin(m_window); }
                                                                                 ^~~~~~~~~
                                                                                 redraw
canvas.h: In static member function ‘static void display::Canvas::redraw_std()’:
canvas.h:57:91: error: ‘stdscr’ was not declared in this scope
   static void         redraw_std()                                            { redrawwin(stdscr); }
                                                                                           ^~~~~~
canvas.h:57:91: note: suggested alternative: ‘stderr’
   static void         redraw_std()                                            { redrawwin(stdscr); }
                                                                                           ^~~~~~
                                                                                           stderr
canvas.h:57:81: error: ‘redrawwin’ was not declared in this scope
   static void         redraw_std()                                            { redrawwin(stdscr); }
                                                                                 ^~~~~~~~~
canvas.h:57:81: note: suggested alternative: ‘redraw’
   static void         redraw_std()                                            { redrawwin(stdscr); }
                                                                                 ^~~~~~~~~
                                                                                 redraw
canvas.h: In member function ‘void display::Canvas::resize(int, int)’:
canvas.h:59:89: error: ‘m_window’ was not declared in this scope
   void                resize(int w, int h)                                    { wresize(m_window, h, w); }
                                                                                         ^~~~~~~~
canvas.h:59:89: note: suggested alternative: ‘rewind’
   void                resize(int w, int h)                                    { wresize(m_window, h, w); }
                                                                                         ^~~~~~~~
                                                                                         rewind
canvas.h:59:81: error: ‘wresize’ was not declared in this scope
   void                resize(int w, int h)                                    { wresize(m_window, h, w); }
                                                                                 ^~~~~~~
canvas.h:59:81: note: suggested alternative: ‘resize’
   void                resize(int w, int h)                                    { wresize(m_window, h, w); }
                                                                                 ^~~~~~~
                                                                                 resize
canvas.h: In static member function ‘static void display::Canvas::resize_term(int, int)’:
canvas.h:62:81: error: ‘resizeterm’ was not declared in this scope
   static void         resize_term(int x, int y)                               { resizeterm(y, x); }
                                                                                 ^~~~~~~~~~
canvas.h:62:81: note: suggested alternative: ‘resize_term’
   static void         resize_term(int x, int y)                               { resizeterm(y, x); }
                                                                                 ^~~~~~~~~~
                                                                                 resize_term
canvas.h: In static member function ‘static void display::Canvas::resize_term(std::pair<int, int>)’:
canvas.h:63:81: error: ‘resizeterm’ was not declared in this scope
   static void         resize_term(std::pair<int, int> dim)                    { resizeterm(dim.second, dim.first); }
                                                                                 ^~~~~~~~~~
canvas.h:63:81: note: suggested alternative: ‘resize_term’
   static void         resize_term(std::pair<int, int> dim)                    { resizeterm(dim.second, dim.first); }
                                                                                 ^~~~~~~~~~
                                                                                 resize_term
canvas.h: In member function ‘unsigned int display::Canvas::get_x()’:
canvas.h:65:106: error: ‘m_window’ was not declared in this scope
   unsigned int        get_x()                                                 { int x, __UNUSED y; getyx(m_window, y, x); return x; }
                                                                                                          ^~~~~~~~
canvas.h:65:106: note: suggested alternative: ‘rewind’
   unsigned int        get_x()                                                 { int x, __UNUSED y; getyx(m_window, y, x); return x; }
                                                                                                          ^~~~~~~~
                                                                                                          rewind
canvas.h:65:100: error: ‘getyx’ was not declared in this scope
   unsigned int        get_x()                                                 { int x, __UNUSED y; getyx(m_window, y, x); return x; }
                                                                                                    ^~~~~
canvas.h:65:100: note: suggested alternative: ‘get_x’
   unsigned int        get_x()                                                 { int x, __UNUSED y; getyx(m_window, y, x); return x; }
                                                                                                    ^~~~~
                                                                                                    get_x
In file included from manager.cc:43:0:
canvas.h: In member function ‘unsigned int display::Canvas::get_y()’:
canvas.h:66:97: error: ‘m_window’ was not declared in this scope
   unsigned int        get_y()                                                 { int x, y; getyx(m_window, y, x); return y; }
                                                                                                 ^~~~~~~~
canvas.h:66:97: note: suggested alternative: ‘rewind’
   unsigned int        get_y()                                                 { int x, y; getyx(m_window, y, x); return y; }
                                                                                                 ^~~~~~~~
                                                                                                 rewind
canvas.h:66:91: error: ‘getyx’ was not declared in this scope
   unsigned int        get_y()                                                 { int x, y; getyx(m_window, y, x); return y; }
                                                                                           ^~~~~
canvas.h:66:91: note: suggested alternative: ‘get_x’
   unsigned int        get_y()                                                 { int x, y; getyx(m_window, y, x); return y; }
                                                                                           ^~~~~
                                                                                           get_x
canvas.h: In member function ‘unsigned int display::Canvas::width()’:
canvas.h:68:109: error: ‘m_window’ was not declared in this scope
   unsigned int        width()                                                 { int x, __UNUSED y; getmaxyx(m_window, y, x); return x; }
                                                                                                             ^~~~~~~~
canvas.h:68:109: note: suggested alternative: ‘rewind’
   unsigned int        width()                                                 { int x, __UNUSED y; getmaxyx(m_window, y, x); return x; }
                                                                                                             ^~~~~~~~
                                                                                                             rewind
canvas.h:68:100: error: ‘getmaxyx’ was not declared in this scope
   unsigned int        width()                                                 { int x, __UNUSED y; getmaxyx(m_window, y, x); return x; }
                                                                                                    ^~~~~~~~
canvas.h:68:100: note: suggested alternative: ‘get_x’
   unsigned int        width()                                                 { int x, __UNUSED y; getmaxyx(m_window, y, x); return x; }
                                                                                                    ^~~~~~~~
                                                                                                    get_x
canvas.h: In member function ‘unsigned int display::Canvas::height()’:
canvas.h:69:100: error: ‘m_window’ was not declared in this scope
   unsigned int        height()                                                { int x, y; getmaxyx(m_window, y, x); return y; }
                                                                                                    ^~~~~~~~
canvas.h:69:100: note: suggested alternative: ‘rewind’
   unsigned int        height()                                                { int x, y; getmaxyx(m_window, y, x); return y; }
                                                                                                    ^~~~~~~~
                                                                                                    rewind
canvas.h:69:91: error: ‘getmaxyx’ was not declared in this scope
   unsigned int        height()                                                { int x, y; getmaxyx(m_window, y, x); return y; }
                                                                                           ^~~~~~~~
canvas.h:69:91: note: suggested alternative: ‘get_x’
   unsigned int        height()                                                { int x, y; getmaxyx(m_window, y, x); return y; }
                                                                                           ^~~~~~~~
                                                                                           get_x
canvas.h: In member function ‘void display::Canvas::move(unsigned int, unsigned int)’:
canvas.h:71:87: error: ‘m_window’ was not declared in this scope
   void                move(unsigned int x, unsigned int y)                    { wmove(m_window, y, x); }
                                                                                       ^~~~~~~~
canvas.h:71:87: note: suggested alternative: ‘rewind’
   void                move(unsigned int x, unsigned int y)                    { wmove(m_window, y, x); }
                                                                                       ^~~~~~~~
                                                                                       rewind
canvas.h:71:81: error: ‘wmove’ was not declared in this scope
   void                move(unsigned int x, unsigned int y)                    { wmove(m_window, y, x); }
                                                                                 ^~~~~
canvas.h:71:81: note: suggested alternative: ‘move’
   void                move(unsigned int x, unsigned int y)                    { wmove(m_window, y, x); }
                                                                                 ^~~~~
                                                                                 move
canvas.h: In member function ‘void display::Canvas::set_background(int)’:
canvas.h:74:97: error: ‘m_window’ was not declared in this scope
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                                 ^~~~~~~~
canvas.h:74:97: note: suggested alternative: ‘rewind’
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                                 ^~~~~~~~
                                                                                                 rewind
canvas.h:74:88: error: ‘wbkgdset’ was not declared in this scope
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                        ^~~~~~~~
canvas.h:74:88: note: suggested alternative: ‘wmemset’
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                        ^~~~~~~~
                                                                                        wmemset
canvas.h:74:108: error: return-statement with a value, in function returning 'void' [-fpermissive]
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                                            ^
canvas.h: In member function ‘void display::Canvas::erase()’:
canvas.h:76:88: error: ‘m_window’ was not declared in this scope
   void                erase()                                                 { werase(m_window); }
                                                                                        ^~~~~~~~
canvas.h:76:88: note: suggested alternative: ‘rewind’
   void                erase()                                                 { werase(m_window); }
                                                                                        ^~~~~~~~
                                                                                        rewind
canvas.h:76:81: error: ‘werase’ was not declared in this scope
   void                erase()                                                 { werase(m_window); }
                                                                                 ^~~~~~
canvas.h:76:81: note: suggested alternative: ‘erase’
   void                erase()                                                 { werase(m_window); }
                                                                                 ^~~~~~
                                                                                 erase
canvas.h: In static member function ‘static void display::Canvas::erase_std()’:
canvas.h:77:88: error: ‘stdscr’ was not declared in this scope
   static void         erase_std()                                             { werase(stdscr); }
                                                                                        ^~~~~~
canvas.h:77:88: note: suggested alternative: ‘stderr’
   static void         erase_std()                                             { werase(stdscr); }
                                                                                        ^~~~~~
                                                                                        stderr
canvas.h:77:81: error: ‘werase’ was not declared in this scope
   static void         erase_std()                                             { werase(stdscr); }
                                                                                 ^~~~~~
canvas.h:77:81: note: suggested alternative: ‘erase’
   static void         erase_std()                                             { werase(stdscr); }
                                                                                 ^~~~~~
                                                                                 erase
canvas.h: In member function ‘void display::Canvas::print_border(int, int, int, int, int, int, int, int)’:
canvas.h:82:89: error: ‘m_window’ was not declared in this scope
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                                                                         ^~~~~~~~
canvas.h:82:89: note: suggested alternative: ‘rewind’
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                                                                         ^~~~~~~~
                                                                                         rewind
canvas.h:82:81: error: ‘wborder’ was not declared in this scope
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                                                                 ^~~~~~~
canvas.h: In member function ‘void display::Canvas::print_char(int)’:
canvas.h:93:92: error: ‘m_window’ was not declared in this scope
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                                                                            ^~~~~~~~
canvas.h:93:92: note: suggested alternative: ‘rewind’
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                                                                            ^~~~~~~~
                                                                                            rewind
canvas.h:93:85: error: ‘waddch’ was not declared in this scope
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                                                                     ^~~~~~
canvas.h:93:85: note: suggested alternative: ‘width’
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                                                                     ^~~~~~
                                                                                     width
canvas.h: In member function ‘void display::Canvas::print_char(unsigned int, unsigned int, int)’:
canvas.h:94:94: error: ‘m_window’ was not declared in this scope
   void                print_char(unsigned int x, unsigned int y, const chtype ch) { mvwaddch(m_window, y, x, ch); }
                                                                                              ^~~~~~~~
canvas.h:94:94: note: suggested alternative: ‘rewind’
   void                print_char(unsigned int x, unsigned int y, const chtype ch) { mvwaddch(m_window, y, x, ch); }
                                                                                              ^~~~~~~~
                                                                                              rewind
canvas.h:94:85: error: ‘mvwaddch’ was not declared in this scope
   void                print_char(unsigned int x, unsigned int y, const chtype ch) { mvwaddch(m_window, y, x, ch); }
                                                                                     ^~~~~~~~
gmake[3]: *** [Makefile:358: canvas.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
canvas.h: In member function ‘void display::Canvas::set_attr(unsigned int, unsigned int, unsigned int, int, int)’:
canvas.h:96:112: error: ‘m_window’ was not declared in this scope
   void                set_attr(unsigned int x, unsigned int y, unsigned int n, int attr, int color) { mvwchgat(m_window, y, x, n, attr, color, NULL); }
                                                                                                                ^~~~~~~~
canvas.h:96:112: note: suggested alternative: ‘rewind’
   void                set_attr(unsigned int x, unsigned int y, unsigned int n, int attr, int color) { mvwchgat(m_window, y, x, n, attr, color, NULL); }
                                                                                                                ^~~~~~~~
                                                                                                                rewind
canvas.h:96:103: error: ‘mvwchgat’ was not declared in this scope
   void                set_attr(unsigned int x, unsigned int y, unsigned int n, int attr, int color) { mvwchgat(m_window, y, x, n, attr, color, NULL); }
                                                                                                       ^~~~~~~~
canvas.h:96:103: note: suggested alternative: ‘wcscat’
   void                set_attr(unsigned int x, unsigned int y, unsigned int n, int attr, int color) { mvwchgat(m_window, y, x, n, attr, color, NULL); }
                                                                                                       ^~~~~~~~
                                                                                                       wcscat
canvas.h: In member function ‘void display::Canvas::set_default_attributes(int)’:
canvas.h:98:100: error: ‘m_window’ was not declared in this scope
   void                set_default_attributes(int attr)                            { (void)wattrset(m_window, attr); }
                                                                                                    ^~~~~~~~
canvas.h:98:100: note: suggested alternative: ‘rewind’
   void                set_default_attributes(int attr)                            { (void)wattrset(m_window, attr); }
                                                                                                    ^~~~~~~~
                                                                                                    rewind
canvas.h:98:91: error: ‘wattrset’ was not declared in this scope
   void                set_default_attributes(int attr)                            { (void)wattrset(m_window, attr); }
                                                                                           ^~~~~~~~
attributes.h:67:32: error: ‘A_NORMAL’ was not declared in this scope
   static const int a_normal  = A_NORMAL;
                                ^~~~~~~~
canvas.h:98:91: note: suggested alternative: ‘tzset’
   void                set_default_attributes(int attr)                            { (void)wattrset(m_window, attr); }
                                                                                           ^~~~~~~~
                                                                                           tzset
canvas.h: In static member function ‘static int display::Canvas::get_screen_width()’:
canvas.h:104:109: error: ‘stdscr’ was not declared in this scope
   static int          get_screen_width()                                      { int x, __UNUSED y; getmaxyx(stdscr, y, x); return x; }
                                                                                                             ^~~~~~
canvas.h:104:109: note: suggested alternative: ‘stderr’
   static int          get_screen_width()                                      { int x, __UNUSED y; getmaxyx(stdscr, y, x); return x; }
                                                                                                             ^~~~~~
                                                                                                             stderr
canvas.h:104:100: error: ‘getmaxyx’ was not declared in this scope
   static int          get_screen_width()                                      { int x, __UNUSED y; getmaxyx(stdscr, y, x); return x; }
                                                                                                    ^~~~~~~~
attributes.h:68:32: error: ‘A_BOLD’ was not declared in this scope
   static const int a_bold    = A_BOLD;
                                ^~~~~~
canvas.h:104:100: note: suggested alternative: ‘get_x’
   static int          get_screen_width()                                      { int x, __UNUSED y; getmaxyx(stdscr, y, x); return x; }
                                                                                                    ^~~~~~~~
                                                                                                    get_x
canvas.h: In static member function ‘static int display::Canvas::get_screen_height()’:
canvas.h:105:100: error: ‘stdscr’ was not declared in this scope
   static int          get_screen_height()                                     { int x, y; getmaxyx(stdscr, y, x); return y; }
                                                                                                    ^~~~~~
attributes.h:69:32: error: ‘A_REVERSE’ was not declared in this scope
   static const int a_reverse = A_REVERSE;
                                ^~~~~~~~~
canvas.h:105:100: note: suggested alternative: ‘stderr’
   static int          get_screen_height()                                     { int x, y; getmaxyx(stdscr, y, x); return y; }
                                                                                                    ^~~~~~
                                                                                                    stderr
canvas.h:105:91: error: ‘getmaxyx’ was not declared in this scope
   static int          get_screen_height()                                     { int x, y; getmaxyx(stdscr, y, x); return y; }
                                                                                           ^~~~~~~~
canvas.h:105:91: note: suggested alternative: ‘get_x’
   static int          get_screen_height()                                     { int x, y; getmaxyx(stdscr, y, x); return y; }
                                                                                           ^~~~~~~~
                                                                                           get_x
canvas.h: In static member function ‘static void display::Canvas::do_update()’:
canvas.h:109:81: error: ‘doupdate’ was not declared in this scope
   static void         do_update()                                             { doupdate(); }
                                                                                 ^~~~~~~~
canvas.h:109:81: note: suggested alternative: ‘do_update’
   static void         do_update()                                             { doupdate(); }
                                                                                 ^~~~~~~~
                                                                                 do_update
canvas.h: In member function ‘void display::Canvas::print(const char*, ...)’:
canvas.h:124:3: error: ‘va_start’ was not declared in this scope
   va_start(arglist, str);
   ^~~~~~~~
canvas.h:124:3: note: suggested alternative: ‘va_list’
   va_start(arglist, str);
   ^~~~~~~~
   va_list
canvas.h:125:13: error: ‘m_window’ was not declared in this scope
   vw_printw(m_window, const_cast<char*>(str), arglist);
             ^~~~~~~~
In file included from window.h:43:0,
                 from frame.cc:46:
canvas.h:73:3: error: ‘chtype’ does not name a type; did you mean ‘ctime’?
   chtype              get_background()                                        { return getbkgd(m_window); }
   ^~~~~~
   ctime
canvas.h:74:38: error: ‘chtype’ has not been declared
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                      ^~~~~~
canvas.h:79:36: error: ‘chtype’ has not been declared
   void                print_border(chtype ls, chtype rs,
                                    ^~~~~~
canvas.h:79:47: error: ‘chtype’ has not been declared
   void                print_border(chtype ls, chtype rs,
                                               ^~~~~~
canvas.h:80:36: error: ‘chtype’ has not been declared
                                    chtype ts, chtype bs,
                                    ^~~~~~
canvas.h:80:47: error: ‘chtype’ has not been declared
                                    chtype ts, chtype bs,
                                               ^~~~~~
canvas.h:81:36: error: ‘chtype’ has not been declared
                                    chtype tl, chtype tr,
                                    ^~~~~~
canvas.h:81:47: error: ‘chtype’ has not been declared
                                    chtype tl, chtype tr,
                                               ^~~~~~
canvas.h:82:36: error: ‘chtype’ has not been declared
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                    ^~~~~~
canvas.h:82:47: error: ‘chtype’ has not been declared
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                               ^~~~~~
canvas.h:125:13: note: suggested alternative: ‘rewind’
   vw_printw(m_window, const_cast<char*>(str), arglist);
             ^~~~~~~~
             rewind
canvas.h:125:3: error: ‘vw_printw’ was not declared in this scope
   vw_printw(m_window, const_cast<char*>(str), arglist);
   ^~~~~~~~~
canvas.h:93:40: error: ‘chtype’ does not name a type; did you mean ‘ctime’?
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                        ^~~~~~
                                        ctime
canvas.h:125:3: note: suggested alternative: ‘vwprintf’
   vw_printw(m_window, const_cast<char*>(str), arglist);
   ^~~~~~~~~
   vwprintf
canvas.h:126:3: error: ‘va_end’ was not declared in this scope
   va_end(arglist);
   ^~~~~~
canvas.h:94:72: error: ‘chtype’ does not name a type; did you mean ‘ctime’?
   void                print_char(unsigned int x, unsigned int y, const chtype ch) { mvwaddch(m_window, y, x, ch); }
                                                                        ^~~~~~
                                                                        ctime
canvas.h:126:3: note: suggested alternative: ‘rand’
   va_end(arglist);
   ^~~~~~
   rand
canvas.h: In member function ‘void display::Canvas::print(unsigned int, unsigned int, const char*, ...)’:
canvas.h:133:3: error: ‘va_start’ was not declared in this scope
   va_start(arglist, str);
   ^~~~~~~~
canvas.h:117:3: error: ‘WINDOW’ does not name a type
   WINDOW*             m_window;
   ^~~~~~
In file included from window.h:43:0,
                 from frame.cc:46:
canvas.h: In destructor ‘display::Canvas::~Canvas()’:
canvas.h:52:22: error: ‘m_window’ was not declared in this scope
   ~Canvas() { delwin(m_window); }
                      ^~~~~~~~
canvas.h:133:3: note: suggested alternative: ‘va_list’
   va_start(arglist, str);
   ^~~~~~~~
   va_list
canvas.h:134:9: error: ‘m_window’ was not declared in this scope
   wmove(m_window, y, x);
         ^~~~~~~~
canvas.h:52:22: note: suggested alternative: ‘Window’
   ~Canvas() { delwin(m_window); }
                      ^~~~~~~~
                      Window
canvas.h:52:15: error: ‘delwin’ was not declared in this scope
   ~Canvas() { delwin(m_window); }
               ^~~~~~
canvas.h:134:9: note: suggested alternative: ‘rewind’
   wmove(m_window, y, x);
         ^~~~~~~~
         rewind
canvas.h:134:3: error: ‘wmove’ was not declared in this scope
   wmove(m_window, y, x);
   ^~~~~
canvas.h:52:15: note: suggested alternative: ‘rewind’
   ~Canvas() { delwin(m_window); }
               ^~~~~~
               rewind
canvas.h: In member function ‘void display::Canvas::refresh()’:
canvas.h:54:94: error: ‘m_window’ was not declared in this scope
   void                refresh()                                               { wnoutrefresh(m_window); }
                                                                                              ^~~~~~~~
canvas.h:134:3: note: suggested alternative: ‘move’
   wmove(m_window, y, x);
   ^~~~~
   move
canvas.h:135:3: error: ‘vw_printw’ was not declared in this scope
   vw_printw(m_window, const_cast<char*>(str), arglist);
   ^~~~~~~~~
canvas.h:135:3: note: suggested alternative: ‘vwprintf’
   vw_printw(m_window, const_cast<char*>(str), arglist);
   ^~~~~~~~~
   vwprintf
canvas.h:136:3: error: ‘va_end’ was not declared in this scope
   va_end(arglist);
   ^~~~~~
canvas.h:54:94: note: suggested alternative: ‘Window’
   void                refresh()                                               { wnoutrefresh(m_window); }
                                                                                              ^~~~~~~~
                                                                                              Window
canvas.h:54:81: error: ‘wnoutrefresh’ was not declared in this scope
   void                refresh()                                               { wnoutrefresh(m_window); }
                                                                                 ^~~~~~~~~~~~
canvas.h:136:3: note: suggested alternative: ‘rand’
   va_end(arglist);
   ^~~~~~
   rand
canvas.h:54:81: note: suggested alternative: ‘refresh’
   void                refresh()                                               { wnoutrefresh(m_window); }
                                                                                 ^~~~~~~~~~~~
                                                                                 refresh
canvas.h: In static member function ‘static void display::Canvas::refresh_std()’:
canvas.h:55:94: error: ‘stdscr’ was not declared in this scope
   static void         refresh_std()                                           { wnoutrefresh(stdscr); }
                                                                                              ^~~~~~
canvas.h:55:94: note: suggested alternative: ‘stderr’
   static void         refresh_std()                                           { wnoutrefresh(stdscr); }
                                                                                              ^~~~~~
                                                                                              stderr
canvas.h:55:81: error: ‘wnoutrefresh’ was not declared in this scope
   static void         refresh_std()                                           { wnoutrefresh(stdscr); }
                                                                                 ^~~~~~~~~~~~
canvas.h:55:81: note: suggested alternative: ‘refresh’
   static void         refresh_std()                                           { wnoutrefresh(stdscr); }
                                                                                 ^~~~~~~~~~~~
                                                                                 refresh
canvas.h: In member function ‘void display::Canvas::redraw()’:
canvas.h:56:91: error: ‘m_window’ was not declared in this scope
   void                redraw()                                                { redrawwin(m_window); }
                                                                                           ^~~~~~~~
canvas.h:56:91: note: suggested alternative: ‘Window’
   void                redraw()                                                { redrawwin(m_window); }
                                                                                           ^~~~~~~~
                                                                                           Window
canvas.h:56:81: error: ‘redrawwin’ was not declared in this scope
   void                redraw()                                                { redrawwin(m_window); }
                                                                                 ^~~~~~~~~
canvas.h:56:81: note: suggested alternative: ‘redraw’
   void                redraw()                                                { redrawwin(m_window); }
                                                                                 ^~~~~~~~~
                                                                                 redraw
canvas.h: In static member function ‘static void display::Canvas::redraw_std()’:
canvas.h:57:91: error: ‘stdscr’ was not declared in this scope
   static void         redraw_std()                                            { redrawwin(stdscr); }
                                                                                           ^~~~~~
canvas.h:57:91: note: suggested alternative: ‘stderr’
   static void         redraw_std()                                            { redrawwin(stdscr); }
                                                                                           ^~~~~~
                                                                                           stderr
canvas.h:57:81: error: ‘redrawwin’ was not declared in this scope
   static void         redraw_std()                                            { redrawwin(stdscr); }
                                                                                 ^~~~~~~~~
canvas.h:57:81: note: suggested alternative: ‘redraw’
   static void         redraw_std()                                            { redrawwin(stdscr); }
                                                                                 ^~~~~~~~~
                                                                                 redraw
canvas.h: In member function ‘void display::Canvas::resize(int, int)’:
canvas.h:59:89: error: ‘m_window’ was not declared in this scope
   void                resize(int w, int h)                                    { wresize(m_window, h, w); }
                                                                                         ^~~~~~~~
canvas.h:59:89: note: suggested alternative: ‘Window’
   void                resize(int w, int h)                                    { wresize(m_window, h, w); }
                                                                                         ^~~~~~~~
                                                                                         Window
canvas.h:59:81: error: ‘wresize’ was not declared in this scope
   void                resize(int w, int h)                                    { wresize(m_window, h, w); }
                                                                                 ^~~~~~~
canvas.h:59:81: note: suggested alternative: ‘resize’
   void                resize(int w, int h)                                    { wresize(m_window, h, w); }
                                                                                 ^~~~~~~
                                                                                 resize
canvas.h: In static member function ‘static void display::Canvas::resize_term(int, int)’:
canvas.h:62:81: error: ‘resizeterm’ was not declared in this scope
   static void         resize_term(int x, int y)                               { resizeterm(y, x); }
                                                                                 ^~~~~~~~~~
canvas.h:62:81: note: suggested alternative: ‘resize_term’
   static void         resize_term(int x, int y)                               { resizeterm(y, x); }
                                                                                 ^~~~~~~~~~
                                                                                 resize_term
canvas.h: In static member function ‘static void display::Canvas::resize_term(std::pair<int, int>)’:
canvas.h:63:81: error: ‘resizeterm’ was not declared in this scope
   static void         resize_term(std::pair<int, int> dim)                    { resizeterm(dim.second, dim.first); }
                                                                                 ^~~~~~~~~~
canvas.h:63:81: note: suggested alternative: ‘resize_term’
   static void         resize_term(std::pair<int, int> dim)                    { resizeterm(dim.second, dim.first); }
                                                                                 ^~~~~~~~~~
                                                                                 resize_term
canvas.h: In member function ‘unsigned int display::Canvas::get_x()’:
canvas.h:65:106: error: ‘m_window’ was not declared in this scope
   unsigned int        get_x()                                                 { int x, __UNUSED y; getyx(m_window, y, x); return x; }
                                                                                                          ^~~~~~~~
canvas.h:65:106: note: suggested alternative: ‘Window’
   unsigned int        get_x()                                                 { int x, __UNUSED y; getyx(m_window, y, x); return x; }
                                                                                                          ^~~~~~~~
                                                                                                          Window
canvas.h:65:100: error: ‘getyx’ was not declared in this scope
   unsigned int        get_x()                                                 { int x, __UNUSED y; getyx(m_window, y, x); return x; }
                                                                                                    ^~~~~
canvas.h:65:100: note: suggested alternative: ‘get_x’
   unsigned int        get_x()                                                 { int x, __UNUSED y; getyx(m_window, y, x); return x; }
                                                                                                    ^~~~~
                                                                                                    get_x
In file included from window.h:43:0,
                 from frame.cc:46:
canvas.h: In member function ‘unsigned int display::Canvas::get_y()’:
canvas.h:66:97: error: ‘m_window’ was not declared in this scope
   unsigned int        get_y()                                                 { int x, y; getyx(m_window, y, x); return y; }
                                                                                                 ^~~~~~~~
canvas.h:66:97: note: suggested alternative: ‘Window’
   unsigned int        get_y()                                                 { int x, y; getyx(m_window, y, x); return y; }
                                                                                                 ^~~~~~~~
                                                                                                 Window
canvas.h:66:91: error: ‘getyx’ was not declared in this scope
   unsigned int        get_y()                                                 { int x, y; getyx(m_window, y, x); return y; }
                                                                                           ^~~~~
canvas.h:66:91: note: suggested alternative: ‘get_x’
   unsigned int        get_y()                                                 { int x, y; getyx(m_window, y, x); return y; }
                                                                                           ^~~~~
                                                                                           get_x
canvas.h: In member function ‘unsigned int display::Canvas::width()’:
canvas.h:68:109: error: ‘m_window’ was not declared in this scope
   unsigned int        width()                                                 { int x, __UNUSED y; getmaxyx(m_window, y, x); return x; }
                                                                                                             ^~~~~~~~
canvas.h:68:109: note: suggested alternative: ‘Window’
   unsigned int        width()                                                 { int x, __UNUSED y; getmaxyx(m_window, y, x); return x; }
                                                                                                             ^~~~~~~~
                                                                                                             Window
canvas.h:68:100: error: ‘getmaxyx’ was not declared in this scope
   unsigned int        width()                                                 { int x, __UNUSED y; getmaxyx(m_window, y, x); return x; }
                                                                                                    ^~~~~~~~
canvas.h:68:100: note: suggested alternative: ‘get_x’
   unsigned int        width()                                                 { int x, __UNUSED y; getmaxyx(m_window, y, x); return x; }
                                                                                                    ^~~~~~~~
                                                                                                    get_x
canvas.h: In member function ‘unsigned int display::Canvas::height()’:
canvas.h:69:100: error: ‘m_window’ was not declared in this scope
   unsigned int        height()                                                { int x, y; getmaxyx(m_window, y, x); return y; }
                                                                                                    ^~~~~~~~
canvas.h:69:100: note: suggested alternative: ‘Window’
   unsigned int        height()                                                { int x, y; getmaxyx(m_window, y, x); return y; }
                                                                                                    ^~~~~~~~
                                                                                                    Window
canvas.h:69:91: error: ‘getmaxyx’ was not declared in this scope
   unsigned int        height()                                                { int x, y; getmaxyx(m_window, y, x); return y; }
                                                                                           ^~~~~~~~
canvas.h:69:91: note: suggested alternative: ‘get_x’
   unsigned int        height()                                                { int x, y; getmaxyx(m_window, y, x); return y; }
                                                                                           ^~~~~~~~
                                                                                           get_x
canvas.h: In member function ‘void display::Canvas::move(unsigned int, unsigned int)’:
canvas.h:71:87: error: ‘m_window’ was not declared in this scope
   void                move(unsigned int x, unsigned int y)                    { wmove(m_window, y, x); }
                                                                                       ^~~~~~~~
canvas.h:71:87: note: suggested alternative: ‘Window’
   void                move(unsigned int x, unsigned int y)                    { wmove(m_window, y, x); }
                                                                                       ^~~~~~~~
                                                                                       Window
canvas.h:71:81: error: ‘wmove’ was not declared in this scope
   void                move(unsigned int x, unsigned int y)                    { wmove(m_window, y, x); }
                                                                                 ^~~~~
canvas.h:71:81: note: suggested alternative: ‘move’
   void                move(unsigned int x, unsigned int y)                    { wmove(m_window, y, x); }
                                                                                 ^~~~~
                                                                                 move
canvas.h: In member function ‘void display::Canvas::set_background(int)’:
canvas.h:74:97: error: ‘m_window’ was not declared in this scope
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                                 ^~~~~~~~
canvas.h:74:97: note: suggested alternative: ‘Window’
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                                 ^~~~~~~~
                                                                                                 Window
canvas.h:74:88: error: ‘wbkgdset’ was not declared in this scope
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                        ^~~~~~~~
canvas.h:74:88: note: suggested alternative: ‘wmemset’
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                        ^~~~~~~~
                                                                                        wmemset
canvas.h:74:108: error: return-statement with a value, in function returning 'void' [-fpermissive]
   void                set_background(chtype c)                                { return wbkgdset(m_window, c); }
                                                                                                            ^
canvas.h: In member function ‘void display::Canvas::erase()’:
canvas.h:76:88: error: ‘m_window’ was not declared in this scope
   void                erase()                                                 { werase(m_window); }
                                                                                        ^~~~~~~~
canvas.h:76:88: note: suggested alternative: ‘Window’
   void                erase()                                                 { werase(m_window); }
                                                                                        ^~~~~~~~
                                                                                        Window
canvas.h:76:81: error: ‘werase’ was not declared in this scope
   void                erase()                                                 { werase(m_window); }
                                                                                 ^~~~~~
canvas.h:76:81: note: suggested alternative: ‘erase’
   void                erase()                                                 { werase(m_window); }
                                                                                 ^~~~~~
                                                                                 erase
canvas.h: In static member function ‘static void display::Canvas::erase_std()’:
canvas.h:77:88: error: ‘stdscr’ was not declared in this scope
   static void         erase_std()                                             { werase(stdscr); }
                                                                                        ^~~~~~
canvas.h:77:88: note: suggested alternative: ‘stderr’
   static void         erase_std()                                             { werase(stdscr); }
                                                                                        ^~~~~~
                                                                                        stderr
canvas.h:77:81: error: ‘werase’ was not declared in this scope
   static void         erase_std()                                             { werase(stdscr); }
                                                                                 ^~~~~~
canvas.h:77:81: note: suggested alternative: ‘erase’
   static void         erase_std()                                             { werase(stdscr); }
                                                                                 ^~~~~~
                                                                                 erase
canvas.h: In member function ‘void display::Canvas::print_border(int, int, int, int, int, int, int, int)’:
canvas.h:82:89: error: ‘m_window’ was not declared in this scope
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                                                                         ^~~~~~~~
canvas.h:82:89: note: suggested alternative: ‘Window’
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                                                                         ^~~~~~~~
                                                                                         Window
canvas.h:82:81: error: ‘wborder’ was not declared in this scope
                                    chtype bl, chtype br)                      { wborder(m_window, ls, rs, ts, bs, tl, tr, bl, br); }
                                                                                 ^~~~~~~
canvas.h: In member function ‘void display::Canvas::print_char(int)’:
canvas.h:93:92: error: ‘m_window’ was not declared in this scope
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                                                                            ^~~~~~~~
canvas.h:93:92: note: suggested alternative: ‘Window’
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                                                                            ^~~~~~~~
                                                                                            Window
canvas.h:93:85: error: ‘waddch’ was not declared in this scope
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                                                                     ^~~~~~
canvas.h:93:85: note: suggested alternative: ‘width’
   void                print_char(const chtype ch)                                 { waddch(m_window, ch); }
                                                                                     ^~~~~~
                                                                                     width
canvas.h: In member function ‘void display::Canvas::print_char(unsigned int, unsigned int, int)’:
canvas.h:94:94: error: ‘m_window’ was not declared in this scope
   void                print_char(unsigned int x, unsigned int y, const chtype ch) { mvwaddch(m_window, y, x, ch); }
                                                                                              ^~~~~~~~
canvas.h:94:94: note: suggested alternative: ‘Window’
   void                print_char(unsigned int x, unsigned int y, const chtype ch) { mvwaddch(m_window, y, x, ch); }
                                                                                              ^~~~~~~~
                                                                                              Window
canvas.h:94:85: error: ‘mvwaddch’ was not declared in this scope
   void                print_char(unsigned int x, unsigned int y, const chtype ch) { mvwaddch(m_window, y, x, ch); }
                                                                                     ^~~~~~~~
canvas.h: In member function ‘void display::Canvas::set_attr(unsigned int, unsigned int, unsigned int, int, int)’:
canvas.h:96:112: error: ‘m_window’ was not declared in this scope
   void                set_attr(unsigned int x, unsigned int y, unsigned int n, int attr, int color) { mvwchgat(m_window, y, x, n, attr, color, NULL); }
                                                                                                                ^~~~~~~~
canvas.h:96:112: note: suggested alternative: ‘Window’
   void                set_attr(unsigned int x, unsigned int y, unsigned int n, int attr, int color) { mvwchgat(m_window, y, x, n, attr, color, NULL); }
                                                                                                                ^~~~~~~~
                                                                                                                Window
canvas.h:96:103: error: ‘mvwchgat’ was not declared in this scope
   void                set_attr(unsigned int x, unsigned int y, unsigned int n, int attr, int color) { mvwchgat(m_window, y, x, n, attr, color, NULL); }
                                                                                                       ^~~~~~~~
canvas.h:96:103: note: suggested alternative: ‘wcscat’
   void                set_attr(unsigned int x, unsigned int y, unsigned int n, int attr, int color) { mvwchgat(m_window, y, x, n, attr, color, NULL); }
                                                                                                       ^~~~~~~~
                                                                                                       wcscat
canvas.h: In member function ‘void display::Canvas::set_default_attributes(int)’:
canvas.h:98:100: error: ‘m_window’ was not declared in this scope
   void                set_default_attributes(int attr)                            { (void)wattrset(m_window, attr); }
                                                                                                    ^~~~~~~~
canvas.h:98:100: note: suggested alternative: ‘Window’
   void                set_default_attributes(int attr)                            { (void)wattrset(m_window, attr); }
                                                                                                    ^~~~~~~~
                                                                                                    Window
canvas.h:98:91: error: ‘wattrset’ was not declared in this scope
   void                set_default_attributes(int attr)                            { (void)wattrset(m_window, attr); }
                                                                                           ^~~~~~~~
canvas.h:98:91: note: suggested alternative: ‘tzset’
   void                set_default_attributes(int attr)                            { (void)wattrset(m_window, attr); }
                                                                                           ^~~~~~~~
                                                                                           tzset
canvas.h: In static member function ‘static int display::Canvas::get_screen_width()’:
canvas.h:104:109: error: ‘stdscr’ was not declared in this scope
   static int          get_screen_width()                                      { int x, __UNUSED y; getmaxyx(stdscr, y, x); return x; }
                                                                                                             ^~~~~~
canvas.h:104:109: note: suggested alternative: ‘stderr’
   static int          get_screen_width()                                      { int x, __UNUSED y; getmaxyx(stdscr, y, x); return x; }
                                                                                                             ^~~~~~
                                                                                                             stderr
canvas.h:104:100: error: ‘getmaxyx’ was not declared in this scope
   static int          get_screen_width()                                      { int x, __UNUSED y; getmaxyx(stdscr, y, x); return x; }
                                                                                                    ^~~~~~~~
canvas.h:104:100: note: suggested alternative: ‘get_x’
   static int          get_screen_width()                                      { int x, __UNUSED y; getmaxyx(stdscr, y, x); return x; }
                                                                                                    ^~~~~~~~
                                                                                                    get_x
canvas.h: In static member function ‘static int display::Canvas::get_screen_height()’:
canvas.h:105:100: error: ‘stdscr’ was not declared in this scope
   static int          get_screen_height()                                     { int x, y; getmaxyx(stdscr, y, x); return y; }
                                                                                                    ^~~~~~
canvas.h:105:100: note: suggested alternative: ‘stderr’
   static int          get_screen_height()                                     { int x, y; getmaxyx(stdscr, y, x); return y; }
                                                                                                    ^~~~~~
                                                                                                    stderr
canvas.h:105:91: error: ‘getmaxyx’ was not declared in this scope
   static int          get_screen_height()                                     { int x, y; getmaxyx(stdscr, y, x); return y; }
                                                                                           ^~~~~~~~
canvas.h:105:91: note: suggested alternative: ‘get_x’
   static int          get_screen_height()                                     { int x, y; getmaxyx(stdscr, y, x); return y; }
                                                                                           ^~~~~~~~
                                                                                           get_x
canvas.h: In static member function ‘static void display::Canvas::do_update()’:
canvas.h:109:81: error: ‘doupdate’ was not declared in this scope
   static void         do_update()                                             { doupdate(); }
                                                                                 ^~~~~~~~
canvas.h:109:81: note: suggested alternative: ‘do_update’
   static void         do_update()                                             { doupdate(); }
                                                                                 ^~~~~~~~
                                                                                 do_update
canvas.h: In member function ‘void display::Canvas::print(const char*, ...)’:
canvas.h:124:3: error: ‘va_start’ was not declared in this scope
   va_start(arglist, str);
   ^~~~~~~~
canvas.h:124:3: note: suggested alternative: ‘va_list’
   va_start(arglist, str);
   ^~~~~~~~
   va_list
canvas.h:125:13: error: ‘m_window’ was not declared in this scope
   vw_printw(m_window, const_cast<char*>(str), arglist);
             ^~~~~~~~
canvas.h:125:13: note: suggested alternative: ‘Window’
   vw_printw(m_window, const_cast<char*>(str), arglist);
             ^~~~~~~~
             Window
canvas.h:125:3: error: ‘vw_printw’ was not declared in this scope
   vw_printw(m_window, const_cast<char*>(str), arglist);
   ^~~~~~~~~
canvas.h:125:3: note: suggested alternative: ‘vwprintf’
   vw_printw(m_window, const_cast<char*>(str), arglist);
   ^~~~~~~~~
   vwprintf
canvas.h:126:3: error: ‘va_end’ was not declared in this scope
   va_end(arglist);
   ^~~~~~
canvas.h:126:3: note: suggested alternative: ‘rand’
   va_end(arglist);
   ^~~~~~
   rand
canvas.h: In member function ‘void display::Canvas::print(unsigned int, unsigned int, const char*, ...)’:
canvas.h:133:3: error: ‘va_start’ was not declared in this scope
   va_start(arglist, str);
   ^~~~~~~~
canvas.h:133:3: note: suggested alternative: ‘va_list’
   va_start(arglist, str);
   ^~~~~~~~
   va_list
canvas.h:134:9: error: ‘m_window’ was not declared in this scope
   wmove(m_window, y, x);
         ^~~~~~~~
canvas.h:134:9: note: suggested alternative: ‘Window’
   wmove(m_window, y, x);
         ^~~~~~~~
         Window
canvas.h:134:3: error: ‘wmove’ was not declared in this scope
   wmove(m_window, y, x);
   ^~~~~
In file included from ./../globals.h:41:0,
                 from manager.cc:44:
../../rak/priority_queue_default.h: In destructor ‘rak::priority_item::~priority_item()’:
../../rak/priority_queue_default.h:56:95: warning: throw will always call terminate() [-Wterminate]
       throw torrent::internal_error("priority_item::~priority_item() called on a queued item.");
                                                                                               ^
../../rak/priority_queue_default.h:56:95: note: in C++11 destructors default to noexcept
canvas.h:134:3: note: suggested alternative: ‘move’
   wmove(m_window, y, x);
   ^~~~~
   move
canvas.h:135:3: error: ‘vw_printw’ was not declared in this scope
   vw_printw(m_window, const_cast<char*>(str), arglist);
   ^~~~~~~~~
canvas.h:135:3: note: suggested alternative: ‘vwprintf’
   vw_printw(m_window, const_cast<char*>(str), arglist);
   ^~~~~~~~~
   vwprintf
canvas.h:136:3: error: ‘va_end’ was not declared in this scope
   va_end(arglist);
   ^~~~~~
canvas.h:136:3: note: suggested alternative: ‘rand’
   va_end(arglist);
   ^~~~~~
   rand
In file included from ./../globals.h:41:0,
                 from window.h:44,
                 from frame.cc:46:
../../rak/priority_queue_default.h: In destructor ‘rak::priority_item::~priority_item()’:
../../rak/priority_queue_default.h:56:95: warning: throw will always call terminate() [-Wterminate]
       throw torrent::internal_error("priority_item::~priority_item() called on a queued item.");
                                                                                               ^
../../rak/priority_queue_default.h:56:95: note: in C++11 destructors default to noexcept
gmake[3]: *** [Makefile:358: manager.o] Error 1
gmake[3]: *** [Makefile:358: frame.o] Error 1
In file included from ./../globals.h:41:0,
                 from ./../core/download.h:47,
                 from utils.cc:57:
../../rak/priority_queue_default.h: In destructor ‘rak::priority_item::~priority_item()’:
../../rak/priority_queue_default.h:56:95: warning: throw will always call terminate() [-Wterminate]
       throw torrent::internal_error("priority_item::~priority_item() called on a queued item.");
                                                                                               ^
../../rak/priority_queue_default.h:56:95: note: in C++11 destructors default to noexcept
mv -f .deps/utils.Tpo .deps/utils.Po```
chros73 commented 5 years ago

Can you compile official 0.9.6/0.13.6 manually with gcc 4.4.7?

stevezau commented 5 years ago

I actually went into the libtorrent folder and ran a ./configure and it complied fine. It broke if i used the same configure as build.sh (with all the included libs etc).

TBH, i am going to just go through the pain and upgrade to centos 7

chros73 commented 5 years ago

Try to build rtorrent-ps-ch (it uses a bit different build.sh), I'd be curious about the result :)

pyroscope commented 5 years ago

What is definitely not supported is running recent on ooooooooooold – there are limits how far you can stretch these things. Coming rt version will again raise the C++ std lower limit.

Install a decent distro, and run the rotting stuff in Docker.