[Ecls-list] ecl 9.4.1 build trouble on Solaris 10/x86

Gabriel Dos Reis gdr at integrable-solutions.net
Sat May 16 01:31:37 UTC 2009


On Fri, May 15, 2009 at 7:33 PM, Michael Abshoff
<michael.abshoff at googlemail.com> wrote:
> Hi list,
>
> I have been having trouble to build ecl on Solaris 10/x86.  Everything
> works pretty much out of the box on Solaris 10/Sparc.
>
> A couple observations:
>
>  * ecl.h does not include stdint.h on Sun:
>
> #if !defined(_MSC_VER) && !defined(__sun)
> #include <stdint.h>             /* int8_t and friends */
> #define ecl_int8_t int8_t
> #define ecl_uint8_t uint8_t
> #else
> #define ecl_uint8_t unsigned char
> #define ecl_int8_t char
> #define ecl_uint16_t unsigned short
> #define ecl_int16_t short
> #define ecl_uint32_t unsigned int
> #define ecl_int32_t int
> #endif
> /* Microsoft VC++ does not have va_copy() */
> #if defined(_MSC_VER) || !defined(va_copy)
> #define va_copy(dst, src) \
>   ((void) memcpy(&(dst), &(src), sizeof(va_list)))
> #endif
>
>  This is the correct thing to do on Solaris 9, but Solaris 10

This is a functionality, so instead of testing for a specific platform, ECL
should be testing for that functionality.  For example, the following
Autoconf macro does the work

    AC_CHECK_HEADERS([stdint.h inttypes.h])




More information about the ecl-devel mailing list