LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-02-2017, 07:14 AM   #1
slaurel
LQ Newbie
 
Registered: Nov 2017
Posts: 3

Rep: Reputation: Disabled
Running Arch Linux Package Installation Fails "not declared in this scope"


I'm running Arch Linux in a VirtualBox virtual machine with MacOS High Sierra as the host.
Going to the AUR and trying to build and install various versions of rtorrent always fails with:

canvas.h:96:103: error: ‘mvwchgat’ was not declared in this scope
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’
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
set_default_attributes(int attr) { (void)wattrset(m_window, attr); }
^~~~~~~~
canvas.h:98:100: note: suggested alternative: ‘rewind’
set_default_attributes(int attr) { (void)wattrset(m_window, attr); }
^~~~~~~~
rewind
canvas.h:98:91: error: ‘wattrset’ was not declared in this scope
set_default_attributes(int attr) { (void)wattrset(m_window, attr); }
^~~~~~~~
canvas.h:98:91: note: suggested alternative: ‘tzset’
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
screen_width() { int x, __UNUSED y; getmaxyx(stdscr, y, x); return x; }
^~~~~~
canvas.h:104:109: note: suggested alternative: ‘stderr’
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
get_screen_width() { int x, __UNUSED y; getmaxyx(stdscr, y, x); return x; }
^~~~~~~~
canvas.h:104:100: note: suggested alternative: ‘get_x’
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
get_screen_height() { int x, y; getmaxyx(stdscr, y, x); return y; }
^~~~~~
canvas.h:105:100: note: suggested alternative: ‘stderr’
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
int get_screen_height() { int x, y; getmaxyx(stdscr, y, x); return y; }
^~~~~~~~
canvas.h:105:91: note: suggested alternative: ‘get_x’
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:rint(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:rint(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:rint_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: ‘start_color’ was not declared in this scope
start_color();
^~~~~~~~~~~
canvas.cc:102:3: note: suggested alternative: ‘strtol_l’
start_color();
^~~~~~~~~~~
strtol_l
canvas.cc:103:3: error: ‘use_default_colors’ was not declared in this scope
use_default_colors();
^~~~~~~~~~~~~~~~~~
canvas.cc:103:3: note: suggested alternative: ‘set_default_attributes’
use_default_colors();
^~~~~~~~~~~~~~~~~~
set_default_attributes
canvas.cc:104:3: error: ‘init_pair’ was not declared in this scope
init_pair(4, -1, -1);
^~~~~~~~~
canvas.cc:104:3: note: suggested alternative: ‘initstate’
init_pair(4, -1, -1);
^~~~~~~~~
initstate
canvas.cc:108:3: error: ‘raw’ was not declared in this scope
raw();
^~~
canvas.cc:108:3: note: suggested alternative: ‘rand’
raw();
^~~
rand
canvas.cc:109:3: error: ‘noecho’ was not declared in this scope
noecho();
^~~~~~
canvas.cc:110:11: error: ‘stdscr’ was not declared in this scope
nodelay(stdscr, TRUE);
^~~~~~
canvas.cc:110:11: note: suggested alternative: ‘stderr’
nodelay(stdscr, TRUE);
^~~~~~
stderr
canvas.cc:110:19: error: ‘TRUE’ was not declared in this scope
nodelay(stdscr, TRUE);
^~~~
canvas.cc:110:3: error: ‘nodelay’ was not declared in this scope
nodelay(stdscr, TRUE);
^~~~~~~
canvas.cc:111:3: error: ‘keypad’ was not declared in this scope
keypad(stdscr, TRUE);
^~~~~~
canvas.cc:111:3: note: suggested alternative: ‘key_t’
keypad(stdscr, TRUE);
^~~~~~
key_t
canvas.cc:112:3: error: ‘curs_set’ was not declared in this scope
curs_set(0);
^~~~~~~~
canvas.cc:112:3: note: suggested alternative: ‘fd_set’
curs_set(0);
^~~~~~~~
fd_set
canvas.cc: In static member function ‘static void display::Canvas::cleanup()’:
canvas.cc:122:3: error: ‘noraw’ was not declared in this scope
noraw();
^~~~~
canvas.cc:122:3: note: suggested alternative: ‘redraw’
noraw();
^~~~~
redraw
canvas.cc:123:3: error: ‘endwin’ was not declared in this scope
endwin();
^~~~~~
canvas.cc:123:3: note: suggested alternative: ‘stdin’
endwin();
^~~~~~
stdin
make[3]: *** [Makefile:474: canvas.o] Error 1
make[3]: Leaving directory '/tmp/yaourt-tmp-slaurel/aur-rtorrent-color/src/rtorrent-0.9.6/src/display'
make[2]: *** [Makefile:609: all-recursive] Error 1
make[2]: Leaving directory '/tmp/yaourt-tmp-slaurel/aur-rtorrent-color/src/rtorrent-0.9.6/src'
make[1]: *** [Makefile:445: all-recursive] Error 1
make[1]: Leaving directory '/tmp/yaourt-tmp-slaurel/aur-rtorrent-color/src/rtorrent-0.9.6'
make: *** [Makefile:377: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build rtorrent-color.
==> Restart building rtorrent-color ? [y/N]
==> ---------------------------------------
==>

Having no knowledge of programming I have no idea what this means or how to fix it.

Also, before anyone asks, I'm not posting this to Arch forums as I seem to be unable to register. Perhaps because I'm running Arch in a virtual machine?

In any case, any help would be greatly appreciated.
 
Old 11-02-2017, 10:36 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,704

Rep: Reputation: 245Reputation: 245Reputation: 245
Looks like there are a lot of unmet dependencies. Haven't run Arch in a while but IIRC if you run:
Code:
$ makepkg -s
instead of:
Code:
$ makepkg
the necessary dependencies will be automatically downloaded and installed. Give that a try and see if the package builds.
 
Old 11-02-2017, 01:42 PM   #3
slaurel
LQ Newbie
 
Registered: Nov 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks, but no good. I'm running makepkg -si and getting those errors.
 
Old 11-02-2017, 02:05 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,471
Blog Entries: 9

Rep: Reputation: 3375Reputation: 3375Reputation: 3375Reputation: 3375Reputation: 3375Reputation: 3375Reputation: 3375Reputation: 3375Reputation: 3375Reputation: 3375Reputation: 3375
i have to ask, why don't you install rtorrent from [community]?
and, which exact version are you now trying to install?
i am trying with rtorrent-git, and it fails even building its dependency, libtorrent-git, with errors like this:
"error: invalid use of incomplete type ‘DH {aka struct dh_st}’"

also, have you installed the required packages for building AUR software? i don't remember exactly, but it should be on wiki.archlinux/AUR (not an exact link).

Quote:
Originally Posted by slaurel View Post
Also, before anyone asks, I'm not posting this to Arch forums as I seem to be unable to register.
:lol:
 
Old 11-03-2017, 09:20 AM   #5
slaurel
LQ Newbie
 
Registered: Nov 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
I could have sworn last time I did:

sudo pacman -S rtorrent

it came back with a "not found" error message. Now it's there.

It would be interesting to know where exactly I screwed up.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
g++ in ubuntu 64bit encounter "not declared in this scope" ansonc Linux - Software 6 12-01-2014 08:59 PM
g++ in ubuntu 64bit encounter "not declared in this scope" ansonc Linux - Software 1 11-27-2014 04:13 AM
Errors while compiling Faust: "PATH_MAX was not declared in this scope" prasadbrg Linux - Software 6 12-15-2008 01:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration