Created attachment 23293 [details] Detailed description and header file extract Hello, Scenario: Environment migrated- HP-UX --> Linux acc --> gcc ---------------- Compilation of the existing code giving below error: + gcc -I.-D_HPUX_SOURCE -D_XPG2 -DUNIX -c io_util_FILE.c -o io_util_FILE.o In file included from ./io_util.h:15, from io_util_FILE.c:13: /usr/local/include/ncurses/term.h:698: error: field âOttybâ has incomplete type /usr/local/include/ncurses/term.h:699: error: field âNttybâ has incomplete type ---------------- Header file extract and description is attached for reference. Thank you.
I don't know why you think this is a gcc bug but please follow the instructions at http://gcc.gnu.org/bugs/ and provide preprocessed source. This is more likely to be a bug in your code. Even if it's a problem with the ncurses/term.h header, that's not a GCC bug.
Thanks Jonathan for initial view. The same code is being used before, which was compiling properly, but when migrated to Linux+gcc, it is giving this issue. In the menwhile, I will also check the instructions sent by you. Any further suggestions will be of big help. (In reply to comment #1) > I don't know why you think this is a gcc bug but please follow the instructions > at http://gcc.gnu.org/bugs/ and provide preprocessed source. > This is more likely to be a bug in your code. Even if it's a problem with the > ncurses/term.h header, that's not a GCC bug.
(In reply to comment #2) > The same code is being used before, which was compiling properly, but when > migrated to Linux+gcc, it is giving this issue. That's not a compiler bug. That means your code is not portable. This code will compile on some UNIX platforms, but not on GNU/Linux: #include <sys/mman.h> caddr_t* p = 0; But that's not a GCC bug, it's because the code is not portable. Anyway, if you think it is a bug you need to follow the bug reporting instructions.
closing due to lack of response