Opened 4 months ago

Closed 3 weeks ago

#70426 closed defect (fixed)

netwalker-ircc: error: invalid use of incomplete type ‘struct _win_st’

Reported by: barracuda156 Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc:
Port: netwalker-ircc

Description

--== BUILDING OBJECT FILES ==--
/usr/bin/g++-4.2 -Os -Wall -arch ppc -c main.cc              -o main.o
/usr/bin/g++-4.2 -Os -Wall -arch ppc -c functions.cc         -o functions.o
functions.cc: In function ‘void help_me(char*)’:
functions.cc:557: warning: deprecated conversion from string constant to ‘char*’
functions.cc:557: warning: deprecated conversion from string constant to ‘char*’
functions.cc:562: warning: deprecated conversion from string constant to ‘char*’
functions.cc:562: warning: deprecated conversion from string constant to ‘char*’
functions.cc:570: warning: deprecated conversion from string constant to ‘char*’
functions.cc:570: warning: deprecated conversion from string constant to ‘char*’
functions.cc:584: warning: deprecated conversion from string constant to ‘char*’
functions.cc:595: warning: deprecated conversion from string constant to ‘char*’
functions.cc:595: warning: deprecated conversion from string constant to ‘char*’
functions.cc:606: warning: deprecated conversion from string constant to ‘char*’
functions.cc:615: warning: deprecated conversion from string constant to ‘char*’
functions.cc:615: warning: deprecated conversion from string constant to ‘char*’
/usr/bin/g++-4.2 -Os -Wall -arch ppc -c screen.cc            -o screen.o
screen.cc: In member function ‘void Screen::DrawTopScreen()’:
screen.cc:83: error: invalid use of incomplete type ‘struct _win_st’
/opt/local/include/curses.h:464: error: forward declaration of ‘struct _win_st’
screen.cc:83: error: invalid use of incomplete type ‘struct _win_st’
/opt/local/include/curses.h:464: error: forward declaration of ‘struct _win_st’
screen.cc:85: error: invalid use of incomplete type ‘struct _win_st’
/opt/local/include/curses.h:464: error: forward declaration of ‘struct _win_st’
screen.cc:87: error: invalid use of incomplete type ‘struct _win_st’
/opt/local/include/curses.h:464: error: forward declaration of ‘struct _win_st’
screen.cc:88: error: invalid use of incomplete type ‘struct _win_st’
/opt/local/include/curses.h:464: error: forward declaration of ‘struct _win_st’
screen.cc: In member function ‘void Screen::DrawBottomScreen()’:
screen.cc:99: error: invalid use of incomplete type ‘struct _win_st’
/opt/local/include/curses.h:464: error: forward declaration of ‘struct _win_st’
screen.cc:99: error: invalid use of incomplete type ‘struct _win_st’
/opt/local/include/curses.h:464: error: forward declaration of ‘struct _win_st’
screen.cc:101: error: invalid use of incomplete type ‘struct _win_st’
/opt/local/include/curses.h:464: error: forward declaration of ‘struct _win_st’
screen.cc:119: error: invalid use of incomplete type ‘struct _win_st’
/opt/local/include/curses.h:464: error: forward declaration of ‘struct _win_st’
screen.cc:120: error: invalid use of incomplete type ‘struct _win_st’
/opt/local/include/curses.h:464: error: forward declaration of ‘struct _win_st’
screen.cc: In member function ‘void Screen::DrawTextScreen()’:
screen.cc:137: error: invalid use of incomplete type ‘struct _win_st’
/opt/local/include/curses.h:464: error: forward declaration of ‘struct _win_st’
screen.cc:137: error: invalid use of incomplete type ‘struct _win_st’
/opt/local/include/curses.h:464: error: forward declaration of ‘struct _win_st’
screen.cc: In member function ‘void Screen::GetInput()’:
screen.cc:217: warning: deprecated conversion from string constant to ‘char*’
screen.cc:217: warning: deprecated conversion from string constant to ‘char*’
screen.cc:222: warning: deprecated conversion from string constant to ‘char*’
screen.cc:222: warning: deprecated conversion from string constant to ‘char*’
screen.cc: In member function ‘void Screen::user_input_SCREEN(char*)’:
screen.cc:793: warning: deprecated conversion from string constant to ‘char*’
make: *** [screen.o] Error 1

Change History (1)

comment:1 Changed 3 weeks ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In a33b63795c5d33a9467517413ee6b79f1c4ee279/macports-ports (master):

netwalker: Fix build with ncurses 6.5; other fixes

Fix screen.cc to use functions to access the WINDOW struct instead of
accessing the fields directly; as of ncurses 6.5, the WINDOW struct is
opaque by default.

Closes: #70426

Fix screen.cc to avoid dangling else warning.

Fix server.cc to avoid tautological pointer compare warning.

Fix Makefile to use CXX/CXXFLAGS, not C/CFLAGS, since this is C++ code.

Fix Makefile usage of DESTDIR and PREFIX.

Fix Makefile so that it updates the path to the help files in config.h
so that the /help command works.

Fix Makefile to declare target dependencies.

Fix Makefile to declare phony targets.

Use makefile portgroup.

Use archived homepage; the original is gone.

Modernize checksums.

Note: See TracTickets for help on using tickets.