Hello,
we support MongoDB in rsyslog via plugins. It is our policy to do clean compiles at high warning level. Unfortunately, libbson seems to have some portability issues. This is part of the build log:
In file included from /usr/include/libbson-1.0/bson-compat.h:38:0,
from /usr/include/libbson-1.0/bson.h:23,
from /usr/include/libmongoc-1.0/mongoc.h:22,
from logctl.c:48:
/usr/include/libbson-1.0/bson-macros.h:185:33: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
#if BSON_GNUC_CHECK_VERSION(4, 0) && !defined(_WIN32)
^
/usr/include/libbson-1.0/bson-macros.h:205:35: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
#elif BSON_GNUC_CHECK_VERSION(4, 4)
^
/usr/include/libbson-1.0/bson-macros.h:235:33: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
#if BSON_GNUC_CHECK_VERSION(3, 1)
^
/usr/include/libbson-1.0/bson-macros.h:242:33: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
#if BSON_GNUC_CHECK_VERSION(4, 5)
- duplicates
-
CDRIVER-2197 Add -Wexpansion-to-defined to maintainer flags
- Closed