compiling ACE for RTEMS
Joel Sherrill
joel.sherrill at OARcorp.com
Mon Jun 30 19:19:13 UTC 2003
Jack Cawkwell wrote:
>
> Hi,
>
> Good news, I have managed to get ACE to compile under RTEMS. I have set
> the ACE flags slightly differently. Also more contraversaly altering the
> file
> /opt/rtems/i386-rtems/include/sys/signal.h to change line 87
>
> from
> typedef void (*_sig_func_ptr)();
>
> to
> typedef void (*_sig_func_ptr)(int);
>
> within the precompiler block:
>
> #if defined(__rtems__)
> #if defined(_POSIX_REALTIME_SIGNALS)
>
> So the question is: will this break anything?
The latter definition should be used if -ansi is set and the 1st one
should be used if it is not. My reading of the .h file shows
that the non-ANSI one is used all the time. Do you have a suggestion
which would fix the file so it has ANSI and non-ANSI versions correctly?
> This seems to allow the whole of ACE 5.3.1 to compile without problems.
> Cross compiling on Linux 2.4.20 i686, to pc386, with RTEMS built with the
> following config
>
> ../rtems-4.6.0pre3/configure\
> --build=i386 \
> --enable-cxx \
> --enable-maintainer-mode \
> --enable-networking \
> --enable-posix \
> --enable-rdbg \
> --enable-rtemsbsp=pc386 \
> --enable-tests \
> --prefix=/opt/rtems \
> --program-prefix=i386-rtems- \
> --target=i386-rtems \
>
> Jack
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list