davids5 commented on pull request #2263:
URL: https://github.com/apache/incubator-nuttx/pull/2263#issuecomment-724850683


   @xiaoxiang781216 
   Can not build.
   
   ```
   nsh_console.c: In function 'nsh_openifnotopen':
   nsh_console.c:107:14: error: 'struct console_stdio_s' has no member named 
'cn_outstream'
     107 |   if (!pstate->cn_outstream)
         |              ^~
   nsh_console.c:109:13: error: 'struct console_stdio_s' has no member named 
'cn_outstream'
     109 |       pstate->cn_outstream = fdopen(pstate->cn_outfd, "w");
         |             ^~
   nsh_console.c:109:43: error: 'struct console_stdio_s' has no member named 
'cn_outfd'
     109 |       pstate->cn_outstream = fdopen(pstate->cn_outfd, "w");
         |                                           ^~
   nsh_console.c:110:18: error: 'struct console_stdio_s' has no member named 
'cn_outstream'
     110 |       if (!pstate->cn_outstream)
         |                  ^~
   nsh_console.c:118:13: error: 'struct console_stdio_s' has no member named 
'cn_errfd'
     118 |       pstate->cn_errfd     = pstate->cn_outfd;
         |             ^~
   nsh_console.c:118:36: error: 'struct console_stdio_s' has no member named 
'cn_outfd'
     118 |       pstate->cn_errfd     = pstate->cn_outfd;
         |                                    ^~
   nsh_console.c:119:13: error: 'struct console_stdio_s' has no member named 
'cn_errstream'
     119 |       pstate->cn_errstream = pstate->cn_outstream;
         |             ^~
   nsh_console.c:119:36: error: 'struct console_stdio_s' has no member named 
'cn_outstream'
     119 |       pstate->cn_errstream = pstate->cn_outstream;
         |                                    ^~
   nsh_console.c: In function 'nsh_consolewrite':
   nsh_console.c:190:41: error: 'struct console_stdio_s' has no member named 
'cn_outstream'
     190 |   ret = fwrite(buffer, 1, nbytes, pstate->cn_outstream);
         |                                         ^~
   nsh_console.c:199:16: error: 'struct console_stdio_s' has no member named 
'cn_outstream'
     199 |   fflush(pstate->cn_outstream);
         |                ^~
   nsh_console.c: In function 'nsh_consoleoutput':
   nsh_console.c:230:24: error: 'struct console_stdio_s' has no member named 
'cn_outstream'
     230 |   ret = vfprintf(pstate->cn_outstream, fmt, ap);
         |                        ^~
   nsh_console.c: In function 'nsh_erroroutput':
   nsh_console.c:262:24: error: 'struct console_stdio_s' has no member named 
'cn_errstream'
     262 |   ret = vfprintf(pstate->cn_errstream, fmt, ap);
         |                        ^~
   nsh_console.c: In function 'nsh_consoleredirect':
   nsh_console.c:379:17: error: 'struct console_stdio_s' has no member named 
'cn_outstream'
     379 |       if (pstate->cn_outstream)
         |                 ^~
   nsh_console.c:381:24: error: 'struct console_stdio_s' has no member named 
'cn_errstream'
     381 |           fflush(pstate->cn_errstream);
         |                        ^~
   nsh_console.c:382:24: error: 'struct console_stdio_s' has no member named 
'cn_outstream'
     382 |           fflush(pstate->cn_outstream);
         |                        ^~
   nsh_console.c:389:12: error: dereferencing pointer to incomplete type 
'struct serialsave_s'
     389 |       ssave->cn_errfd     = pstate->cn_errfd;
         |            ^~
   nsh_console.c:389:35: error: 'struct console_stdio_s' has no member named 
'cn_errfd'
     389 |       ssave->cn_errfd     = pstate->cn_errfd;
         |                                   ^~
   nsh_console.c:390:35: error: 'struct console_stdio_s' has no member named 
'cn_outfd'
     390 |       ssave->cn_outfd     = pstate->cn_outfd;
         |                                   ^~
   nsh_console.c:391:35: error: 'struct console_stdio_s' has no member named 
'cn_errstream'
     391 |       ssave->cn_errstream = pstate->cn_errstream;
         |                                   ^~
   nsh_console.c:392:35: error: 'struct console_stdio_s' has no member named 
'cn_outstream'
     392 |       ssave->cn_outstream = pstate->cn_outstream;
         |                                   ^~
   nsh_console.c:406:9: error: 'struct console_stdio_s' has no member named 
'cn_outfd'
     406 |   pstate->cn_outfd     = fd;
         |         ^~
   nsh_console.c:407:9: error: 'struct console_stdio_s' has no member named 
'cn_outstream'
     407 |   pstate->cn_outstream = NULL;
         |         ^~
   nsh_console.c: In function 'nsh_consoleundirect':
   nsh_console.c:425:9: error: 'struct console_stdio_s' has no member named 
'cn_errfd'
     425 |   pstate->cn_errfd     = ssave->cn_errfd;
         |         ^~
   nsh_console.c:425:31: error: dereferencing pointer to incomplete type 
'struct serialsave_s'
     425 |   pstate->cn_errfd     = ssave->cn_errfd;
         |                               ^~
   nsh_console.c:426:9: error: 'struct console_stdio_s' has no member named 
'cn_outfd'
     426 |   pstate->cn_outfd     = ssave->cn_outfd;
         |         ^~
   nsh_console.c:427:9: error: 'struct console_stdio_s' has no member named 
'cn_errstream'
     427 |   pstate->cn_errstream = ssave->cn_errstream;
         |         ^~
   nsh_console.c:428:9: error: 'struct console_stdio_s' has no member named 
'cn_outstream'
     428 |   pstate->cn_outstream = ssave->cn_outstream;
         |         ^~
   At top level:
   nsh_console.c:418:13: error: 'nsh_consoleundirect' defined but not used 
[-Werror=unused-function]
     418 | static void nsh_consoleundirect(FAR struct nsh_vtbl_s *vtbl,
         |             ^~~~~~~~~~~~~~~~~~~
   nsh_console.c:364:13: error: 'nsh_consoleredirect' defined but not used 
[-Werror=unused-function]
     364 | static void nsh_consoleredirect(FAR struct nsh_vtbl_s *vtbl, int fd,
         |             ^~~~~~~~~~~~~~~~~~~
   cc1: all warnings being treated as errors
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to