[MacPorts] #54171: rogue @5.4.4: error: incomplete definition of type 'struct term'

MacPorts noreply at macports.org
Wed Oct 4 16:59:38 UTC 2017


#54171: rogue @5.4.4: error: incomplete definition of type 'struct term'
-----------------------+-------------------
  Reporter:  whmagill  |      Owner:
      Type:  defect    |     Status:  new
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.4.1
Resolution:            |   Keywords:
      Port:  rogue     |
-----------------------+-------------------

Comment (by rshuston):

 I was able to fix it by doing a quick modification to the `modport.c`
 file. Basically I did the following:

 Attempt to install rogue...
 {{{
 $ sudo port install rogue
 }}}
 ... and wait for installation to fail with the "incomplete definition of
 type 'struct term'" error.

 Edit the `mdport.c` file as sudo (I use vi but use whatever editor you
 like):
 {{{
 $ sudo vi
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_games_rogue/rogue/work/rogue5.4.4/mdport.c
 }}}
 Search for the spot where `#include <term.h>` exits:
 {{{
 #if defined(HAVE_TERM_H)
 #include <term.h>
 #elif defined(HAVE_NCURSES_TERM_H)
 #include <ncurses/term.h>
 #endif
 }}}
 and add `#define NCURSES_INTERNALS` before the `#include <term.h>` so that
 you have
 {{{
 #if defined(HAVE_TERM_H)
 #define NCURSES_INTERNALS
 #include <term.h>
 #elif defined(HAVE_NCURSES_TERM_H)
 #include <ncurses/term.h>
 #endif
 }}}
 Now continue with your installation:
 {{{
 $ sudo port install rogue
 }}}
 Everything should build and install cleanly at this point.

--
Ticket URL: <https://trac.macports.org/ticket/54171#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list