[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:
> file included from
> 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: *** [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 */
#undef _XOPEN_SOURCE /* To avoid clashes with anything else... */
I seem to remember that just removing the #define in question will also work.
Expert Software Engineer
Axis Communications AB