This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

building gcc fails when trying to compile md5.c


Hi there.  I'm using gcc 3.4.2 on solaris 2.8 and trying to upgrade to
gcc 4.0.3.  The bootstrap fails pretty early though when compiling
md5.c.  It throws a bunch of dereferencing pointer to incomplete type
errors that appear to stem from the definition of the md5_ctx struct in
md5.h.  Right before all those errors, it says:
In file included from ../../../gcc-4.0.3/libiberty/md5.c:40:
../../../gcc-4.0.3/libiberty/../include/md5.h:92: warning: no semicolon
at end of struct or union
../../../gcc-4.0.3/libiberty/../include/md5.h:92: error: parse error
before "ATTRIBUTE_ALIGNED_ALIGNOF"
../../../gcc-4.0.3/libiberty/../include/md5.h:93: warning: ISO C does
not allow extra `;' outside of a function

I checked the source, and there is indeed a semi-colon at the end of the
struct definition.  I compared my copy to the one on the svn tree, and
they're identical.  That definition hasn't changed in a while, so just
for fun, i tried compiling from the 3.4.2 sources, and it flew by
without complaint.  What's the issue here?

Cheers,
Mike


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]