Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2428

importable use of macro

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.8.0
    • Affects Version/s: None
    • Component/s: libbson
    • None
    • Environment:
      Fedora 26 and others

      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)

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            rgerhards Rainer Gerhards
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: