Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-4503

PerconaFT compilation error with -DMYSQL_MAINTAINER_MODE=OFF

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 5.6.39-83.1
    • Fix Version/s: 8.0.12-2rc1, 5.7.23-25, 5.6.42-84.2
    • Component/s: None
    • Labels:
      None

      Description

      Compilation with `-DCMAKE_BUILD_TYPE=RelWithDebInfo -DMYSQL_MAINTAINER_MODE=OFF -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DENABLE_DTRACE=OFF -DWITH_PAM=ON -DENABLE_DOWNLOADS=1` returns the following error:

      In file included from /github/inikep-ps/storage/tokudb/PerconaFT/util/omt.h:759,
                       from /github/inikep-ps/storage/tokudb/PerconaFT/ft/txn/txn.h:46,
                       from /github/inikep-ps/storage/tokudb/PerconaFT/locktree/txnid_set.h:41,
                       from /github/inikep-ps/storage/tokudb/PerconaFT/locktree/txnid_set.cc:40:
      /github/inikep-ps/storage/tokudb/PerconaFT/util/omt.cc: In member function 'void toku::omt<omtdata_t, omtdataout_t, supports_marks>::unmark(const subtree&, uint32_t, toku::GrowableArray<unsigned int>*)':
      /github/inikep-ps/storage/tokudb/PerconaFT/util/omt.cc:348:143: error: declaration of 'subtree' shadows a previous local [-Werror=shadow]
       void omt<omtdata_t, omtdataout_t, supports_marks>::unmark(const subtree &subtree, const uint32_t index, GrowableArray<node_idx> *const indexes) {
                                                                                                                                                     ^
      In file included from /github/inikep-ps/storage/tokudb/PerconaFT/ft/txn/txn.h:46,
                       from /github/inikep-ps/storage/tokudb/PerconaFT/locktree/txnid_set.h:41,
                       from /github/inikep-ps/storage/tokudb/PerconaFT/locktree/txnid_set.cc:40:
      /github/inikep-ps/storage/tokudb/PerconaFT/util/omt.h:610:61: note: shadowed declaration is here
           typedef omt_internal::subtree_templated<supports_marks> subtree;
      

      Compilation works fine without `-DMYSQL_MAINTAINER_MODE` or with `-DMYSQL_MAINTAINER_MODE=ON`.

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              george.lorch George Lorch
              Reporter:
              przemyslaw.skibinski Przemyslaw Skibinski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 minutes
                  5m