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

"-std=gnu++03" was not set with CMake older that 3.1

    XMLWordPrintable

    Details

    • Type: Admin & Maintenance Task
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 5.7.22-22
    • Fix Version/s: 5.7.23-23
    • Component/s: None
    • Labels:
      None

      Description

      Hi Team,

      cannot compile PS on CentOS 6 with gcc 6.3.1
      Could you help?

      [ 42%] In file included from /tmp/ps/storage/blackhole/ha_blackhole.cc:20:0:
      /tmp/ps/sql/sql_class.h:2440:8: error: 'template<class&gt; class std::auto_ptr' is deprecated [-Werror=deprecated-declarations]
         std::auto_ptr<Transaction_ctx> m_transaction;
              ^~~~~~~~
      In file included from /opt/rh/devtoolset-6/root/usr/include/c++/6.3.1/memory:81:0,
                       from /tmp/ps/sql/sql_class.h:51,
                       from /tmp/ps/storage/blackhole/ha_blackhole.cc:20:
      /opt/rh/devtoolset-6/root/usr/include/c++/6.3.1/bits/unique_ptr.h:49:28: note: declared here
         template<typename> class auto_ptr;
                                  ^~~~~~~~
      Building CXX object storage/innobase/CMakeFiles/innobase.dir/btr/btr0sea.cc.o
      cc1plus: all warnings being treated as errors
      

      NB: I see a lot of std::auto_ptr errors in log.

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                przemyslaw.skibinski Przemyslaw Skibinski
                Reporter:
                mykola.marzhan Mykola Marzhan
              • Votes:
                0 Vote for this issue
                Watchers:
                4 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 - 1 day, 2 hours, 30 minutes
                  1d 2h 30m