[dovecot] compilation errors
Hi-
I always encounter the same two minor compilation issues which are easily addressed simply by a quick edit, but this time I figured I'd mention it in case you can work around it.
This is on a BSD/OS 4.2 system.
First, the generated config.h always creates a definition for OFF_T_MAX which conflicts with the one in the system's limits.h
config.h defines:
#define OFF_T_MAX LLONG_MAX
whereas /usr/include/machine/limits.h defines:
#define OFF_T_MAX UQUAD_MAX /* max value for an off_t */
I simply comment out the definition from config.h .
Second, in src/lib/mmap-anon.c there's a preprocessor conditional:
#if SSIZE_T_MAX >= LLONG_MAX (etc)
Unfortunately /usr/include/machine/limits.h defines LLONG_MAX thusly:
#define LLONG_MAX (__extension__(9223372036854775807LL))
(evidently to suppress pedantic warnings about the gcc long long constant extension) but the cpp prepreprocessor stumbles over this comparison. This might be fixed in a later gcc, I dunno- it's gcc 2.95.2 here.
Yours, -mm-
participants (1)
-
Mark E. Mallett