This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Problems compiling sim/ppc/emul_unix.c
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: [ECOS] Problems compiling sim/ppc/emul_unix.c
- From: Michael Martin <michamartin at lucent dot com>
- Date: Wed, 22 Sep 1999 13:22:37 +0200
- Organization: Lucent Technologies
Hi all,
i currently are in the process of building the ecosSWtools-990319
for the powerpc target under Solaris2.5.1 and got a problem
compiling .../ecosSWtools-990319/src/sim/ppc/emul_unix.c
In line 88 (in the
' #ifdef HAVE_TERMIOS_STRUCTURE
...
#endif'
section)
someone has disabled the
' #undef termio
#define termio termios
'
section with an '#ifdef 0 ... #endif' because it breaks the build under RedHat
5.0.
Under Solaris2.5.1 we have both 'sys/termio.h' and 'sys/termios.h'.
Because of the '#undef HAVE_TERMIO_STRUCTURE' in line 85 in emul_unix.c
'sys/termio.h' is not included any more and so the structure 'struct termio' is
unknown. Also because of the '#ifdef 0' in line 88, 'struct termio' is not
defined
to be 'struct termios', so i got the problem of declaring an unknown struct
in the parameter list of a function in line 1242.
To workaround this you have to comment out the '#ifdef 0 ... #endif' in
lines 88 and 91.
A general remark: Do not do those fixes for one OS (in this case RedHat 5.0),
if you are not sure that it does not affect others.
michael