#10 Version 1.3.4-1 does not compile on OpenSolaris

open
nobody
None
5
2007-09-18
2007-09-18
No

Version 1.3.4-1 of the program does not compile on OpenSolaris on an i386 system. Here's a sample of the compiler error messages:

cc -DHAVE_CONFIG_H -I. -I. -I. -g -c `test -f 'dcfldd.c' || echo './'`dcfldd.c
"sha2.h", line 113: syntax error before or at: u_int32_t
"sha2.h", line 118: syntax error before or at: u_int64_t

I'm guessing that u_int32_t and u_int64_t are not defined. Maybe a quick:

#define u_int32_t uint32_t

would work?
Or should we modify the hashing code to use C99 types throughout?

Discussion