Herbert J. Skuhra via Postfix-devel:
> Hi,
>
> I am trying to build Postfix-3.9 (20240213) with MongoDB support.
> Using clang the build fails:
>
> dict_mongodb.c:258:6: error: expected expression
> 258 | const uint8_t *dataBuffer = NULL;
> | ^
uint8_t is defined with inttypes.h which is included in dict_mongodb.c.
Perhaps the compiler does not like a declaration after case label,
in that case try adding { and } around the code in the BSON_TYPE_ARRAY
case:
case BSON_TYPE_ARRAY:
{ // ADD THIS LINE
const uint8_t *dataBuffer = NULL;
/* other existing code */
} // ADD THIS LINE
default:
Unfortunately my FreeBSD package stuff is messed up so I can't
install mongodb libraries at the moment.
Wietse
_______________________________________________
Postfix-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]