Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-11633

Missing header in io_trace_explorer

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • WT11.2.0, 7.2.0-rc0, 7.1.0-rc3
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Building the io_trace_explorer on my laptop generates fails because errno is undeclared.

      /Users/keith.smith/src/wiredtiger/tools/io-trace-explorer/io_trace.cpp:130:75: error: use of undeclared identifier 'errno'
                std::string("Error closing file \"") + file + "\": " + strerror(errno));
                                                                                ^
      

      It looks like including cerrno will address this.

      (This is using clang 14.0.3, which I think was installed with Xcode.)

            Assignee:
            keith.smith@mongodb.com Keith Smith
            Reporter:
            keith.smith@mongodb.com Keith Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: