Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while trying to install #9

Open
AliAlmasi opened this issue Oct 20, 2024 · 0 comments
Open

Error while trying to install #9

AliAlmasi opened this issue Oct 20, 2024 · 0 comments

Comments

@AliAlmasi
Copy link

When I tried to install from AUR using paru, this happened:

[ 57%] Building CXX object CMakeFiles/pcurses.dir/src/history.cpp.o
/usr/bin/c++ -D_FILE_OFFSET_BITS=64 -I/home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5 -I/home/ali/.cache/paru/clone/pcurses/src/build/src -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS   -Wall -Wextra -Werror -O2 -pedantic -fPIC -std=gnu++11 -MD -MT CMakeFiles/pcurses.dir/src/history.cpp.o -MF CMakeFiles/pcurses.dir/src/history.cpp.o.d -o CMakeFiles/pcurses.dir/src/history.cpp.o -c /home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/history.cpp
/home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/cursesframe.cpp: In member function ‘virtual void CursesFrame::refresh()’:
/home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/cursesframe.cpp:99:37: error: invalid use of incomplete type ‘WINDOW’ {aka ‘struct _win_st’}
   99 |         mvwprintw(w_border, w_border->_maxy, 1, "%s", footer.c_str());
      |                                     ^~
In file included from /home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/cursesframe.h:21,
                 from /home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/cursesframe.cpp:18:
/usr/include/curses.h:456:16: note: forward declaration of ‘WINDOW’ {aka ‘struct _win_st’}
  456 | typedef struct _win_st WINDOW;
      |                ^~~~~~~
/home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/cursesframe.cpp: In member function ‘int CursesFrame::usableheight() const’:
/home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/cursesframe.cpp:147:18: error: invalid use of incomplete type ‘WINDOW’ {aka ‘struct _win_st’}
  147 |     return w_main->_maxy;
      |                  ^~
/usr/include/curses.h:456:16: note: forward declaration of ‘WINDOW’ {aka ‘struct _win_st’}
  456 | typedef struct _win_st WINDOW;
      |                ^~~~~~~
/home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/cursesframe.cpp: In member function ‘int CursesFrame::usablewidth() const’:
/home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/cursesframe.cpp:152:18: error: invalid use of incomplete type ‘WINDOW’ {aka ‘struct _win_st’}
  152 |     return w_main->_maxx;
      |                  ^~
/usr/include/curses.h:456:16: note: forward declaration of ‘WINDOW’ {aka ‘struct _win_st’}
  456 | typedef struct _win_st WINDOW;
      |                ^~~~~~~
make[2]: *** [CMakeFiles/pcurses.dir/build.make:104: CMakeFiles/pcurses.dir/src/cursesframe.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/cursesui.cpp:30:
/home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/package.h:27:29: error: conflicting declaration ‘typedef struct __alpm_pkg_t alpm_pkg_t’
   27 | typedef struct __alpm_pkg_t alpm_pkg_t;
      |                             ^~~~~~~~~~
In file included from /home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/package.h:21:
/usr/include/alpm.h:114:28: note: previous declaration as ‘typedef struct _alpm_pkg_t alpm_pkg_t’
  114 | typedef struct _alpm_pkg_t alpm_pkg_t;
      |                            ^~~~~~~~~~
make[2]: *** [CMakeFiles/pcurses.dir/build.make:132: CMakeFiles/pcurses.dir/src/cursesui.cpp.o] Error 1
In file included from /home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/curseslistbox.cpp:22:
/home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/package.h:27:29: error: conflicting declaration ‘typedef struct __alpm_pkg_t alpm_pkg_t’
   27 | typedef struct __alpm_pkg_t alpm_pkg_t;
      |                             ^~~~~~~~~~
In file included from /home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/package.h:21:
/usr/include/alpm.h:114:28: note: previous declaration as ‘typedef struct _alpm_pkg_t alpm_pkg_t’
  114 | typedef struct _alpm_pkg_t alpm_pkg_t;
      |                            ^~~~~~~~~~
make[2]: *** [CMakeFiles/pcurses.dir/build.make:118: CMakeFiles/pcurses.dir/src/curseslistbox.cpp.o] Error 1
In file included from /home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/filter.cpp:23:
/home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/package.h:27:29: error: conflicting declaration ‘typedef struct __alpm_pkg_t alpm_pkg_t’
   27 | typedef struct __alpm_pkg_t alpm_pkg_t;
      |                             ^~~~~~~~~~
In file included from /home/ali/.cache/paru/clone/pcurses/src/pcurses-pcurses-5/src/package.h:21:
/usr/include/alpm.h:114:28: note: previous declaration as ‘typedef struct _alpm_pkg_t alpm_pkg_t’
  114 | typedef struct _alpm_pkg_t alpm_pkg_t;
      |                            ^~~~~~~~~~
make[2]: *** [CMakeFiles/pcurses.dir/build.make:146: CMakeFiles/pcurses.dir/src/filter.cpp.o] Error 1
make[2]: Leaving directory '/home/ali/.cache/paru/clone/pcurses/src/build'
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/pcurses.dir/all] Error 2
make[1]: Leaving directory '/home/ali/.cache/paru/clone/pcurses/src/build'
make: *** [Makefile:136: all] Error 2
make: Leaving directory '/home/ali/.cache/paru/clone/pcurses/src/build'
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'pcurses-5-5': 
error: packages failed to build: pcurses-5-5

Is anything else needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant