[MacPorts] #70241: lookat fails to build: error: invalid use of incomplete typedef 'WINDOW' {aka 'struct _win_st'}

MacPorts noreply at macports.org
Mon Jun 17 23:10:57 UTC 2024


#70241: lookat fails to build: error: invalid use of incomplete typedef 'WINDOW'
{aka 'struct _win_st'}
--------------------------+--------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.9.3
 Keywords:                |       Port:  lookat
--------------------------+--------------------
 Fails with gcc-4.2, fails with gcc13:
 {{{
 /opt/local/bin/gcc-mp-13 -DHAVE_CONFIG_H -I.   -I/opt/local/include  -pipe
 -Os -arch ppc -MT msg.o -MD -MP -MF .deps/msg.Tpo -c -o msg.o msg.c
 In file included from ncurses_h.h:26,
                  from input.h:26,
                  from input.c:25:
 input.c: In function 'input':
 input.c:129:35: error: invalid use of incomplete typedef 'WINDOW' {aka
 'struct _win_st'}
   129 | if (p->insert) mvwaddstr(p->w,p->w->_maxy,p->w->_maxx-2,"I");
       |                                   ^~
 input.c:129:47: error: invalid use of incomplete typedef 'WINDOW' {aka
 'struct _win_st'}
   129 | if (p->insert) mvwaddstr(p->w,p->w->_maxy,p->w->_maxx-2,"I");
       |                                               ^~
 input.c:130:28: error: invalid use of incomplete typedef 'WINDOW' {aka
 'struct _win_st'}
   130 |    else mvwaddstr(p->w,p->w->_maxy,p->w->_maxx-2,"O");
       |                            ^~
 input.c:130:40: error: invalid use of incomplete typedef 'WINDOW' {aka
 'struct _win_st'}
   130 |    else mvwaddstr(p->w,p->w->_maxy,p->w->_maxx-2,"O");
       |                                        ^~
 input.c:159:46: error: invalid use of incomplete typedef 'WINDOW' {aka
 'struct _win_st'}
   159 |
 mvwaddstr(p->w,p->w->_maxy,p->w->_maxx-2,"O");
       |                                              ^~
 view.c: In function 'view_load':
 view.c:181:26: warning: implicit declaration of function 'getdelim'
 [-Wimplicit-function-declaration]
   181 |      if (p->cmd==2)
 p->x=getdelim(p->file+p->y_max,&ii,'\n',stdin);
       |                          ^~~~~~~~
 input.c:159:58: error: invalid use of incomplete typedef 'WINDOW' {aka
 'struct _win_st'}
   159 |
 mvwaddstr(p->w,p->w->_maxy,p->w->_maxx-2,"O");
       |                                                          ^~
 input.c:163:46: error: invalid use of incomplete typedef 'WINDOW' {aka
 'struct _win_st'}
   163 |
 mvwaddstr(p->w,p->w->_maxy,p->w->_maxx-2,"I");
       |                                              ^~
 input.c:163:58: error: invalid use of incomplete typedef 'WINDOW' {aka
 'struct _win_st'}
   163 |
 mvwaddstr(p->w,p->w->_maxy,p->w->_maxx-2,"I");
       |                                                          ^~
 make[1]: *** [input.o] Error 1
 make[1]: *** Waiting for unfinished jobs....
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/70241>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list