This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Failure to build gnatlib and tools on cygwin: sysdep.c: In function `getc_immediate_common': sysdep.c:356: error: storage size of 'otermios_rec' isn't known
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: christian at j-son dot org
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 10 Nov 2003 20:26:45 +1100 (EST)
- Subject: RE: Failure to build gnatlib and tools on cygwin: sysdep.c: In function `getc_immediate_common': sysdep.c:356: error: storage size of 'otermios_rec' isn't known
From: Christian Joensson
> sysdep.c: In function `getc_immediate_common':
>
> sysdep.c:356: error: storage size of 'otermios_rec' isn't known
> sysdep.c:356: error: storage size of 'termios_rec' isn't known
> sysdep.c:361: error: invalid application of `sizeof' to an incomplete type
> sysdep.c:364: error: `ICANON' undeclared (first use in this function)
> sysdep.c:364: error: (Each undeclared identifier is reported only once
> sysdep.c:364: error: for each function it appears in.)
> sysdep.c:364: error: `ECHO' undeclared (first use in this function)
> sysdep.c:386: error: `TCSANOW' undeclared (first use in this function)
> make[2]: *** [sysdep.o] Error 1
> make[2]: Leaving directory `/usr/local/src/gcc-binutils/trunk/objdir/gcc/ada/rts'
> make[1]: *** [gnatlib] Error 2
> make[1]: Leaving directory `/usr/local/src/gcc-binutils/trunk/objdir/gcc/ada'
> make: *** [gnatlib] Error 2
> make: Leaving directory `/usr/local/src/gcc-binutils/trunk/objdir/gcc'
>
> Any ideas on what to do about it?
>
It might help to include termios.h for CYGWIN :)
Danny
*** sysdep.c.orig Tue Nov 4 22:25:35 2003
--- sysdep.c Mon Nov 10 09:12:55 2003
*************** __gnat_ttyname (int filedes)
*** 290,296 ****
#if defined (linux) || defined (sun) || defined (sgi) || defined (__EMX__) \
|| (defined (__osf__) && ! defined (__alpha_vxworks)) || defined (WINNT) \
|| defined (__MACHTEN__) || defined (hpux) || defined (_AIX) \
! || (defined (__svr4__) && defined (i386)) || defined (__Lynx__)
#ifdef __MINGW32__
#if OLD_MINGW
--- 290,297 ----
#if defined (linux) || defined (sun) || defined (sgi) || defined (__EMX__) \
|| (defined (__osf__) && ! defined (__alpha_vxworks)) || defined (WINNT) \
|| defined (__MACHTEN__) || defined (hpux) || defined (_AIX) \
! || (defined (__svr4__) && defined (i386)) || defined (__Lynx__) \
! || defined (__CYGWIN__)
#ifdef __MINGW32__
#if OLD_MINGW
http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.