[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cross compiling openssl.



>	I can't finish the compilation and got the following error: 
> In
> file included from
> /usr/local/cris/lib/gcc-lib/cris/2.96/linux/include/time.h:28,
>                 from kssl.c:72:
> /usr/local/cris/lib/gcc-lib/cris/2.96/linux/include/features.h:168:46: '
> -OPEN_SOURCECE_TENDED_H)CTION ' not allowed in operand of #if
> /usr/local/cris/lib/gcc-lib/cris/2.96/linux/include/features.h:193:21: '
> -OPEN_SOURCE' not allowed in operand of #if make[1]: *** [kssl.o] Error 1
> 
>	Any suggestions?

In our local tree we have this fix:

/* BEGIN AXIS LOCAL */
/* Set a value on _XOPEN_SOURCE to work around a preprocessor bug in
 * gcc-cris compiler versions based on gcc 2.96 */
#define _XOPEN_SOURCE (500) /* glibc2 needs this to declare strptime() */
/* END AXIS LOCAL */
#include <time.h>
#undef _XOPEN_SOURCE /* To avoid clashes with anything else... */
#include <string.h>

I seem to remember that just removing the #define in question will also work.


-- 
Lars Viklund
Expert Software Engineer
Embedded Platforms
Axis Communications AB