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

Add missing C include into test.h for older g++ versions to compile

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.9.0, 4.4.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • 1
    • Storage - Ra 2021-03-08

      All WT perf jobs failed in Jenkins after the merge of WT-7237http://build.wiredtiger.com:8080/job/wiredtiger-perf/

      Logs:

       

      In file included from ../../../src/include/wt_internal.h:404:0,
                       from ../../../test/utility/test_util.h:31,
                       from ../../../test/cppsuite/test_harness/configuration_settings.h:33,
                       from ../../../test/cppsuite/test_harness/test.h:41,
                       from ../../../test/cppsuite/tests/poc.cxx:33:
      ../../../src/include/cell_inline.h: In function 'int __cell_data_ref(WT_SESSION_IMPL*, WT_PAGE*, int, WT_CELL_UNPACK_COMMON*, WT_ITEM*)':
      ../../../src/include/error.h:113:43: error: expected ')' before 'PRIxMAX'
           __wt_panic(session, EINVAL, "%s: 0x%" PRIxMAX, \
      

       

      Fix:

      The include <cinttypes> is missing from test.h

       

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            luke.pearson@mongodb.com Luke Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: