Compile Error v2.13.2 on Solaris SPARC
- From
- Michael Kebe <michael.kebe@gmail.com>
- Date
- Jun 26, 2017, 07:32 UTC
- Message-ID
- <CAKKM46tHq13XiW5C8sux3=PZ1VHSu_npG8ExfWwcPD7rkZkyRQ@mail.gmail.com>
When compiling 2.13.2 on Solaris SPARC I get this error:
CC sha1dc/sha1.o
sha1dc/sha1.c:41:58: error: operator '==' has no right operand
#if ((defined(_BYTE_ORDER) && (_BYTE_ORDER == _BIG_ENDIAN)) || \
^
gmake: *** [sha1dc/sha1.o] Error 1The define _BIG_ENDIAN is set by Solaris on SPARC systems. So the check in line 41 gives this error.
The _BIG_ENDIAN define is used few line below for defining SHA1DC_BIGENDIAN. This is needed for Solaris SPARC systems. See https://github.com/cr-marcstevens/sha1collisiondetection/commit/33a694a9ee1b79c24be45f9eab5ac0e1aeeaf271
Greetings Michael