C++ client driver install target does not install new util/options_parser headers

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.5.4
    • Affects Version/s: None
    • Component/s: Internal Client
    • None
    • Fully Compatible
    • ALL
    • Hide

      Run "install-mongoclient", and then attempt to build a trivial program that does #include "mongo/client/dbclient.h" from the install directory. It will fail.

      Show
      Run "install-mongoclient", and then attempt to build a trivial program that does #include "mongo/client/dbclient.h" from the install directory. It will fail.
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The file dbclient.h recently started to depend on files from the new utils/options_parser directory, but that directory is not among the directories searched by the install target for headers. As a result, dbclient.h from an "install-mongoclient" is not useable.

      A workaround is to manually copy the header files from this directory:

      https://github.com/mongodb/mongo/tree/r2.5.3/src/mongo/util/options_parser

      into a new directory at <prefix>/include/mongo/util/options_parser, where <prefix> is the argument to the --prefix argument used when building the install-mongoclient target.

            Assignee:
            Andrew Morrow (Inactive)
            Reporter:
            Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: