Thanks Matt,

That worked. There was one other place where I got the same type of error. I added int dummy to runopts.h as well.

So total I added int dummy; to:

tomcrypt_prng.h line 49
runopts.h line 35

Hope this helps others as well.

David Huffman
Storix, Inc.

Matt Johnston wrote:
On Thu, May 03, 2007 at 12:56:46PM -0700, David Huffman wrote:
I am unable to compile dropbear-0.48.1 on Solaris 10 sparc.
...
gmake[1]: Entering directory `/stmaster62/source/solaris/dropbear-0.48.1/libtomcrypt' cc -I. -I./libtomcrypt/src/headers/ -g -I/usr/local/include -DDROPBEAR_SERVER -DDROPBEAR_CLIENT -c -I./src/headers/ -I./../ -DENCRYPT_ONLY -c src/ciphers/aes/aes.c -o src/ciphers/aes/aes_enc.o "./src/headers/tomcrypt_cipher.h", line 625: warning: syntax error: empty declaration "./src/headers/tomcrypt_hash.h", line 282: warning: syntax error: empty declaration
"./src/headers/tomcrypt_prng.h", line 61: zero-sized struct/union
"./src/headers/tomcrypt_prng.h", line 181: warning: syntax error: empty declaration
cc: acomp failed for src/ciphers/aes/aes.c
gmake[1]: *** [src/ciphers/aes/aes_enc.o] Error 2
gmake[1]: Leaving directory `/stmaster62/source/solaris/dropbear-0.48.1/libtomcrypt'
gmake: *** [libtomcrypt/libtomcrypt.a] Error 2

Anyone run into this problem or can guide me through what I may be doing incorrectly?

I'm not sure what the "empty declaration" warnings are, but
they look harmless. The "line 61: zero-sized struct/union"
is referring to there being an empty struct in
tomcrypt_prng.h:61, since all the elements are #defined out.
I _think_ the syntax is legal (though not 100% sure), but you
can work around it by adding "int dummy;" or something like
that just below the "typedef union Prng_state" line.

It should be fixed in 0.49.

Cheers,
Matt

Reply via email to