Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-11282

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.4
    • None
    • 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.

    Description

      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.

      Attachments

        Activity

          People

            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: