* [ECOS] Problems compiling sim/ppc/emul_unix.c
@ 1999-09-22 4:24 Michael Martin
1999-09-22 5:07 ` [ECOS] " Bart Veer
0 siblings, 1 reply; 2+ messages in thread
From: Michael Martin @ 1999-09-22 4:24 UTC (permalink / raw)
To: ecos-discuss
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ECOS] Re: Problems compiling sim/ppc/emul_unix.c
1999-09-22 4:24 [ECOS] Problems compiling sim/ppc/emul_unix.c Michael Martin
@ 1999-09-22 5:07 ` Bart Veer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Veer @ 1999-09-22 5:07 UTC (permalink / raw)
To: michamartin; +Cc: ecos-discuss
>>>>> "Michael" == Michael Martin <michamartin@lucent.com> writes:
Michael> Hi all,
Michael> i currently are in the process of building the ecosSWtools-990319
Michael> for the powerpc target under Solaris2.5.1 and got a problem
Michael> compiling .../ecosSWtools-990319/src/sim/ppc/emul_unix.c
Michael> In line 88 (in the
Michael> ' #ifdef HAVE_TERMIOS_STRUCTURE
Michael> ...
Michael> #endif'
Michael> section)
Michael> someone has disabled the
Michael> ' #undef termio
Michael> #define termio termios
Michael> '
Michael> section with an '#ifdef 0 ... #endif' because it breaks the build under RedHat
Michael> 5.0.
Michael> Under Solaris2.5.1 we have both 'sys/termio.h' and 'sys/termios.h'.
Michael> Because of the '#undef HAVE_TERMIO_STRUCTURE' in line 85 in emul_unix.c
Michael> 'sys/termio.h' is not included any more and so the structure 'struct termio' is
Michael> unknown. Also because of the '#ifdef 0' in line 88, 'struct termio' is not
Michael> defined
Michael> to be 'struct termios', so i got the problem of declaring an unknown struct
Michael> in the parameter list of a function in line 1242.
Michael> To workaround this you have to comment out the '#ifdef 0 ... #endif' in
Michael> lines 88 and 91.
Just for the record, there is already a patch for this,
http://sourceware.cygnus.com/ml/ecos-discuss/1999-02/msg00003.html
with a pointer to the patch in the eCos sourceware FAQ. There were
some other Solaris-related build problems identified in the same
discussion.
Bart Veer // eCos net maintainer
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-09-22 5:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-22 4:24 [ECOS] Problems compiling sim/ppc/emul_unix.c Michael Martin
1999-09-22 5:07 ` [ECOS] " Bart Veer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).