This is the mail archive of the ecos-discuss@sourceware.cygnus.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems compiling sim/ppc/emul_unix.c


>>>>> "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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]