Displaying 2 results from an estimated 2 matches for "sha3_ctx".
Did you mean:
sha1_ctx
2019 Jun 10
2
Compile problem on Solaris
Hi
Compiling dovecot 2.2.36.1 with the native compiler on Solaris 10 is
giving the error below.
Can anyone advise a compiler option or code change to resolve this please.
Thanks.
Roderick Johnstone
# make
make all-recursive
Making all in .
/bin/bash ./update-version.sh . .
Making all in src
Making all in lib-test
Making all in lib
make all-am
source='sha3.c'
2019 Jun 10
0
Compile problem on Solaris
...3.c
> -KPIC -DPIC -o .libs/sha3.o
> "sha3.h", line 49: warning: unnamed struct member
...
Untested: try naming the union. My own builds (dovecot 2.3.6) get
through this. What compiler version? 12.6 is current and does not issue
the unnamed struct warning, eg, 12.3 does.
struct sha3_ctx {
uint64_t saved; /* the portion of the input message that we
* didn't consume yet */
union { /* Keccak's state */
uint64_t s[SHA3_KECCAK_SPONGE_WORDS];
uint8_t sb[SHA3_KECCAK_SPONGE_WORDS * 8];
} XXXXX;