[Dovecot] configure error on HP-UX: C99 compatible vsnprintf() call

Timo Sirainen tss at iki.fi
Fri Jun 13 10:33:09 EEST 2008

On Fri, 2008-06-13 at 00:12 -0700, Woonsan Ko wrote:
> Hi Timo,
> Thank you very much for quick response.
> I have just tested with your new package, but they print other errors during `make':
> 1. `make' after `configure'
> Error 239: "str-find.c", line 17 # A struct/union shall not contain a member
>     with incomplete type.
>             int goodtab[];
>                 ^^^^^^^

This is valid C99 code. I don't think I want to change it just to
support one rarely used compiler. You could change it to [1] and it
should work just as well (same for lib-imap/imap-match.c).

> 2. `make' after `configure CC=/opt/aCC/bin/aCC -AC99'
> Error 20: "mempool-alloconly.c", line 83 # '<number>' expected before '.'.
>             MEMBER(v) &static_alloconly_pool_vfuncs,
>             ^^^^^^

MEMBER() macro is defined in src/macros.h:

/* C99-style struct member definitions */
#if (defined(__STDC__) && __STDC_VERSION__ >= 199901L) || __GNUC__ > 2
#  define MEMBER(name) .name =
#  define MEMBER(name)

So apparently HP-UX lies that it supports C99 even though it doesn't
actually? I could change that #ifdef, but I don't know what would be a
good check for HP-UX.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20080613/6033c8a9/attachment.bin 

More information about the dovecot mailing list