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

Build failure with boost >= 1.85.0 due to removed deprecated functions

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • ALL
      • use a system with boost 1.85.0 or newer
      • try building mongo

      The `branch_path` and `has_branch_path` functions are used in a number of places. Those functions are deprecated for a long while, and mapped onto using "parent_path" and "has_parent_path" in a mapped way. With boost 1.85.0 these were now removed, and only "parent_path" bits are available.

      Thus the build fails with errors like this:

      src/mongo/db/storage/storage_engine_lock_file_posix.cpp:60:15: error: 'const class boost::filesystem::path' has no member named 'has_branch_path'; did you mean 'has_root_path'?
         60 |     if (!file.has_branch_path()) {
            |               ^~~~~~~~~~~~~~~
            |               has_root_path
      src/mongo/db/storage/storage_engine_lock_file_posix.cpp:69:40: error: 'const class boost::filesystem::path' has no member named 'branch_path'
         69 |     boost::filesystem::path dir = file.branch_path();  // parent_path in new boosts
            |                                        ^~~~~~~~~~~
       

      Been trying to build mongo on Archlinux that just recently bumped boost to 1.86.0.

            Assignee:
            Unassigned Unassigned
            Reporter:
            gergely@imreh.net Gergely Imreh
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: